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>2014-01-07 11:09:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-07 11:09:02 +0400
commitead8b82ca710feffcff127328a5c225d6aaf25b1 (patch)
treee4029bde60d9523f0b6f75448877c9c08bd9549c /release/scripts/startup/bl_operators/object.py
parent4a372102c708ee5a53af5b70a4efec30f2d87b6f (diff)
Object Operators: make-dupliface and join-uvs weren't using UNDO.
also improve make-dupliface tip
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-rw-r--r--release/scripts/startup/bl_operators/object.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 977375fe38d..321c4a39c3b 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -132,7 +132,7 @@ class SelectCamera(Operator):
else:
if not self.extend:
bpy.ops.object.select_all(action='DESELECT')
- context.scene.objects.active = camera
+ scene.objects.active = camera
camera.hide = False
camera.select = True
return {'FINISHED'}
@@ -166,6 +166,7 @@ class SelectHierarchy(Operator):
return context.object
def execute(self, context):
+ scene = context.scene
select_new = []
act_new = None
@@ -201,7 +202,7 @@ class SelectHierarchy(Operator):
for obj in select_new:
obj.select = True
- context.scene.objects.active = act_new
+ scene.objects.active = act_new
return {'FINISHED'}
return {'CANCELLED'}
@@ -479,6 +480,7 @@ class JoinUVs(Operator):
"""(needs matching geometry)"""
bl_idname = "object.join_uvs"
bl_label = "Transfer UV Maps"
+ bl_options = {'REGISTER', 'UNDO'}
@classmethod
def poll(cls, context):
@@ -555,9 +557,10 @@ class JoinUVs(Operator):
class MakeDupliFace(Operator):
- """Make linked objects into dupli-faces"""
+ """Converts objects into dupli-face instanced"""
bl_idname = "object.make_dupli_face"
bl_label = "Make Dupli-Face"
+ bl_options = {'REGISTER', 'UNDO'}
def _main(self, context):
from mathutils import Vector