mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T96085: repeated evaluation of geometry nodes when nothing changed
Differential Revision: https://developer.blender.org/D14216
This commit is contained in:
parent
383a6ee78c
commit
4a95c3466f
1 changed files with 7 additions and 3 deletions
|
|
@ -465,9 +465,7 @@ bool ED_spreadsheet_context_path_is_active(const bContext *C, SpaceSpreadsheet *
|
|||
if (modifier == nullptr) {
|
||||
return false;
|
||||
}
|
||||
if (!(modifier->flag & eModifierFlag_Active)) {
|
||||
return false;
|
||||
}
|
||||
const bool modifier_is_active = modifier->flag & eModifierFlag_Active;
|
||||
if (modifier->type != eModifierType_Nodes) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -494,6 +492,12 @@ bool ED_spreadsheet_context_path_is_active(const bContext *C, SpaceSpreadsheet *
|
|||
if (snode->nodetree != root_node_tree) {
|
||||
continue;
|
||||
}
|
||||
if (!modifier_is_active) {
|
||||
if (!(snode->flag & SNODE_PIN)) {
|
||||
/* Node tree has to be pinned when the modifier is not active. */
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (snode->id != &object->id) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue