projects
/
io_import_off.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
74b8217
)
fix for 2.57
author
Stefan Huber <shuber2@gmail.com>
Thu, 19 May 2011 08:35:46 +0000
(10:35 +0200)
committer
Stefan Huber <shuber2@gmail.com>
Thu, 19 May 2011 08:35:46 +0000
(10:35 +0200)
io_import_off.py
patch
|
blob
|
history
diff --git
a/io_import_off.py
b/io_import_off.py
index 1ca085404af444310c4a0e0d93fee93e43aabf30..86b825cace8b4b39aa4dd42e55164a9e5195ddea 100644
(file)
--- a/
io_import_off.py
+++ b/
io_import_off.py
@@
-3,25
+3,19
@@
# Import DEC Object File Format (*.off)
\r
\r
\r
# Import DEC Object File Format (*.off)
\r
\r
\r
-bl_
addon_
info = {
\r
+bl_info = {
\r
"name": "Import DEC Object File Format (.off)",
\r
"name": "Import DEC Object File Format (.off)",
\r
- "author": "Stefan Huber (shuber)",
\r
- "version": (0,
7
),
\r
- "blender": (2, 5,
3
),
\r
+ "author": "Stefan Huber (shuber
2@gmail.com
)",
\r
+ "version": (0,
0
),
\r
+ "blender": (2, 5,
57
),
\r
"api": 31667,
\r
"location": "File > Import > Import DEC Object File Format (.off)",
\r
"description": "Import DEC Object File Format (.off) files",
\r
"warning": "",
\r
"api": 31667,
\r
"location": "File > Import > Import DEC Object File Format (.off)",
\r
"description": "Import DEC Object File Format (.off) files",
\r
"warning": "",
\r
- "category": "Import
/
Export"
\r
+ "category": "Import
-
Export"
\r
}
\r
\r
}
\r
\r
-
\r
-
\r
-__author__ = "Stefan Huber"
\r
-#__url__ = ("blender", "blenderartists.org", "Author's homepage, http://www.redrival.com/scorpius")
\r
-#__version__ = "Part of IOSuite 0.5"
\r
-
\r
-__bpydoc__ = """\
\r
+"""
\r
This script imports DEC Object File Format files to Blender.
\r
\r
The DEC (Digital Equipment Corporation) OFF format is very old and
\r
This script imports DEC Object File Format files to Blender.
\r
\r
The DEC (Digital Equipment Corporation) OFF format is very old and
\r
@@
-41,6
+35,11
@@
Notes:<br>
New Mesh module now used. - Cam
\r
"""
\r
\r
New Mesh module now used. - Cam
\r
"""
\r
\r
+__version__ = '.'.join([str(s) for s in bl_info['version']])
\r
+
\r
+
\r
+
\r
+
\r
import bpy
\r
from bpy.props import *
\r
\r
import bpy
\r
from bpy.props import *
\r
\r
@@
-176,19
+175,20
@@
def importFile(filepath, context):
\r
\r
\r
\r
\r
\r
-class I
mportOffFile
(bpy.types.Operator):
\r
+class I
MPORT_OT_dec_off
(bpy.types.Operator):
\r
'''Import DEC object file format (.off) files as specified by
\r
http://shape.cs.princeton.edu/benchmark/documentation/off_format.html'''
\r
\r
'''Import DEC object file format (.off) files as specified by
\r
http://shape.cs.princeton.edu/benchmark/documentation/off_format.html'''
\r
\r
- bl_idname = "import
.off_files
"
\r
- bl_label = "Import DEC
Object File Format (.off)
"
\r
+ bl_idname = "import
_scene.dec_off
"
\r
+ bl_label = "Import DEC
off
"
\r
bl_description = "Imports DEC object file format (.off)"
\r
bl_options = {'REGISTER'}
\r
\r
filepath = StringProperty(name="File Path",
\r
description="Filepath used for importing the file",
\r
maxlen=1024,
\r
bl_description = "Imports DEC object file format (.off)"
\r
bl_options = {'REGISTER'}
\r
\r
filepath = StringProperty(name="File Path",
\r
description="Filepath used for importing the file",
\r
maxlen=1024,
\r
- default="" )
\r
+ default=""
\r
+ )
\r
\r
extEnum = [
\r
('*', 'All image formats', 'Import all know image (or movie) formats.'),
\r
\r
extEnum = [
\r
('*', 'All image formats', 'Import all know image (or movie) formats.'),
\r
@@
-216,13
+216,16
@@
http://shape.cs.princeton.edu/benchmark/documentation/off_format.html'''
\r
# Registering / Unregister
\r
def menu_func(self, context):
\r
\r
# Registering / Unregister
\r
def menu_func(self, context):
\r
- self.layout.operator(ImportOffFile.bl_idname, \
\r
- text="DEC Object File Format (.off)", icon='PLUGIN')
\r
+ self.layout.operator(IMPORT_OT_dec_off.bl_idname,
\r
+ text="DEC Object File Format (.off)",
\r
+ icon='PLUGIN' )
\r
\r
def register():
\r
\r
def register():
\r
+ bpy.utils.register_module(__name__)
\r
bpy.types.INFO_MT_file_import.append(menu_func)
\r
\r
def unregister():
\r
bpy.types.INFO_MT_file_import.append(menu_func)
\r
\r
def unregister():
\r
+ bpy.utils.unregister_module(__name__)
\r
bpy.types.INFO_MT_file_import.remove(menu_func)
\r
\r
\r
bpy.types.INFO_MT_file_import.remove(menu_func)
\r
\r
\r