[Bf-blender-cvs] [07346b6] master: Remove confusing recalc flag from simplify update callback

Sergey Sharybin noreply at git.blender.org
Fri Jan 17 14:44:47 CET 2014


Commit: 07346b62a53c4c6287d21ae7bcad4aea3f370fdd
Author: Sergey Sharybin
Date:   Fri Jan 17 19:43:26 2014 +0600
https://developer.blender.org/rB07346b62a53c4c6287d21ae7bcad4aea3f370fdd

Remove confusing recalc flag from simplify update callback

PSYS_RECALC_CHILD is not handled by handle_object_update at
all so it was rather pointless to set this flag.

Double-checked with Brecht.

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

M	source/blender/makesrna/intern/rna_scene.c

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

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 0426d06..807b6d8 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1270,8 +1270,6 @@ static void object_simplify_update(Object *ob)
 
 	for (md = ob->modifiers.first; md; md = md->next) {
 		if (ELEM3(md->type, eModifierType_Subsurf, eModifierType_Multires, eModifierType_ParticleSystem)) {
-			/* TODO(sergey): Figure out what da heck we're using PSYS flag on object.  */
-			ob->recalc |= PSYS_RECALC_CHILD;
 			DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
 		}
 	}




More information about the Bf-blender-cvs mailing list