From e7e051eb5d8e596bdbda9e3a02572a6db152e76e Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 25 Jul 2011 09:18:38 +0000 Subject: [PATCH] fix for some errors with recent commits --- io_mesh_ply/__init__.py | 4 ++-- light_field_tools/light_field_tools.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py index 50edb8859..17449a4a4 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 7e84986bd..85b102988 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 -- GitLab