"Fix" for #17636 Crashing bug - won't open a file
[blender.git] / source / blender / blenkernel / intern / depsgraph.c
index 1be0a2aafdbfef0c0b4313918ad924c6686adbec..d958c43aa40a276175f5fc1a4fb5a69ebfa03e71 100644 (file)
@@ -581,9 +581,12 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Object *ob, int
 
                for(; psys; psys=psys->next) {
                        ParticleSettings *part= psys->part;
-                       
+
                        dag_add_relation(dag, node, node, DAG_RL_OB_DATA, "Particle-Object Relation");
 
+                       if(psys->flag & PSYS_DISABLED || psys->flag & PSYS_DELETE)
+                               continue;
+
                        if(part->phystype==PART_PHYS_KEYED && psys->keyed_ob &&
                           BLI_findlink(&psys->keyed_ob->particlesystem,psys->keyed_psys-1)) {
                                node2 = dag_get_node(dag, psys->keyed_ob);