[Bf-blender-cvs] [e7ce4f2] master: Fix T38647: "Make Duplicates Real" crashes in Solid mode

Sergey Sharybin noreply at git.blender.org
Mon Feb 17 19:11:55 CET 2014


Commit: e7ce4f22fb57d732750d756bf57d6ebcd307db85
Author: Sergey Sharybin
Date:   Mon Feb 17 23:45:29 2014 +0600
https://developer.blender.org/rBe7ce4f22fb57d732750d756bf57d6ebcd307db85

Fix T38647: "Make Duplicates Real" crashes in Solid mode

This operator created new object and didn't tag them for update,
which made it so their data isn't ready at the time of drawing.

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

M	source/blender/editors/object/object_add.c

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

diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index d52fd65..315b18a 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1311,6 +1311,8 @@ static void make_object_duplilist_real(bContext *C, Scene *scene, Base *base,
 			BLI_ghash_insert(dupli_gh, dob, ob);
 		if (parent_gh)
 			BLI_ghash_insert(parent_gh, BLI_ghashutil_pairalloc(dob->ob, SET_INT_IN_POINTER(dob->persistent_id[0])), ob);
+
+		DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
 	}
 
 	if (use_hierarchy) {




More information about the Bf-blender-cvs mailing list