Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modifier.c
| Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | if (modifiers_findByType(ob, type)) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| } | } | ||||
| if (type == eModifierType_ParticleSystem) { | if (type == eModifierType_ParticleSystem) { | ||||
| /* don't need to worry about the new modifier's name, since that is set to the number | /* don't need to worry about the new modifier's name, since that is set to the number | ||||
| * of particle systems which shouldn't have too many duplicates | * of particle systems which shouldn't have too many duplicates | ||||
| */ | */ | ||||
| new_md = object_add_particle_system(scene, ob, name); | new_md = object_add_particle_system(scene, ob, name, PART_EMITTER); | ||||
psy-fi: This means that it's not possible to add hair from the modifier list anymore. It would be good… | |||||
lukastoenneAuthorUnsubmitted Not Done Inline ActionsYes, this would be nice to have, but it's not a regression: When adding a psys via the modifiers it would previously also have started out as an "emitter" type and has to be switched afterward. lukastoenne: Yes, this would be nice to have, but it's not a regression:
When adding a psys via the… | |||||
| } | } | ||||
| else { | else { | ||||
| /* get new modifier data to add */ | /* get new modifier data to add */ | ||||
| new_md = modifier_new(type); | new_md = modifier_new(type); | ||||
| if (mti->flags & eModifierTypeFlag_RequiresOriginalData) { | if (mti->flags & eModifierTypeFlag_RequiresOriginalData) { | ||||
| md = ob->modifiers.first; | md = ob->modifiers.first; | ||||
| ▲ Show 20 Lines • Show All 2,136 Lines • Show Last 20 Lines | |||||
This means that it's not possible to add hair from the modifier list anymore. It would be good to eventually have separate modifiers, but this could be another patch entirely.