Skip to content
Snippets Groups Projects
Commit e7e051eb authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for some errors with recent commits

parent d71455d4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment