Fix #94129: Unable to remove added keying set from context menu
Mistake in (7-year-old) f6c09eadf0.
The operator was just cancelled if the right button was found, instead
it should only cancel if the button is _not_ found.
Pull Request: https://projects.blender.org/blender/blender/pulls/111373
This commit is contained in:
committed by
Philipp Oeser
parent
26e2f07dad
commit
e2a35debde
@@ -384,7 +384,7 @@ static int remove_keyingset_button_exec(bContext *C, wmOperator *op)
|
||||
bool changed = false;
|
||||
int index = 0;
|
||||
|
||||
if (UI_context_active_but_prop_get(C, &ptr, &prop, &index)) {
|
||||
if (!UI_context_active_but_prop_get(C, &ptr, &prop, &index)) {
|
||||
/* pass event on if no active button found */
|
||||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user