[Bf-blender-cvs] [c1cfdc5] master: Fix T46958: NLA Editor's 'Add Modifier' button is the wrong size on Retina Display

Joshua Leung noreply at git.blender.org
Sat Dec 12 11:16:23 CET 2015


Commit: c1cfdc59a3f895b6b61dd55a48d18beff74adb7a
Author: Joshua Leung
Date:   Sat Dec 12 23:09:29 2015 +1300
Branches: master
https://developer.blender.org/rBc1cfdc59a3f895b6b61dd55a48d18beff74adb7a

Fix T46958: NLA Editor's 'Add Modifier' button is the wrong size on Retina Display

===================================================================

M	source/blender/editors/space_nla/nla_buttons.c

===================================================================

diff --git a/source/blender/editors/space_nla/nla_buttons.c b/source/blender/editors/space_nla/nla_buttons.c
index 8eead9b..5f046e3 100644
--- a/source/blender/editors/space_nla/nla_buttons.c
+++ b/source/blender/editors/space_nla/nla_buttons.c
@@ -480,7 +480,7 @@ static void nla_panel_modifiers(const bContext *C, Panel *pa)
 		
 		// XXX for now, this will be a operator button which calls a temporary 'add modifier' operator
 		// FIXME: we need to set the only-active property so that this will only add modifiers for the active strip (not all selected)
-		uiDefButO(block, UI_BTYPE_BUT, "NLA_OT_fmodifier_add", WM_OP_INVOKE_REGION_WIN, IFACE_("Add Modifier"), 10, 0, 150, 20,
+		uiDefButO(block, UI_BTYPE_BUT, "NLA_OT_fmodifier_add", WM_OP_INVOKE_REGION_WIN, IFACE_("Add Modifier"), 10, 0, UI_UNIT_X * 7.0f, UI_UNIT_Y,
 		          TIP_("Adds a new F-Modifier for the active NLA Strip"));
 		
 		/* copy/paste (as sub-row)*/




More information about the Bf-blender-cvs mailing list