Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modifier.c
| Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | static bool object_modifier_remove( | ||||
| * get called twice on same modifier, so make | * get called twice on same modifier, so make | ||||
| * sure it is in list. */ | * sure it is in list. */ | ||||
| if (BLI_findindex(&ob->modifiers, md) == -1) { | if (BLI_findindex(&ob->modifiers, md) == -1) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| /* special cases */ | /* special cases */ | ||||
| if (md->type == eModifierType_ParticleSystem) { | if (md->type == eModifierType_ParticleSystem) { | ||||
| object_remove_particle_system(bmain, scene, ob); | object_remove_particle_system(bmain, scene, ob, ((ParticleSystemModifierData *)md)->psys); | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (md->type == eModifierType_Softbody) { | if (md->type == eModifierType_Softbody) { | ||||
| if (ob->soft) { | if (ob->soft) { | ||||
| sbFree(ob); | sbFree(ob); | ||||
| ob->softflag = 0; /* TODO(Sybren): this should probably be moved into sbFree() */ | ob->softflag = 0; /* TODO(Sybren): this should probably be moved into sbFree() */ | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,881 Lines • Show Last 20 Lines | |||||