Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/fmodifier.c
| Show First 20 Lines • Show All 1,277 Lines • ▼ Show 20 Lines | void set_active_fmodifier(ListBase *modifiers, FModifier *fcm) | ||||
| } | } | ||||
| /* make given modifier active */ | /* make given modifier active */ | ||||
| if (fcm) { | if (fcm) { | ||||
| fcm->flag |= FMODIFIER_FLAG_ACTIVE; | fcm->flag |= FMODIFIER_FLAG_ACTIVE; | ||||
| } | } | ||||
| } | } | ||||
| bool list_has_suitable_fmodifier(ListBase *modifiers, int mtype, short acttype) | bool list_has_suitable_fmodifier(const ListBase *modifiers, int mtype, short acttype) | ||||
| { | { | ||||
| FModifier *fcm; | FModifier *fcm; | ||||
| /* if there are no specific filtering criteria, just skip */ | /* if there are no specific filtering criteria, just skip */ | ||||
| if ((mtype == 0) && (acttype == 0)) { | if ((mtype == 0) && (acttype == 0)) { | ||||
| return (modifiers && modifiers->first); | return (modifiers && modifiers->first); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines | |||||