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.
This commit is contained in:
Sergey Sharybin 2017-07-07 16:38:56 +02:00
parent 4d4ebc8300
commit 1e21778261
Notes: blender-bot 2023-02-14 06:49:51 +01:00
Referenced by issue #51977, new depsgraph removes the grass in victor scene
1 changed files with 13 additions and 0 deletions

View File

@ -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: