[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [953] contrib/py/scripts/addons/ add_mesh_archimedean_solids.py: update for changes to the api

Brendon Murphy meta.androcto1 at gmail.com
Sat Aug 28 13:42:26 CEST 2010


Revision: 953
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=953
Author:   meta-androcto
Date:     2010-08-28 13:42:24 +0200 (Sat, 28 Aug 2010)

Log Message:
-----------
update for changes to the api

Modified Paths:
--------------
    contrib/py/scripts/addons/add_mesh_archimedean_solids.py

Modified: contrib/py/scripts/addons/add_mesh_archimedean_solids.py
===================================================================
--- contrib/py/scripts/addons/add_mesh_archimedean_solids.py	2010-08-27 02:33:50 UTC (rev 952)
+++ contrib/py/scripts/addons/add_mesh_archimedean_solids.py	2010-08-28 11:42:24 UTC (rev 953)
@@ -14,7 +14,7 @@
 #  along with this program; if not, write to the Free Software Foundation,
 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
-# ##### END GPL LICENSE BLOCK #####
+# ##### END GPL LICENSE BLOCK ######
 
 bl_addon_info = {
     'name': 'Add Mesh: Archimedean Solids',
@@ -33,10 +33,8 @@
 from mathutils import *
 from bpy.props import *
 
-# calculates the matrix for the new object
-# depending on user pref
 def align_matrix(context):
-    loc = TranslationMatrix(context.scene.cursor_location)
+    loc = Matrix.Translation(context.scene.cursor_location)
     obj_align = context.user_preferences.edit.object_align
     if (context.space_data.type == 'VIEW_3D'
         and obj_align == 'VIEW'):




More information about the Bf-extensions-cvs mailing list