Small todo item: outliner display actions were sending undo pushes, not needed
for UI stuff.
This commit is contained in:
@@ -1763,7 +1763,7 @@ void OUTLINER_OT_expanded_toggle(wmOperatorType *ot)
|
||||
ot->exec= outliner_toggle_expanded_exec;
|
||||
ot->poll= ED_operator_outliner_active;
|
||||
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
/* no undo or registry, UI option */
|
||||
}
|
||||
|
||||
/* --- */
|
||||
@@ -1798,7 +1798,7 @@ void OUTLINER_OT_selected_toggle(wmOperatorType *ot)
|
||||
ot->exec= outliner_toggle_selected_exec;
|
||||
ot->poll= ED_operator_outliner_active;
|
||||
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
/* no undo or registry, UI option */
|
||||
}
|
||||
|
||||
/* --- */
|
||||
@@ -1855,7 +1855,7 @@ void OUTLINER_OT_show_one_level(wmOperatorType *ot)
|
||||
ot->exec= outliner_one_level_exec;
|
||||
ot->poll= ED_operator_outliner_active;
|
||||
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
/* no undo or registry, UI option */
|
||||
|
||||
/* properties */
|
||||
RNA_def_boolean(ot->srna, "open", 1, "Open", "Expand all entries one level deep.");
|
||||
@@ -3050,7 +3050,7 @@ void OUTLINER_OT_show_hierarchy(wmOperatorType *ot)
|
||||
ot->exec= outliner_show_hierarchy_exec;
|
||||
ot->poll= ED_operator_outliner_active; // TODO: shouldn't be allowed in RNA views...
|
||||
|
||||
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
|
||||
/* no undo or registry, UI option */
|
||||
}
|
||||
|
||||
void outliner_select(SpaceOops *soops, ListBase *lb, int *index, short *selecting)
|
||||
|
||||
Reference in New Issue
Block a user