Deactivate last active button for pie menu popups.

This commit is contained in:
2014-08-14 13:18:07 +02:00
parent a2dfeeaec0
commit 9bf603a307
3 changed files with 7 additions and 1 deletions

View File

@@ -97,6 +97,11 @@ bool ui_block_is_menu(const uiBlock *block)
((block->flag & UI_BLOCK_KEEP_OPEN) == 0));
}
bool ui_block_is_pie_menu(const uiBlock *block)
{
return ((block->flag & UI_BLOCK_RADIAL) != 0);
}
static bool ui_is_but_unit_radians_ex(UnitSettings *unit, const int unit_type)
{
return (unit->system_rotation == USER_UNIT_ROT_RADIANS && unit_type == PROP_UNIT_ROTATION);