Small UI Tweak:

Let "Add Constraint" Button use the whole space, like the "Add Modifier" Button.
This commit is contained in:
Thomas Dinges
2010-01-30 08:45:31 +00:00
parent 78934da5c4
commit c005d19c42
2 changed files with 6 additions and 14 deletions

View File

@@ -37,9 +37,8 @@ class DATA_PT_modifiers(DataButtonsPanel):
ob = context.object
wide_ui = context.region.width > narrowui
compact_mod = context.region.width < narrowmod
row = layout.row()
row.operator_menu_enum("object.modifier_add", "type")
layout.operator_menu_enum("object.modifier_add", "type")
for md in ob.modifiers:
box = layout.template_modifier(md, compact=compact_mod)