diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py index 50edb8859622ea70aa2b9bc80d58fc968f35914c..17449a4a46805f28acde48ae520122b7a550a355 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 7e84986bd1ec636afe65022095d4c4e746d87a69..85b102988975cb0abd1d9dc134b8eb153414bc42 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