change blender python interface for classes not to ise __idname__ rather bl_idname since __somename__ is for pythons internal use.
replacements... "__idname__" -> "bl_idname" "__props__" -> "bl_props" "__label__" -> "bl_label" "__register__" -> "bl_register" "__undo__" -> "bl_undo" "__space_type__" -> "bl_space_type" "__default_closed__" -> "bl_default_closed" "__region_type__" -> "bl_region_type" "__context__" -> "bl_context" "__show_header__" -> "bl_show_header" "__URL__" -> "_url"
This commit is contained in:
@@ -916,13 +916,13 @@ Currently the exporter lacks these features:
|
||||
class EXPORT_OT_obj(bpy.types.Operator):
|
||||
'''Save a Wavefront OBJ File'''
|
||||
|
||||
__idname__ = "export.obj"
|
||||
__label__ = 'Export OBJ'
|
||||
bl_idname = "export.obj"
|
||||
bl_label = 'Export OBJ'
|
||||
|
||||
# List of operator properties, the attributes will be assigned
|
||||
# to the class instance from the operator settings before calling.
|
||||
|
||||
__props__ = [
|
||||
bl_props = [
|
||||
bpy.props.StringProperty(attr="path", name="File Path", description="File path used for exporting the OBJ file", maxlen= 1024, default= ""),
|
||||
|
||||
# context group
|
||||
|
||||
Reference in New Issue
Block a user