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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Buerbaum <martin.buerbaum@gmx.at>2010-03-24 01:04:32 +0300
committerMartin Buerbaum <martin.buerbaum@gmx.at>2010-03-24 01:04:32 +0300
commit09635e290fcf902f5d4da26e9e60b04e27996c2d (patch)
tree0ee4e178e6ff6f435d6b08e5a774fa628579d491
parent12f0f48907ca888b7c24044241728c90e23869f1 (diff)
* Version 0.1.1
* Removed changes to 3D cursor. * Removed removal of objects (Has to be handled in "Add Mesh" operator now.)
-rwxr-xr-xspace_view3d_object_recall_operator.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/space_view3d_object_recall_operator.py b/space_view3d_object_recall_operator.py
index cf306282..cc17a8f0 100755
--- a/space_view3d_object_recall_operator.py
+++ b/space_view3d_object_recall_operator.py
@@ -24,7 +24,7 @@ from bpy.props import *
bl_addon_info = {
'name': 'Recall object operator',
'author': 'Buerbaum Martin (Pontiac)',
- 'version': '0.1',
+ 'version': '0.1.1',
'blender': (2, 5, 3),
'location': 'View3D > Tool Shelf > Recall object creation operator',
'url': '',
@@ -53,6 +53,10 @@ i.e. The new object will be created as if it's created
manually at the location of the exiting object.
This also means that "align to view" may affect
rotation of the new object.
+
+v0.1.1 - Removed changes to 3D cursor.
+ Removed removal of objects (Has to be handled in "Add Mesh" operator now.)
+v0.1 - Initial revision
"""
@@ -110,13 +114,6 @@ class VIEW3D_OT_recall_object_operator(bpy.types.Operator):
print("Recalling operator: " + op_idname)
- # Move the 3D cursor to the object coordinates
- bpy.context.scene.cursor_location = ob.location
-
- # Remove existing object.
- # This assumes only the obj that is replaced is selected.
- bpy.ops.object.delete()
-
# Find and recall operator
op = get_operator_by_idname(op_idname)
if op:
@@ -152,6 +149,7 @@ class VIEW3D_OT_recall_panel(bpy.types.Panel):
# Only show this panel if the object has "recall" data.
if (ob
+ and context.selected_objects
and len(context.selected_objects) == 1
and ob == context.selected_objects[0]
and 'recall' in ob):
@@ -163,12 +161,10 @@ class VIEW3D_OT_recall_panel(bpy.types.Panel):
layout = self.layout
layout.operator("view3d.recall_object_operator",
text="Edit (replace)")
- #description="Replaced the currently selected object with a" \
- #" new one created with the same parameters."
-
################################
+
def register():
# Register the operators/menus.
bpy.types.register(VIEW3D_OT_recall_object_operator)