Fix uninitialized return value from constraint operators

The utility function edit_constraint_invoke_properties could return
false without setting the return value, causing the operators invoke
function to return an uninitialized flag.
This commit is contained in:
Campbell Barton
2025-03-07 15:16:51 +11:00
parent f9c1475020
commit f7ba05991f

View File

@@ -782,6 +782,9 @@ static bool edit_constraint_invoke_properties(bContext *C,
}
}
if (r_retval != nullptr) {
*r_retval = OPERATOR_CANCELLED;
}
return false;
}