diff options
author | Daniel Salazar <zanqdo@gmail.com> | 2011-02-01 04:18:16 +0300 |
---|---|---|
committer | Daniel Salazar <zanqdo@gmail.com> | 2011-02-01 04:18:16 +0300 |
commit | 7b3a49af8c455d433cbccd7bff8948e6ada28d33 (patch) | |
tree | 34ec31e6aaa943b51b4cf0af784b7095beb2d715 /source/blender | |
parent | dc8078e667e69d3027792a38efda7ed5cfc517d2 (diff) |
Added Center button to backdrop controls in node editor's side panel
Inlined backdrop's zoom ui limits and hard limits so that
going to minimun and going back to 100 works
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 451146a9dfc..a085b52af46 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2312,6 +2312,7 @@ static void rna_def_space_node(BlenderRNA *brna) prop= RNA_def_property(srna, "backdrop_zoom", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "zoom"); RNA_def_property_range(prop, 0.01f, FLT_MAX); + RNA_def_property_ui_range(prop, 0.01, 100, 1, 2); RNA_def_property_ui_text(prop, "Backdrop Zoom", "Backdrop zoom factor"); RNA_def_property_update(prop, NC_SPACE|ND_SPACE_NODE_VIEW, NULL); |