Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-29 10:26:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-29 10:26:13 +0400
commit3f7e914d5effb63290ab4b1676abbc0556ee04a7 (patch)
treeb5312b816ffcb479bdae251afc5bd486433eba1d /io_mesh_raw
parent2a9841dc56d9a7d1df773c4114f6805674471dd3 (diff)
pep8 edits and some style change
Diffstat (limited to 'io_mesh_raw')
-rw-r--r--io_mesh_raw/__init__.py28
-rw-r--r--io_mesh_raw/import_raw.py2
2 files changed, 24 insertions, 6 deletions
diff --git a/io_mesh_raw/__init__.py b/io_mesh_raw/__init__.py
index 0003378f..76257f98 100644
--- a/io_mesh_raw/__init__.py
+++ b/io_mesh_raw/__init__.py
@@ -70,11 +70,28 @@ class RawExporter(bpy.types.Operator):
bl_idname = "export_mesh.raw"
bl_label = "Export RAW"
- filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen=1024, default= "", subtype='FILE_PATH')
- check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
-
- apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True)
- triangulate = BoolProperty(name="Triangulate", description="Triangulate quads.", default=True)
+ filepath = StringProperty(
+ name="File Path",
+ description="Filepath used for exporting the RAW file",
+ maxlen=1024,
+ subtype='FILE_PATH',
+ )
+ check_existing = BoolProperty(
+ name="Check Existing",
+ description="Check and warn on overwriting existing files",
+ default=True,
+ options={'HIDDEN'},
+ )
+ apply_modifiers = BoolProperty(
+ name="Apply Modifiers",
+ description="Use transformed mesh data from each object",
+ default=True,
+ )
+ triangulate = BoolProperty(
+ name="Triangulate",
+ description="Triangulate quads.",
+ default=True,
+ )
def execute(self, context):
from . import export_raw
@@ -107,6 +124,7 @@ def register():
bpy.types.INFO_MT_file_import.append(menu_import)
bpy.types.INFO_MT_file_export.append(menu_export)
+
def unregister():
bpy.utils.unregister_module(__name__)
diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py
index 870f880b..f17a41ee 100644
--- a/io_mesh_raw/import_raw.py
+++ b/io_mesh_raw/import_raw.py
@@ -43,6 +43,7 @@ tolerance.
import bpy
+
def readMesh(filename, objName):
file = open(filename, "rb")
@@ -59,7 +60,6 @@ def readMesh(filename, objName):
else:
return None
-
faces = []
for line in file.readlines():
face = line_to_face(line)