diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-05 17:00:16 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-05 17:00:16 +0400 |
commit | 5ad071633f5501c707c59b58910537b451cf14c7 (patch) | |
tree | e25354da59b0810cbc3480319b45a96f773383a3 /source/blender/makesrna/intern/rna_brush.c | |
parent | 4cfffd863b69bad2962fbfef8dbc565b0c739c65 (diff) |
Stencil dimension control:
* Shift-Rclick and holding right click, x or y will trigger constrained
scaling of overlay. Pressing again will revert to uniform scaling.
* Added operator, visible under the mapping drop menu, to fit stencil
aspect ratio to brush image aspect ratio.
* Made it possible to access stencil attributes from python as vec.x,
vec.y. Thanks to kgeogeo for pointing out!
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index b0cc999a9e9..0c5b257733a 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -793,13 +793,13 @@ static void rna_def_brush(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Autosmooth", "Amount of smoothing to automatically apply to each stroke"); RNA_def_property_update(prop, 0, "rna_Brush_update"); - prop = RNA_def_property(srna, "stencil_pos", PROP_FLOAT, PROP_DISTANCE); + prop = RNA_def_property(srna, "stencil_pos", PROP_FLOAT, PROP_XYZ); RNA_def_property_float_sdna(prop, NULL, "stencil_pos"); RNA_def_property_array(prop, 2); RNA_def_property_ui_text(prop, "Stencil Position", "Position of stencil in viewport"); RNA_def_property_update(prop, 0, "rna_Brush_update"); - prop = RNA_def_property(srna, "stencil_dimension", PROP_FLOAT, PROP_DISTANCE); + prop = RNA_def_property(srna, "stencil_dimension", PROP_FLOAT, PROP_XYZ); RNA_def_property_float_sdna(prop, NULL, "stencil_dimension"); RNA_def_property_array(prop, 2); RNA_def_property_ui_text(prop, "Stencil Dimensions", "Dimensions of stencil in viewport"); |