diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-04-18 12:38:38 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-04-18 12:41:07 +0300 |
commit | 2117e46e5b85ac9e2e99afa7ddc305f81da1dffe (patch) | |
tree | 9987f06279bcc5f194d709837b95e71c592b53d4 /source/blender/editors/object | |
parent | 10ce4719d441616e06b2e94d374b510413b11b10 (diff) |
Disable auto-override for all but active object in group case.
I.E. only enable auto-override for 'active' selected object when making
an override of a linked group. This will ease on auto-override creation,
and you typically do not want to auto-override most objects in the group
anyway (in proxy system, you could only proxyfy one object of the group
anyaway!).
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 0e0f2784936..3cef80db032 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2437,6 +2437,12 @@ static int make_override_static_exec(bContext *C, wmOperator *op) base = BKE_view_layer_base_find(view_layer, new_ob); BKE_view_layer_base_select(view_layer, base); } + else { + /* Disable auto-override tags for non-active objects, will help with performaces... */ + new_ob->id.flag &= ~LIB_OVERRIDE_STATIC_AUTO; + } + /* We still want to store all objects' current override status (i.e. change of parent). */ + BKE_override_static_operations_create(&new_ob->id, true); } } FOREACH_GROUP_OBJECT_END; |