Annoying hack to pretend that an operator and its properties are the same, when passing an operator to an rna function argument which accepts 'AnyType', then pass the properties instead.

This means we can do operator drawing without passing self.properties as an argument.

while this check if quite specific, if this gives problems later on we should probably change operators not to try to mix an operator and its properties, it looks nice to a scripter but internally is not easy to manage.
This commit is contained in:
2010-09-24 03:48:26 +00:00
parent f866de1c9f
commit e90ad1d9ba
4 changed files with 27 additions and 8 deletions

View File

@@ -113,7 +113,6 @@ class ExportOBJ(bpy.types.Operator, ExportHelper):
def execute(self, context):
import io_scene_obj.export_obj
print(self.properties.keys())
return io_scene_obj.export_obj.save(self, context, **self.properties)