Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_particle.c
| Show All 22 Lines | |||||
| /* Own include. */ | /* Own include. */ | ||||
| #include "transform_convert.h" | #include "transform_convert.h" | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Particle Edit Transform Creation | /** \name Particle Edit Transform Creation | ||||
| * \{ */ | * \{ */ | ||||
| void createTransParticleVerts(TransInfo *t) | static void createTransParticleVerts(bContext *UNUSED(C), TransInfo *t) | ||||
| { | { | ||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| TransData *td = NULL; | TransData *td = NULL; | ||||
| TransDataExtension *tx; | TransDataExtension *tx; | ||||
| Object *ob = OBACT(t->view_layer); | Object *ob = OBACT(t->view_layer); | ||||
| ParticleEditSettings *pset = PE_settings(t->scene); | ParticleEditSettings *pset = PE_settings(t->scene); | ||||
| PTCacheEdit *edit = PE_get_current(t->depsgraph, t->scene, ob); | PTCacheEdit *edit = PE_get_current(t->depsgraph, t->scene, ob); | ||||
| ▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Recalc Transform Particles Data | /** \name Recalc Transform Particles Data | ||||
| * \{ */ | * \{ */ | ||||
| void recalcData_particles(TransInfo *t) | static void recalcData_particles(TransInfo *t) | ||||
| { | { | ||||
| if (t->state != TRANS_CANCEL) { | if (t->state != TRANS_CANCEL) { | ||||
| applySnappingIndividual(t); | applySnappingIndividual(t); | ||||
| } | } | ||||
| flushTransParticles(t); | flushTransParticles(t); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| TransConvertTypeInfo TransConvertType_Particle = { | |||||
| /* flags */ T_POINTS, | |||||
| /* createTransData */ createTransParticleVerts, | |||||
| /* recalcData */ recalcData_particles, | |||||
| /* special_aftertrans_update */ NULL, | |||||
| }; | |||||