Commit: 2d054667001602cd9b15046190e09167d7951d89
Author: Sergey Sharybin
Date:   Wed Apr 8 20:03:35 2015 +0500
Branches: master
https://developer.blender.org/rB2d054667001602cd9b15046190e09167d7951d89

Fix T44213: Bevel object from different scene won't update generated bezier 
curve geometry

The issue was caused by bevel object being automatically added to the scene 
graph
by dag_get_node() and had no incoming relations, even form the scene. This 
confused
scene update flush logic.

Now there'll be a scene relation added to such nodes, so they're always 
reachable
from the root node.

===================================================================

M       source/blender/blenkernel/intern/depsgraph.c

===================================================================

diff --git a/source/blender/blenkernel/intern/depsgraph.c 
b/source/blender/blenkernel/intern/depsgraph.c
index 9114156..869404a 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -960,6 +960,10 @@ DagForest *build_dag(Main *bmain, Scene *sce, short mask)
 
                        /* also flush custom data mask */
                        ((Object *)node->ob)->customdata_mask = 
node->customdata_mask;
+
+                       if (node->parent == NULL) {
+                               dag_add_relation(dag, scenenode, node, 
DAG_RL_SCENE, "Scene Relation");
+                       }
                }
        }
        /* now set relations equal, so that when only one parent changes, the 
correct recalcs are found */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to