bpy.ops.import.obj("somepath") is invalid syntax because import is a keyword.
[blender.git] / release / scripts / io / import_scene_obj.py
similarity index 99%
rename from release/scripts/io/import_obj.py
rename to release/scripts/io/import_scene_obj.py
index e5e0dc35995db7e529de402fbaf2b4ff520de830..d1b29a3024da96f7e61d48cfeae118f05f1e109f 100644 (file)
@@ -1574,7 +1574,7 @@ from bpy.props import *
 
 class IMPORT_OT_obj(bpy.types.Operator):
        '''Load a Wavefront OBJ File.'''
-       bl_idname = "import.obj"
+       bl_idname = "import_scene.obj"
        bl_label = "Import OBJ"
        
        # List of operator properties, the attributes will be assigned
@@ -1626,7 +1626,7 @@ bpy.ops.add(IMPORT_OT_obj)
 
 
 import dynamic_menu
-menu_func = lambda self, context: self.layout.itemO("import.obj", text="Wavefront (.obj)...")
+menu_func = lambda self, context: self.layout.itemO(IMPORT_OT_obj.bl_idname, text="Wavefront (.obj)...")
 menu_item = dynamic_menu.add(bpy.types.INFO_MT_file_import, menu_func)