rna context rename

* context.main & bpy.types.Main --> context.blend_data & bpy.types.BlendData
* context.manager --> context.window_manager
This commit is contained in:
2010-09-02 04:53:05 +00:00
parent 6e1e638313
commit ddbfb05c84
24 changed files with 48 additions and 49 deletions

View File

@@ -28,9 +28,9 @@ class ExportHelper:
def invoke(self, context, event):
import os
if not self.properties.is_property_set("filepath"):
self.properties.filepath = os.path.splitext(context.main.filepath)[0] + self.filename_ext
self.properties.filepath = os.path.splitext(context.blend_data.filepath)[0] + self.filename_ext
context.manager.add_fileselect(self)
context.window_manager.add_fileselect(self)
return {'RUNNING_MODAL'}
@@ -38,8 +38,7 @@ class ImportHelper:
filepath = StringProperty(name="File Path", description="Filepath used for importing the file", maxlen= 1024, default= "", subtype='FILE_PATH')
def invoke(self, context, event):
wm = context.manager
wm.add_fileselect(self)
context.window_manager.add_fileselect(self)
return {'RUNNING_MODAL'}