use a metaclass to have operator attributes register and display in the order defined.

This commit is contained in:
Campbell Barton
2009-11-20 20:58:46 +00:00
parent 19aa69f6f2
commit 34e7eb1676
4 changed files with 82 additions and 38 deletions

View File

@@ -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
path = rna_path
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.