2.5 Buttons
[blender-staging.git] / release / ui / buttons_objects.py
index 8f02a015eac439a65f07dbea52de5a19daf87a35..a5074614515880906bbba711d7ce492296b6aa14 100644 (file)
@@ -39,15 +39,15 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
 
                for group in bpy.data.groups:
                        if ob in group.objects:
-                               box = layout.box()
+                               col = layout.column(align=True)
 
-                               row = box.row()
-                               row.itemR(group, "name")
+                               row = col.box().row()
+                               row.itemR(group, "name", text="")
                                #row.itemO("OBJECT_OT_remove_group")
 
-                               row = box.row()
-                               row.column().itemR(group, "layer")
-                               row.column().itemR(group, "dupli_offset")
+                               split = col.box().split()
+                               split.column().itemR(group, "layer")
+                               split.column().itemR(group, "dupli_offset")
 
 class OBJECT_PT_display(ObjectButtonsPanel):
        __idname__ = "OBJECT_PT_display"
@@ -131,4 +131,4 @@ bpy.types.register(OBJECT_PT_transform)
 bpy.types.register(OBJECT_PT_groups)
 bpy.types.register(OBJECT_PT_display)
 bpy.types.register(OBJECT_PT_duplication)
-bpy.types.register(OBJECT_PT_animation)
\ No newline at end of file
+bpy.types.register(OBJECT_PT_animation)