Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/particle_system.c
| Show First 20 Lines • Show All 1,394 Lines • ▼ Show 20 Lines | if (!psys->tree || psys->tree_frame != cfra) { | ||||
| psys->tree_frame = cfra; | psys->tree_frame = cfra; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void psys_update_effectors(ParticleSimulationData *sim) | static void psys_update_effectors(ParticleSimulationData *sim) | ||||
| { | { | ||||
| BKE_effectors_free(sim->psys->effectors); | BKE_effectors_free(sim->psys->effectors); | ||||
| bool use_rotation = (sim->psys->part->flag & PART_ROT_DYN) != 0; | |||||
| sim->psys->effectors = BKE_effectors_create( | sim->psys->effectors = BKE_effectors_create( | ||||
| sim->depsgraph, sim->ob, sim->psys, sim->psys->part->effector_weights); | sim->depsgraph, sim->ob, sim->psys, sim->psys->part->effector_weights, use_rotation); | ||||
| precalc_guides(sim, sim->psys->effectors); | precalc_guides(sim, sim->psys->effectors); | ||||
| } | } | ||||
| static void integrate_particle( | static void integrate_particle( | ||||
| ParticleSettings *part, | ParticleSettings *part, | ||||
| ParticleData *pa, | ParticleData *pa, | ||||
| float dtime, | float dtime, | ||||
| float *external_acceleration, | float *external_acceleration, | ||||
| ▲ Show 20 Lines • Show All 3,653 Lines • Show Last 20 Lines | |||||