Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_particleinstance.c
| Show First 20 Lines • Show All 267 Lines • ▼ Show 20 Lines | static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | ||||
| switch (pimd->space) { | switch (pimd->space) { | ||||
| case eParticleInstanceSpace_World: | case eParticleInstanceSpace_World: | ||||
| /* particle states are in world space already */ | /* particle states are in world space already */ | ||||
| unit_m4(spacemat); | unit_m4(spacemat); | ||||
| break; | break; | ||||
| case eParticleInstanceSpace_Local: | case eParticleInstanceSpace_Local: | ||||
| /* get particle states in the particle object's local space */ | /* get particle states in the particle object's local space */ | ||||
| invert_m4_m4(spacemat, pimd->ob->obmat); | invert_m4_m4(spacemat, pimd->ob->object_to_world); | ||||
| break; | break; | ||||
| default: | default: | ||||
| /* should not happen */ | /* should not happen */ | ||||
| BLI_assert(false); | BLI_assert(false); | ||||
| break; | break; | ||||
| } | } | ||||
| totvert = mesh->totvert; | totvert = mesh->totvert; | ||||
| ▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines | |||||