diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-20 23:58:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-20 23:58:46 +0300 |
commit | 34e7eb16769c31ba99fe5b74f06fd5c219b1133b (patch) | |
tree | a8d17a4c21abaea8249630b574f180db08e6d2f6 /release/scripts/modules/rna_prop_ui.py | |
parent | 19aa69f6f2a131cb00c8b3e79f635b4a28f4dc96 (diff) |
use a metaclass to have operator attributes register and display in the order defined.
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index ec0a47981d3..24359aca64c 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -138,14 +138,13 @@ class WM_OT_properties_edit(bpy.types.Operator): '''Internal use (edit a property path)''' bl_idname = "wm.properties_edit" bl_label = "Edit Property!" - - description = StringProperty(name="Tip", default="") + path = rna_path - value = rna_value property = rna_property - + value = rna_value min = rna_min max = rna_max + description = StringProperty(name="Tip", default="") # the class instance is not persistant, need to store in the class # not ideal but changes as the op runs. |