Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-02-17 21:45:29 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-02-17 21:45:29 +0400
commite7ce4f22fb57d732750d756bf57d6ebcd307db85 (patch)
treeb5969edb186b0682a530bb5d260a390240088a9a /source
parent8a32f2c6d6768b646b7ef13726fe90f4b6857c7d (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index d52fd657397..315b18a3837 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) {