Refactor: combine insert_keyframe() and insert_key_rna() into a single function #122053
@ -1031,7 +1031,7 @@ CombinedKeyingResult insert_keyframes(Main *bmain,
|
||||
* we're faithfully reproducing the original behavior.
|
||||
*/
|
||||
eInsertKeyFlags insert_key_flags_adjusted = insert_key_flags;
|
||||
if (force_all && insert_key_flags & (INSERTKEY_REPLACE | INSERTKEY_AVAILABLE)) {
|
||||
if (force_all && (insert_key_flags & (INSERTKEY_REPLACE | INSERTKEY_AVAILABLE))) {
|
||||
nathanvegdahl marked this conversation as resolved
Outdated
|
||||
/* Determine if at least one element would succeed getting keyed. */
|
||||
bool at_least_one_would_succeed = false;
|
||||
for (int i = 0; i < rna_values.size(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user
I think parentheses around
insert_key_flags & (INSERTKEY_REPLACE | INSERTKEY_AVAILABLE)
is still necessary. AFAIK some compilers will complain about ambiguity between&
and&&
.The operator precedence is unambiguous in C++ at least, but I agree that it would help readability a lot here, regardless.