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-25 13:18:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-25 13:18:38 +0400
commite7e051eb5d8e596bdbda9e3a02572a6db152e76e (patch)
tree3bfb65bb16b4b26912bd3359b623bcbfc3cc2334
parentd71455d4c1534a1949f6fb0e6ab0fcb1ceb7c2f8 (diff)
fix for some errors with recent commits
-rw-r--r--io_mesh_ply/__init__.py4
-rw-r--r--light_field_tools/light_field_tools.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py
index 50edb885..17449a4a 100644
--- a/io_mesh_ply/__init__.py
+++ b/io_mesh_ply/__init__.py
@@ -114,8 +114,8 @@ class ExportPLY(bpy.types.Operator, ExportHelper):
filepath = self.filepath
filepath = bpy.path.ensure_ext(filepath, self.filename_ext)
from . import export_ply
- keywords = **self.as_keywords(ignore=("check_existing", "filter_glob"))
- return export_ply.save(self, context, keywords)
+ keywords = self.as_keywords(ignore=("check_existing", "filter_glob"))
+ return export_ply.save(self, context, **keywords)
def draw(self, context):
layout = self.layout
diff --git a/light_field_tools/light_field_tools.py b/light_field_tools/light_field_tools.py
index 7e84986b..85b10298 100644
--- a/light_field_tools/light_field_tools.py
+++ b/light_field_tools/light_field_tools.py
@@ -320,7 +320,7 @@ class OBJECT_OT_create_lightfield_basemesh(bpy.types.Operator):
def getCamVec(self, obj, angle):
width = self.getWidth(obj)
itmat = obj.matrix_local.inverted().transposed()
- normal = (itmat * obj.data.faces[0].normal.normalized()
+ normal = itmat * obj.data.faces[0].normal.normalized()
vl = (width/2) * (1/math.tan(math.radians(angle/2)))
return normal*vl