diff options
author | George Vogiatzis <Gvgeo> | 2019-05-01 18:42:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-01 19:05:48 +0300 |
commit | a8bdb357b4c16f1c6fff818ca72f6a67f833a0ac (patch) | |
tree | b17f9c46e76b5c6f1d9458ebe9ab04d5873a6e57 /source/blender/makesrna/intern/rna_userdef.c | |
parent | 5b7806510fe668fd36be45246d013b908afa33c6 (diff) |
UI: move object origin size preference to themes
Differential Revision: https://developer.blender.org/D4657
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index ac305bd0bb6..6321fd7f241 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -2031,6 +2031,13 @@ static void rna_def_userdef_theme_space_view3d(BlenderRNA *brna) RNA_def_property_range(prop, 1, 5); RNA_def_property_ui_text(prop, "Outline Width", ""); RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); + + prop = RNA_def_property(srna, "object_origin_size", PROP_INT, PROP_PIXEL); + RNA_def_property_int_sdna(prop, NULL, "obcenter_dia"); + RNA_def_property_range(prop, 4, 10); + RNA_def_property_ui_text( + prop, "Object Origin Size", "Diameter in Pixels for Object/Light origin display"); + RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); } static void rna_def_userdef_theme_space_graph(BlenderRNA *brna) @@ -4101,13 +4108,6 @@ 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"); - prop = RNA_def_property(srna, "object_origin_size", PROP_INT, PROP_PIXEL); - RNA_def_property_int_sdna(prop, NULL, "obcenter_dia"); - RNA_def_property_range(prop, 4, 10); - RNA_def_property_ui_text( - prop, "Object Origin Size", "Diameter in Pixels for Object/Light origin display"); - 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"); |