diff options
author | Jacques Lucke <jacques@blender.org> | 2020-05-12 11:59:41 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-05-12 11:59:41 +0300 |
commit | e0b5a202311eb08d67725670325697ee0afeed96 (patch) | |
tree | dd1a6d5b63a7a9a3f1372e2f542d8294b9e454d7 /source/blender/blenloader/intern/readfile.c | |
parent | f1f3381873d04f82a86af93e3477bf8442b32a43 (diff) |
Preferences: Customize default empty size for collection instances
The old value (1.0) was often too large in practice. When many collection
instances are created, the large empties create a mess in the viewport.
This adds a new preference setting in `Editing -> Objects -> New Objects`
called `Instance Empty Size`.
The value will be used as display size for new empties containing a
collection instance.
Reviewers: Severin
Differential Revision: https://developer.blender.org/D7650
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c5f9ab67c4e..7a63c2699f3 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -11942,6 +11942,7 @@ static void add_collections_to_scene(Main *mainvar, /* BKE_object_add(...) messes with the selection. */ Object *ob = BKE_object_add_only_object(bmain, OB_EMPTY, collection->id.name + 2); ob->type = OB_EMPTY; + ob->empty_drawsize = U.collection_instance_empty_size; BKE_collection_object_add(bmain, active_collection, ob); Base *base = BKE_view_layer_base_find(view_layer, ob); |