[Bf-blender-cvs] [9b7b9d6ae9] blender2.8: Depsgraph: mesh cache depends needs updates when geometry changes (patch by Sergey Sharybin)

Dalai Felinto noreply at git.blender.org
Thu Jan 26 19:15:30 CET 2017


Commit: 9b7b9d6ae9f7177995f1e849a2f3f4d4ad4ffcf4
Author: Dalai Felinto
Date:   Thu Jan 26 19:06:17 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB9b7b9d6ae9f7177995f1e849a2f3f4d4ad4ffcf4

Depsgraph: mesh cache depends needs updates when geometry changes (patch by Sergey Sharybin)

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

M	source/blender/depsgraph/intern/builder/deg_builder_relations.cc

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

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index ba7818c21a..41d2ca0ca6 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1432,6 +1432,14 @@ void DepsgraphRelationBuilder::build_obdata_geom(Main *bmain, Scene *scene, Obje
 				             "Object Shading");
 			}
 		}
+		OperationKey obdata_geom_done_key(obdata,
+		                                  DEPSNODE_TYPE_GEOMETRY,
+		                                  DEG_OPCODE_PLACEHOLDER,
+		                                  "Eval Done");
+		add_relation(geom_key,
+		             object_shading_key,
+		             DEPSREL_TYPE_UPDATE,
+		             "Object Shading");
 	}
 
 	/* geometry collision */




More information about the Bf-blender-cvs mailing list