Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-12-19 10:14:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-19 10:14:42 +0300
commit73ad13c879696fe45fae3dd0b09557a4b0f6baf8 (patch)
tree9dc71414ee120d1ed8424589bcb08f9eeb66a6d0 /release
parentc26cc0afa1bde9c388eab27be6cbc3efed7fb399 (diff)
fix for make-dupli-face operator & vector multiplication, tab/space error in last commit.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/object.py4
-rw-r--r--release/scripts/op/object_align.py2
-rw-r--r--release/scripts/ui/space_view3d.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/op/object.py b/release/scripts/op/object.py
index ffd40b9a9bd..01e6a5f3cd0 100644
--- a/release/scripts/op/object.py
+++ b/release/scripts/op/object.py
@@ -467,7 +467,7 @@ class JoinUVs(bpy.types.Operator):
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 @@ class MakeDupliFace(bpy.types.Operator):
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:
diff --git a/release/scripts/op/object_align.py b/release/scripts/op/object_align.py
index 045be5e80b8..fc2c9b2731f 100644
--- a/release/scripts/op/object_align.py
+++ b/release/scripts/op/object_align.py
@@ -35,7 +35,7 @@ def align_objects(align_x, align_y, align_z, align_mode, relative_to):
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:
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py
index 3a3a526dab5..73e142f530b 100644
--- a/release/scripts/ui/space_view3d.py
+++ b/release/scripts/ui/space_view3d.py
@@ -676,7 +676,7 @@ class VIEW3D_MT_object(bpy.types.Menu):
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")