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/io/export_ply.py
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/io/export_ply.py')
-rw-r--r--release/scripts/io/export_ply.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/io/export_ply.py b/release/scripts/io/export_ply.py
index 99fa3233278..e97ca2155f0 100644
--- a/release/scripts/io/export_ply.py
+++ b/release/scripts/io/export_ply.py
@@ -274,14 +274,14 @@ class ExportPLY(bpy.types.Operator):
def execute(self, context):
# print("Selected: " + context.active_object.name)
- if not self.path:
+ if not self.properties.path:
raise Exception("filename not set")
- write(self.path, context.scene, context.active_object,\
- EXPORT_APPLY_MODIFIERS = self.use_modifiers,
- EXPORT_NORMALS = self.use_normals,
- EXPORT_UV = self.use_uvs,
- EXPORT_COLORS = self.use_colors,
+ write(self.properties.path, context.scene, context.active_object,\
+ EXPORT_APPLY_MODIFIERS = self.properties.use_modifiers,
+ EXPORT_NORMALS = self.properties.use_normals,
+ EXPORT_UV = self.properties.use_uvs,
+ EXPORT_COLORS = self.properties.use_colors,
)
return ('FINISHED',)