[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2181] trunk/py/scripts/addons: fix for some errors with recent commits
Campbell Barton
ideasman42 at gmail.com
Mon Jul 25 11:18:38 CEST 2011
Revision: 2181
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2181
Author: campbellbarton
Date: 2011-07-25 09:18:38 +0000 (Mon, 25 Jul 2011)
Log Message:
-----------
fix for some errors with recent commits
Modified Paths:
--------------
trunk/py/scripts/addons/io_mesh_ply/__init__.py
trunk/py/scripts/addons/light_field_tools/light_field_tools.py
Modified: trunk/py/scripts/addons/io_mesh_ply/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_ply/__init__.py 2011-07-25 09:09:46 UTC (rev 2180)
+++ trunk/py/scripts/addons/io_mesh_ply/__init__.py 2011-07-25 09:18:38 UTC (rev 2181)
@@ -114,8 +114,8 @@
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
Modified: trunk/py/scripts/addons/light_field_tools/light_field_tools.py
===================================================================
--- trunk/py/scripts/addons/light_field_tools/light_field_tools.py 2011-07-25 09:09:46 UTC (rev 2180)
+++ trunk/py/scripts/addons/light_field_tools/light_field_tools.py 2011-07-25 09:18:38 UTC (rev 2181)
@@ -320,7 +320,7 @@
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
More information about the Bf-extensions-cvs
mailing list