diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-27 17:54:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-27 17:54:45 +0300 |
commit | 3dd3e7321eee426112859bfc2427749c2f6113e6 (patch) | |
tree | b92e7e99389f326442fdc773eba41e30a7e4eb88 /release/scripts/modules/rna_prop_ui.py | |
parent | ddacff06f287a849b88b498d5efcab90253e49c3 (diff) |
store vars in py operators in the instance rather then the operator classes.
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index 8079c461e43..246fa4bdb7d 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -164,10 +164,6 @@ class WM_OT_properties_edit(bpy.types.Operator): 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. - _last_prop = [''] - def execute(self, context): path = self.properties.path value = self.properties.value @@ -209,7 +205,7 @@ class WM_OT_properties_edit(bpy.types.Operator): def invoke(self, context, event): - self._last_prop[:] = [self.properties.property] + self._last_prop = [self.properties.property] item = eval("context.%s" % self.properties.path) |