Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_particle.c
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
| void createTransParticleVerts(bContext *C, TransInfo *t) | void createTransParticleVerts(bContext *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 = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| ParticleEditSettings *pset = PE_settings(t->scene); | ParticleEditSettings *pset = PE_settings(t->scene); | ||||
| PTCacheEdit *edit = PE_get_current(t->scene, ob); | PTCacheEdit *edit = PE_get_current(t->depsgraph, t->scene, ob); | ||||
| ParticleSystem *psys = NULL; | ParticleSystem *psys = NULL; | ||||
| PTCacheEditPoint *point; | PTCacheEditPoint *point; | ||||
| PTCacheEditKey *key; | PTCacheEditKey *key; | ||||
| float mat[4][4]; | float mat[4][4]; | ||||
| int i, k, transformparticle; | int i, k, transformparticle; | ||||
| int count = 0, hasselected = 0; | int count = 0, hasselected = 0; | ||||
| const bool is_prop_edit = (t->flag & T_PROP_EDIT) != 0; | const bool is_prop_edit = (t->flag & T_PROP_EDIT) != 0; | ||||
| ▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| void flushTransParticles(TransInfo *t) | void flushTransParticles(TransInfo *t) | ||||
| { | { | ||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| Scene *scene = t->scene; | Scene *scene = t->scene; | ||||
| ViewLayer *view_layer = t->view_layer; | ViewLayer *view_layer = t->view_layer; | ||||
| Object *ob = OBACT(view_layer); | Object *ob = OBACT(view_layer); | ||||
| PTCacheEdit *edit = PE_get_current(scene, ob); | PTCacheEdit *edit = PE_get_current(t->depsgraph, scene, ob); | ||||
| ParticleSystem *psys = edit->psys; | ParticleSystem *psys = edit->psys; | ||||
| PTCacheEditPoint *point; | PTCacheEditPoint *point; | ||||
| PTCacheEditKey *key; | PTCacheEditKey *key; | ||||
| TransData *td; | TransData *td; | ||||
| float mat[4][4], imat[4][4], co[3]; | float mat[4][4], imat[4][4], co[3]; | ||||
| int i, k; | int i, k; | ||||
| const bool is_prop_edit = (t->flag & T_PROP_EDIT) != 0; | const bool is_prop_edit = (t->flag & T_PROP_EDIT) != 0; | ||||
| Show All 37 Lines | |||||