Fix: Node Editor: Improve info panel drawing #113411

Merged
Leon Schittek merged 4 commits from lone_noel/blender:fix-node-info-panel into blender-v4.0-release 2023-10-14 09:37:11 +02:00
Member

Fix a few papercuts with the info panel:

  1. Make the panel extend behind hidden nodes
  2. Don't let it become smaller than the node itself, when resizing

release pull request
release_blob.png pr_blob.png

The left image shows two bugs:

  1. The panel cuts off at the top of the hidden node
  2. Because the panel width was based on node.width, it didn't
    respect that the width for hidden nodes is clamped during
    drawing to account for the large corner radii.

Additionally you may notice the text shifting a bit. Previsously the
padding for the outline was also added to the rectangle that
containes the info text. Not doing that improves the alignment
of the text a bit.

Fix a few papercuts with the info panel: 1. Make the panel extend behind hidden nodes 2. Don't let it become smaller than the node itself, when resizing --- |release|pull request| |---|---| |![release_blob.png](/attachments/1e3fc6e5-9ca0-4c68-96c9-538ef41c2cea)|![pr_blob.png](/attachments/54851f45-de19-4433-8190-48ca1d29a048)| The left image shows two bugs: 1. The panel cuts off at the top of the hidden node 2. Because the panel width was based on `node.width`, it didn't respect that the width for hidden nodes is clamped during drawing to account for the large corner radii. Additionally you may notice the text shifting a bit. Previsously the padding for the outline was also added to the rectangle that containes the info text. Not doing that improves the alignment of the text a bit.
Leon Schittek added 2 commits 2023-10-08 14:13:10 +02:00
f21a31f20a Fix: Node Editor: Improve info panel drawing
Fix a few papercuts with the info panel:
1. Make the panel extend behind hidden nodes
2. Don't let be resized smaller than the node itself
Author
Member

It seems like there's a related design task: #110397

This PR is just a trivial extension of the current design to work with hidden nodes. I guess it can be used to gauge, if this is the direction we want to take with this.

It seems like there's a related design task: https://projects.blender.org/blender/blender/issues/110397 This PR is just a trivial extension of the current design to work with hidden nodes. I guess it can be used to gauge, if this is the direction we want to take with this.
Member

I think this is nice as a quick fix. It's still not beautiful, but it doesn't look broken.

I think this is nice as a quick fix. It's still not beautiful, but it doesn't look broken.
Contributor

How about

image

How about ![image](/attachments/b8dcde27-bad0-4a0d-b0e5-816686214e2c)
Leon Schittek added 2 commits 2023-10-13 22:19:36 +02:00
Hans Goudey approved these changes 2023-10-13 22:21:00 +02:00
Leon Schittek changed title from WIP: Fix: Node Editor: Improve info panel drawing to Fix: Node Editor: Improve info panel drawing 2023-10-13 22:21:04 +02:00
Leon Schittek merged commit b93dbaba1d into blender-v4.0-release 2023-10-14 09:37:11 +02:00
Leon Schittek deleted branch fix-node-info-panel 2023-10-14 09:37:13 +02:00
Author
Member

@Nika-Kutsniashvili Thanks for the input! I do agree that your mockup looks nicer in that specific case, but I'm not sure that would necessarily scale much better with more info or previews.

For now this is a band-aid, to make it not broken and in the long run we'll probably have to rethink how collapsed nodes look and maybe how to streamline the different ways to make nodes more compact (collapsing and hiding individual sockets or options).

@Nika-Kutsniashvili Thanks for the input! I do agree that your mockup looks nicer in that specific case, but I'm not sure that would necessarily scale much better with more info or previews. For now this is a band-aid, to make it not broken and in the long run we'll probably have to rethink how collapsed nodes look and maybe how to streamline the different ways to make nodes more compact (collapsing and hiding individual sockets or options).
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113411
No description provided.