Code Quality: Replace for loops with LISTBASE_FOREACH
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
This commit is contained in:
@@ -1358,7 +1358,7 @@ uint evaluate_fmodifiers_storage_size_per_modifier(ListBase *modifiers)
|
||||
|
||||
uint max_size = 0;
|
||||
|
||||
for (FModifier *fcm = modifiers->first; fcm; fcm = fcm->next) {
|
||||
LISTBASE_FOREACH (FModifier *, fcm, modifiers) {
|
||||
const FModifierTypeInfo *fmi = fmodifier_get_typeinfo(fcm);
|
||||
|
||||
if (fmi == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user