[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33777] trunk/blender/release/scripts: fix for make-dupli-face operator & vector multiplication, tab/ space error in last commit.
Campbell Barton
ideasman42 at gmail.com
Sun Dec 19 08:14:43 CET 2010
Revision: 33777
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33777
Author: campbellbarton
Date: 2010-12-19 08:14:42 +0100 (Sun, 19 Dec 2010)
Log Message:
-----------
fix for make-dupli-face operator & vector multiplication, tab/space error in last commit.
Modified Paths:
--------------
trunk/blender/release/scripts/op/object.py
trunk/blender/release/scripts/op/object_align.py
trunk/blender/release/scripts/ui/space_view3d.py
Modified: trunk/blender/release/scripts/op/object.py
===================================================================
--- trunk/blender/release/scripts/op/object.py 2010-12-19 07:05:29 UTC (rev 33776)
+++ trunk/blender/release/scripts/op/object.py 2010-12-19 07:14:42 UTC (rev 33777)
@@ -467,7 +467,7 @@
class MakeDupliFace(bpy.types.Operator):
'''Make linked objects into dupli-faces'''
bl_idname = "object.make_dupli_face"
- bl_label = "Make DupliFace"
+ bl_label = "Make Dupli-Face"
@classmethod
def poll(cls, context):
@@ -487,7 +487,7 @@
trans = matrix.translation_part()
rot = matrix.rotation_part() # also contains scale
- return [(rot * b) + trans for b in base_tri]
+ return [(b * rot) + trans for b in base_tri]
scene = bpy.context.scene
linked = {}
for obj in bpy.context.selected_objects:
Modified: trunk/blender/release/scripts/op/object_align.py
===================================================================
--- trunk/blender/release/scripts/op/object_align.py 2010-12-19 07:05:29 UTC (rev 33776)
+++ trunk/blender/release/scripts/op/object_align.py 2010-12-19 07:14:42 UTC (rev 33777)
@@ -35,7 +35,7 @@
for obj in bpy.context.selected_objects:
matrix_world = obj.matrix_world
- bb_world = [Vector(v[:]) * matrix_world for v in obj.bound_box]
+ bb_world = [Vector(v[:]) * matrix_world for v in obj.bound_box]
objs.append((obj, bb_world))
if not objs:
Modified: trunk/blender/release/scripts/ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d.py 2010-12-19 07:05:29 UTC (rev 33776)
+++ trunk/blender/release/scripts/ui/space_view3d.py 2010-12-19 07:14:42 UTC (rev 33777)
@@ -676,7 +676,7 @@
layout.operator("object.delete", text="Delete...")
layout.operator("object.proxy_make", text="Make Proxy...")
layout.menu("VIEW3D_MT_make_links", text="Make Links...")
- layout.operator("object.make_dupli_face", text="Make Dupliface...")
+ layout.operator("object.make_dupli_face")
layout.operator_menu_enum("object.make_local", "type", text="Make Local...")
layout.menu("VIEW3D_MT_make_single_user")
More information about the Bf-blender-cvs
mailing list