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-08-06 22:36:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-06 22:45:37 +0400
commit1923a5c1345925c69fd3c8451c0e79bf5502f814 (patch)
tree4bc2064865847c07de3f9cc156f3f613c476ef44 /release/scripts/startup/bl_ui/properties_object.py
parentf37c3dd6a67208e739fab7826449d47372ad1a60 (diff)
UI: move button to set dupli-offset into group menu
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index b3551c52192..e6d6a3952ea 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -159,6 +159,8 @@ class GROUP_MT_specials(Menu):
layout.operator("object.group_unlink", icon='X')
layout.operator("object.grouped_select")
+ layout.operator("object.dupli_offset_from_cursor")
+
class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
bl_label = "Groups"
@@ -175,8 +177,6 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
row.operator("object.group_add", text="Add to Group")
row.operator("object.group_add", text="", icon='ZOOMIN')
- # XXX, this is bad practice, yes, I wrote it :( - campbell
- index = 0
obj_name = obj.name
for group in bpy.data.groups:
# XXX this is slow and stupid!, we need 2 checks, one thats fast
@@ -201,10 +201,6 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
col = split.column()
col.prop(group, "dupli_offset", text="")
- props = col.operator("object.dupli_offset_from_cursor", text="From Cursor")
- props.group = index
- index += 1
-
class OBJECT_PT_display(ObjectButtonsPanel, Panel):
bl_label = "Display"