Fix #126983: Custom nodes and groups icon missing #127263

Open
Lalit Shankar Chowdhury wants to merge 4 commits from Lalit-Shankar-Chowdhury/blender:fix-icon-missing into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

Fix regression caused by commit b120440f7c.

The custom node icon is now drawn.

image
Fix regression caused by commit b120440f7c. The custom node icon is now drawn. <img width="413" alt="image" src="attachments/401e1138-a953-4f0d-94c0-a10548e87767">
Lalit Shankar Chowdhury added 1 commit 2024-09-06 19:03:55 +02:00
Iliya Katushenock changed title from Fix custom nodes icon missing (#126983) to Fix #126983: Custom nodes icon missing 2024-09-06 19:05:49 +02:00
Iliya Katushenock added this to the Nodes & Physics project 2024-09-06 19:05:53 +02:00
Iliya Katushenock added this to the 4.2 LTS milestone 2024-09-06 19:05:59 +02:00
Iliya Katushenock approved these changes 2024-09-06 19:06:12 +02:00
Dismissed
Hans Goudey requested changes 2024-09-06 21:56:28 +02:00
Hans Goudey left a comment
Member

Thanks, just one small comment.

Thanks, just one small comment.
@ -3444,3 +3444,3 @@
UI_block_emboss_set(&block, UI_EMBOSS);
}
if (node.is_group() && node.typeinfo->ui_icon != ICON_NONE) {
if ((node.type == NODE_CUSTOM || node.type == NODE_CUSTOM_GROUP) && node.typeinfo->ui_icon != ICON_NONE) {
Member

Use the ELEM macro to check both types without repeating node.type

Use the `ELEM` macro to check both types without repeating `node.type`

node.is_group()

Consider line 3399\

> `node.is_group()` Consider line 3399\
Author
Contributor

Replaced the check with is_group() and used ELEM as suggested. I was wondering if I should replace occurences (total 12) for other files as well.

Replaced the check with `is_group()` and used `ELEM` as suggested. I was wondering if I should replace occurences (total 12) for other files as well.
Member

#123669 purposefully added checks for NODE_GROUP and NODE_CUSTOM_GROUP. Not sure it makes sense to remove NODE_GROUP?

#123669 purposefully added checks for `NODE_GROUP` and `NODE_CUSTOM_GROUP`. Not sure it makes sense to remove `NODE_GROUP`?

We have a group icon first in the list, this icon is added by the first statement in the sequence in this function, current one is about custom nodes. Probably first one statement need to be replaced by is_group, but current one have to be as is in pr.

We have a group icon first in the list, this icon is added by the first statement in the sequence in this function, current one is about custom nodes. Probably first one statement need to be replaced by `is_group`, but current one have to be as is in pr.
Lalit Shankar Chowdhury added 1 commit 2024-09-06 23:05:16 +02:00
Lalit Shankar Chowdhury requested review from Hans Goudey 2024-09-06 23:05:57 +02:00
Lalit Shankar Chowdhury requested review from Iliya Katushenock 2024-09-06 23:06:01 +02:00
Lalit Shankar Chowdhury added 1 commit 2024-09-07 03:59:42 +02:00
Lalit Shankar Chowdhury added 1 commit 2024-09-08 01:34:10 +02:00
Iliya Katushenock approved these changes 2024-09-08 09:26:02 +02:00
Iliya Katushenock left a comment
Member

Thanks!/

Thanks!/
Iliya Katushenock changed title from Fix #126983: Custom nodes icon missing to Fix #126983: Custom nodes and groups icon missing 2024-09-08 09:26:31 +02:00
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fix-icon-missing:Lalit-Shankar-Chowdhury-fix-icon-missing
git checkout Lalit-Shankar-Chowdhury-fix-icon-missing
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 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#127263
No description provided.