Various bugfixes:
* Tweaked the code for operator buttons so that only those operator buttons in the toolbar have their text left-aligned. This is done at layout-block level * Silenced "file_init" print when opening the file browser * Disabled animateability of the "active_shape_key_index" for Objects, since this property behaves in a very unpredictable manner, leading to problems with users trying to keyframe shapekey values and ending up keying the list. * Remove some unnecessary RNA wrapping code
This commit is contained in:
@@ -1272,7 +1272,15 @@ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, char *contex
|
||||
}
|
||||
|
||||
if(open) {
|
||||
panel->layout= uiBlockLayout(block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL,
|
||||
short panelContext;
|
||||
|
||||
/* panel context can either be toolbar region or normal panels region */
|
||||
if (ar->regiontype == RGN_TYPE_TOOLS)
|
||||
panelContext= UI_LAYOUT_TOOLBAR;
|
||||
else
|
||||
panelContext= UI_LAYOUT_PANEL;
|
||||
|
||||
panel->layout= uiBlockLayout(block, UI_LAYOUT_VERTICAL, panelContext,
|
||||
style->panelspace, 0, w-2*style->panelspace, em, style);
|
||||
|
||||
pt->draw(C, panel);
|
||||
|
||||
Reference in New Issue
Block a user