Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-19 20:12:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-19 20:12:08 +0300
commite61c90e4162040f564e154da055995e2ed280fdf (patch)
tree70cfb3cde5608c03839acb460ddb6b53b57f39f9 /release/scripts/templates
parentac8ff25b2d6465e3ad2b79c359d74b4bab4985e4 (diff)
operators were copying the properties from the rna operator into the class instance.
however this meant the invoke function could not modify properties for exec to use (unless it called exec directly after) since the popup for eg would re-instance the python class each time. now use the operator properties directly through rna without an automatic copy. now an operator attribute is accessed like this... self.path --> self.properties.path
Diffstat (limited to 'release/scripts/templates')
-rw-r--r--release/scripts/templates/operator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates/operator.py b/release/scripts/templates/operator.py
index 60d7eeeabf9..dc46b66c96f 100644
--- a/release/scripts/templates/operator.py
+++ b/release/scripts/templates/operator.py
@@ -28,7 +28,7 @@ class ExportSomeData(bpy.types.Operator):
#if not self.is_property_set("path"):
# raise Exception("filename not set")
- write_some_data(self.path, context, self.use_setting)
+ write_some_data(self.properties.path, context, self.properties.use_setting)
return ('FINISHED',)