Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/particle_system.c
| Show First 20 Lines • Show All 4,960 Lines • ▼ Show 20 Lines | if (DEG_is_active(depsgraph)) { | ||||
| if (psys_orig != psys) { | if (psys_orig != psys) { | ||||
| if (psys_orig->edit != NULL && psys_orig->edit->psys == psys_orig) { | if (psys_orig->edit != NULL && psys_orig->edit->psys == psys_orig) { | ||||
| psys_orig->edit->psys_eval = psys; | psys_orig->edit->psys_eval = psys; | ||||
| psys_orig->edit->psmd_eval = psmd; | psys_orig->edit->psmd_eval = psmd; | ||||
| } | } | ||||
| psys_orig->flag = (psys->flag & ~PSYS_SHARED_CACHES); | psys_orig->flag = (psys->flag & ~PSYS_SHARED_CACHES); | ||||
| psys_orig->cfra = psys->cfra; | psys_orig->cfra = psys->cfra; | ||||
| psys_orig->recalc = psys->recalc; | psys_orig->recalc = psys->recalc; | ||||
| psys_orig->part->totpart = part->totpart; | |||||
| } | } | ||||
| } | } | ||||
| /* Save matrix for duplicators, | /* Save matrix for duplicators, | ||||
| * at rendertime the actual dupliobject's matrix is used so don't update! */ | * at rendertime the actual dupliobject's matrix is used so don't update! */ | ||||
| invert_m4_m4(psys->imat, ob->obmat); | invert_m4_m4(psys->imat, ob->obmat); | ||||
| BKE_particle_batch_cache_dirty_tag(psys, BKE_PARTICLE_BATCH_DIRTY_ALL); | BKE_particle_batch_cache_dirty_tag(psys, BKE_PARTICLE_BATCH_DIRTY_ALL); | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||