Fix T37719: NodeTrees lose users on undo.
The node editor needs to "ensure real user" (id_us_ensure_real) on all the node trees. This was done correctly for all open groups, but missing for the base node tree. Function is a bit hidden behind anonymous arguments in readfile.c ...
This commit is contained in:
parent
b3bc9e4f77
commit
f1a0278e90
Notes:
blender-bot
2023-02-14 11:31:04 +01:00
Referenced by issue #38843, Bone parallel to world z axis flicking when scale in edit mode. Referenced by issue #38845, Modal number input's strange behaviour Referenced by issue #38834, Knife tool "angle constrain" doesn't work properly after panning 3D view Referenced by issue #38805, Boolean Modifier does not use the object shading mode Referenced by issue #38806, Proxy file changes don't update until Blender's restart Referenced by issue #37719, NodeTrees lose users on undo
|
@ -6083,7 +6083,7 @@ void blo_lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *cursc
|
|||
if (ntree)
|
||||
snode->nodetree = ntree;
|
||||
else
|
||||
snode->nodetree = restore_pointer_by_name(newmain, (ID*)snode->nodetree, 0);
|
||||
snode->nodetree = restore_pointer_by_name(newmain, (ID*)snode->nodetree, 2);
|
||||
|
||||
for (path = snode->treepath.first; path; path = path->next) {
|
||||
if (path == snode->treepath.first) {
|
||||
|
|
Loading…
Reference in New Issue