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:
authorJacques Lucke <jacques@blender.org>2020-05-12 11:59:41 +0300
committerJacques Lucke <jacques@blender.org>2020-05-12 11:59:41 +0300
commite0b5a202311eb08d67725670325697ee0afeed96 (patch)
treedd1a6d5b63a7a9a3f1372e2f542d8294b9e454d7 /source/blender/makesrna/intern/rna_userdef.c
parentf1f3381873d04f82a86af93e3477bf8442b32a43 (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/makesrna/intern/rna_userdef.c')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index d1af3ea7910..00d3189dcbe 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -4840,6 +4840,12 @@ static void rna_def_userdef_edit(BlenderRNA *brna)
RNA_def_property_ui_text(
prop, "Enter Edit Mode", "Enter Edit Mode automatically after adding a new object");
+ prop = RNA_def_property(srna, "collection_instance_empty_size", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_range(prop, 0.001f, FLT_MAX);
+ RNA_def_property_ui_text(prop,
+ "Collection Instance Empty Size",
+ "Display size of the empty when new collection instances are created");
+
/* Undo */
prop = RNA_def_property(srna, "undo_steps", PROP_INT, PROP_NONE);