forked from bartvdbraak/blender
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:
parent
4d4ebc8300
commit
1e21778261
@ -1465,6 +1465,19 @@ void DepsgraphRelationBuilder::build_obdata_geom(Main *bmain, Scene *scene, Obje
|
|||||||
/* type-specific node/links */
|
/* type-specific node/links */
|
||||||
switch (ob->type) {
|
switch (ob->type) {
|
||||||
case OB_MESH:
|
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;
|
break;
|
||||||
|
|
||||||
case OB_MBALL:
|
case OB_MBALL:
|
||||||
|
Loading…
Reference in New Issue
Block a user