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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user