Cleanup: remove redundant flag

Caller can pass this flag if necessary.
This commit is contained in:
2018-07-26 14:58:36 +10:00
parent 9257357c3f
commit 0dd3b200b0

View File

@@ -1557,7 +1557,7 @@ static void template_operator_redo_property_buts_draw(
eAutoPropButsReturn return_info = uiTemplateOperatorPropertyButs(
C, layout, op,
UI_BUT_LABEL_ALIGN_NONE,
layout_flags | (r_has_advanced ? UI_TEMPLATE_OP_PROPS_HIDE_ADVANCED : 0));
layout_flags);
if (return_info & UI_PROP_BUTS_ANY_FAILED_CHECK) {
if (r_has_advanced) {
*r_has_advanced = true;