mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix: Operator depends on cursor ignores macro operators
The change in 23ebc45f70 was slightly incorrect.
This commit is contained in:
parent
2090ba8b07
commit
62b484544a
1 changed files with 6 additions and 5 deletions
|
|
@ -1969,16 +1969,17 @@ void WM_operator_name_call_ptr_with_depends_on_cursor(bContext *C,
|
|||
const wmEvent *event,
|
||||
const char *drawstr)
|
||||
{
|
||||
int flag = ot->flag;
|
||||
bool depends_on_cursor = WM_operator_depends_on_cursor(*C, *ot, properties);
|
||||
|
||||
LISTBASE_FOREACH (wmOperatorTypeMacro *, macro, &ot->macro) {
|
||||
wmOperatorType *otm = WM_operatortype_find(macro->idname, false);
|
||||
if (otm != nullptr) {
|
||||
flag |= otm->flag;
|
||||
if (wmOperatorType *otm = WM_operatortype_find(macro->idname, false)) {
|
||||
if (WM_operator_depends_on_cursor(*C, *otm, properties)) {
|
||||
depends_on_cursor = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!WM_operator_depends_on_cursor(*C, *ot, properties)) {
|
||||
if (!depends_on_cursor) {
|
||||
WM_operator_name_call_ptr(C, ot, opcontext, properties, event);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue