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:
authorGeorge Vogiatzis <Gvgeo>2019-05-04 15:03:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-04 15:11:04 +0300
commitb8d806caf7c904b5489d9e5ed74fcb081379a4ec (patch)
tree872e13f77ee17edba491c2ff275ef8d39b50b18a /source/blender/makesrna
parente474549da5e2a5fa8dc3e80ce01aa8dc08d2f265 (diff)
UI: Add Look Developer Balls Size option
Note: Some adjustments were made compared to the diff mainly for code readability and made the default ball size 150px. Reviewed By: fclem Differential Revision: http://developer.blender.org/D4793
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index eade12be631..a9bec8262dd 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -4108,6 +4108,15 @@ static void rna_def_userdef_view(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Gizmo Size", "Diameter of the gizmo");
RNA_def_property_update(prop, 0, "rna_userdef_update");
+ /* Lookdev */
+ prop = RNA_def_property(srna, "lookdev_ball_size", PROP_INT, PROP_PIXEL);
+ RNA_def_property_int_sdna(prop, NULL, "lookdev_ball_size");
+ RNA_def_property_range(prop, 50, 400);
+ RNA_def_property_int_default(prop, 150);
+ RNA_def_property_ui_text(
+ prop, "LookDev Balls Size", "Maximum diameter of the LookDev balls size");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
+
/* View2D Grid Displays */
prop = RNA_def_property(srna, "view2d_grid_spacing_min", PROP_INT, PROP_PIXEL);
RNA_def_property_int_sdna(prop, NULL, "v2d_min_gridsize");