Fix #120680: Add node tree update operation after adding new views #120685

Merged
Jacques Lucke merged 4 commits from Weikang-Qiu/blender:switch-view-update into main 2024-05-01 10:24:19 +02:00
Contributor

The Switch View Node cannot be automatically updated when new views are added. This is because there is no tree update operation after adding new views. This patch simply fix it by tag the node tree and update it.

The Switch View Node cannot be automatically updated when new views are added. This is because there is no tree update operation after adding new views. This patch simply fix it by tag the node tree and update it.
Weikang-Qiu added 1 commit 2024-04-16 02:04:55 +02:00
Weikang-Qiu changed title from Fix #120680: Add node tree update operatiion after adding new views to Fix #120680: Add node tree update operation after adding new views 2024-04-16 05:38:59 +02:00
Omar Emara requested review from Omar Emara 2024-04-16 09:12:07 +02:00
Iliya Katushenock requested review from Jacques Lucke 2024-04-16 11:05:32 +02:00
Jacques Lucke requested changes 2024-04-16 12:31:01 +02:00
Dismissed
Jacques Lucke left a comment
Member

I think instead of calling BKE_ntree_update_tag_all this should tag the individual switch view nodes that reference to modified scene.

Furthermore, this has to be done on node groups too, not just the top-level compositor node tree.

I think instead of calling `BKE_ntree_update_tag_all` this should tag the individual switch view nodes that reference to modified scene. Furthermore, this has to be done on node groups too, not just the top-level compositor node tree.
Member

Actually, you could try to use BKE_ntree_update_tag_id_changed.

Actually, you could try to use `BKE_ntree_update_tag_id_changed`.
Author
Contributor

Is it the minimal way to update node groups by calling ED_node_tree_propagate_change(C, bmain, nullptr); with the third argument being nullptr?

Is it the minimal way to update node groups by calling `ED_node_tree_propagate_change(C, bmain, nullptr);` with the third argument being `nullptr`?
Member

Yes, sounds correct.

Yes, sounds correct.
Weikang-Qiu added 1 commit 2024-04-16 17:04:16 +02:00
Weikang-Qiu added 1 commit 2024-04-16 17:05:43 +02:00
Weikang-Qiu added 1 commit 2024-04-16 17:07:22 +02:00
Weikang-Qiu requested review from Jacques Lucke 2024-04-16 17:11:34 +02:00
Jacques Lucke approved these changes 2024-04-16 18:48:52 +02:00
Omar Emara refused to review 2024-05-01 10:19:13 +02:00
Jacques Lucke merged commit c727bf3f76 into main 2024-05-01 10:24:19 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
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 & 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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & 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 project
No Assignees
2 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#120685
No description provided.