[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35047] trunk/blender/release/scripts/ modules/add_object_utils.py: missed setting the new objects matrix from last commit.

Campbell Barton ideasman42 at gmail.com
Tue Feb 22 04:00:36 CET 2011


Revision: 35047
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35047
Author:   campbellbarton
Date:     2011-02-22 03:00:36 +0000 (Tue, 22 Feb 2011)
Log Message:
-----------
missed setting the new objects matrix from last commit.

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/add_object_utils.py

Modified: trunk/blender/release/scripts/modules/add_object_utils.py
===================================================================
--- trunk/blender/release/scripts/modules/add_object_utils.py	2011-02-22 02:47:59 UTC (rev 35046)
+++ trunk/blender/release/scripts/modules/add_object_utils.py	2011-02-22 03:00:36 UTC (rev 35047)
@@ -89,6 +89,7 @@
         if not (obj_act and obj_act.mode == 'EDIT' and obj_act.type == obj_new.type):
             _obdata = bpy.data.meshes.new(obdata.name)
             obj_act = bpy.data.objects.new(_obdata.name, _obdata)
+            obj_act.matrix_world = obj_new.matrix_world
             scene.objects.link(obj_act)
             scene.objects.active = obj_act
             bpy.ops.object.mode_set(mode='EDIT')




More information about the Bf-blender-cvs mailing list