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
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-05-27 12:33:15 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-05-27 12:50:21 +0300
commitb40b9195e41acb0d68739fc64a518b1a6ec718c5 (patch)
tree5c197557fb677b5ed355957b0e4f8c746cd79e79 /source/blender/editors
parentd4f12860aa0d54e4a2d095cd55a51bc607bc65c0 (diff)
Fix T65160: missing updates when setting origin on a collection instance
Reviewers: sergey, brecht Maniphest Tasks: T65160 Differential Revision: https://developer.blender.org/D4953
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/object/object_transform.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index 8836d913475..61cdf689044 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -1335,6 +1335,12 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
BKE_object_batch_cache_dirty_tag(tob);
DEG_id_tag_update(&tob->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
}
+ /* special support for dupligroups */
+ else if (tob->instance_collection &&
+ tob->instance_collection->id.tag & LIB_TAG_DOIT) {
+ DEG_id_tag_update(&tob->id, ID_RECALC_TRANSFORM);
+ DEG_id_tag_update(&tob->instance_collection->id, ID_RECALC_COPY_ON_WRITE);
+ }
}
if (tot_change) {