[Bf-blender-cvs] [1e217782617] master: Fix T51977: New depsgraph removes the grass in victor scene

Sergey Sharybin noreply at git.blender.org
Fri Jul 7 16:39:44 CEST 2017


Commit: 1e217782617f3e57b989222995ce6b23e00e0eec
Author: Sergey Sharybin
Date:   Fri Jul 7 16:38:56 2017 +0200
Branches: master
https://developer.blender.org/rB1e217782617f3e57b989222995ce6b23e00e0eec

Fix T51977: New depsgraph removes the grass in victor scene

For now just make new depsgraph do similar updates to the old one.

See bug report for more detailed information about what was going on.

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

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 dbe8a5f1984..62a7d6c6ab7 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1465,6 +1465,19 @@ void DepsgraphRelationBuilder::build_obdata_geom(Main *bmain, Scene *scene, Obje
 	/* type-specific node/links */
 	switch (ob->type) {
 		case OB_MESH:
+			/* NOTE: This is compatibility code to support particle systems
+			 *
+			 * for viewport being properly rendered in final render mode.
+			 * This relation is similar to what dag_object_time_update_flags()
+			 * was doing for mesh objects with particle system/
+			 *
+			 * Ideally we need to get rid of this relation.
+			 */
+			if (ob->particlesystem.first != NULL) {
+				TimeSourceKey time_key;
+				OperationKey obdata_ubereval_key(&ob->id, DEG_NODE_TYPE_GEOMETRY, DEG_OPCODE_GEOMETRY_UBEREVAL);
+				add_relation(time_key, obdata_ubereval_key, "Legacy particle time");
+			}
 			break;
 
 		case OB_MBALL:




More information about the Bf-blender-cvs mailing list