diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-09 01:42:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-09 01:42:45 +0400 |
commit | 385c892418eec2851d2ab3c30c1ddee4b8ebb237 (patch) | |
tree | 7a8306832467f913ea89a2b181a8d2e984d09873 /source/blender/makesrna/intern/rna_texture.c | |
parent | a8a567d28eb67f4b8403be4f4959e07d1dd8628e (diff) |
UI: use proportional option while dragging buttons
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index b0e1ed04790..0d327d6da0a 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -538,6 +538,7 @@ static void rna_def_texmapping(BlenderRNA *brna) prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_XYZ); RNA_def_property_float_sdna(prop, NULL, "size"); + RNA_def_property_flag(prop, PROP_PROPORTIONAL); RNA_def_property_ui_text(prop, "Scale", ""); RNA_def_property_update(prop, 0, "rna_Texture_mapping_update"); @@ -674,6 +675,7 @@ static void rna_def_mtex(BlenderRNA *brna) prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_XYZ); RNA_def_property_float_sdna(prop, NULL, "size"); + RNA_def_property_flag(prop, PROP_PROPORTIONAL); RNA_def_property_ui_range(prop, -100, 100, 10, 2); RNA_def_property_ui_text(prop, "Size", "Set scaling for the texture's X, Y and Z sizes"); RNA_def_property_update(prop, 0, "rna_TextureSlot_brush_update"); |