Fix #114648: Compositor executes upon editing non-compositor trees #114978

Merged
Omar Emara merged 1 commits from OmarEmaraDev/blender:fix-114648 into main 2023-11-17 08:52:59 +01:00
Member

The compositor currently executes when editing node trees that are not
compositor related, like geometry and shader node trees.

That's because the node space listener always tags the compositor to
execute for any node edit notifier. To fix this, we add the ID of the
edited node tree as a reference to the edit notifier and only tag for
an update when the space tree matches the reference one.

The compositor currently executes when editing node trees that are not compositor related, like geometry and shader node trees. That's because the node space listener always tags the compositor to execute for any node edit notifier. To fix this, we add the ID of the edited node tree as a reference to the edit notifier and only tag for an update when the space tree matches the reference one.
Omar Emara added the
Interest
Compositing
Module
Nodes & Physics
labels 2023-11-16 11:34:15 +01:00
Omar Emara added 1 commit 2023-11-16 11:34:27 +01:00
be3f42ebef Fix #114648: Compositor executes upon editing non-compositor trees
The compositor currently executes when editing node trees that are not
compositor related, like geometry and shader node trees.

That's because the node space listener always tags the compositor to
execute for any node edit notifier. To fix this, we add the ID of the
edited node tree as a reference to the edit notifier and only tag for
an update when the space tree matches the reference one.
Omar Emara requested review from Sergey Sharybin 2023-11-16 11:36:05 +01:00
Omar Emara requested review from Jacques Lucke 2023-11-16 11:36:05 +01:00
Omar Emara requested review from Hans Goudey 2023-11-16 11:36:06 +01:00
Member

It's worth checking that this works when a node tree used by a nested node is edited. As long as that works, the change seems okay.

It's worth checking that this works when a node tree used by a nested node is edited. As long as that works, the change seems okay.
Author
Member

@HooglyBoogly Those cases seems to work correctly. A notifier is sent for both the root node tree and the actual edited node tree, and only one of them gets handled.

@HooglyBoogly Those cases seems to work correctly. A notifier is sent for both the root node tree and the actual edited node tree, and only one of them gets handled.
Hans Goudey approved these changes 2023-11-16 11:57:34 +01:00
Jacques Lucke approved these changes 2023-11-16 15:57:20 +01:00

Does editing node group used by compositor trigger the compositor execution?

Does editing node group used by compositor trigger the compositor execution?
Author
Member

@Sergey Yes.

@Sergey Yes.
Sergey Sharybin approved these changes 2023-11-16 18:20:25 +01:00
Sergey Sharybin left a comment
Owner

Didn't have time to check on a user level. But if there are no cases when compositor update is now missing then go ahead :)

Didn't have time to check on a user level. But if there are no cases when compositor update is now missing then go ahead :)
Omar Emara merged commit 7ea54b7472 into main 2023-11-17 08:52:59 +01:00
Omar Emara deleted branch fix-114648 2023-11-17 08:53:01 +01:00
Sign in to join this conversation.
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
4 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#114978
No description provided.