49 int i, k, transformparticle;
50 int count = 0, hasselected = 0;
59 for (i = 0, point = edit->
points; i < edit->totpoint; i++, point++) {
61 transformparticle = 0;
64 for (k = 0, key = point->
keys; k < point->totkey; k++, key++) {
68 transformparticle = 1;
70 else if (is_prop_edit) {
71 transformparticle = 1;
77 if (transformparticle) {
84 if (hasselected == 0) {
95 for (i = 0, point = edit->
points; i < edit->totpoint; i++, point++) {
109 for (k = 0, key = point->
keys; k < point->totkey; k++, key++) {
125 else if (!is_prop_edit) {
140 if (is_prop_edit && head != tail) {
164 float mat[4][4], imat[4][4], co[3];
170 for (i = 0, point = edit->
points; i < edit->totpoint; i++, point++) {
181 for (k = 0, key = point->
keys; k < point->totkey; k++, key++) {
Read Blender memory allocation and freeing.
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
void BKE_particle_batch_cache_dirty_tag(struct ParticleSystem *psys, int mode)
MINLINE void copy_v3_v3(float r[3], const float a[3])
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
void PE_update_object(Depsgraph *depsgraph, Scene *scene, Object *ob, int useflag)
void mul_m4_v3(const float M[4][4], float r[3])
PTCacheEdit * PE_get_current(Depsgraph *depsgraph, Scene *scene, Object *ob)
void DEG_id_tag_update(ID *id, unsigned int flags)
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
void unit_m4(float m[4][4])
MINLINE bool compare_v3v3(const float v1[3], const float v2[3], float limit) ATTR_WARN_UNUSED_RESULT
void psys_mat_hair_to_global(struct Object *ob, struct Mesh *mesh, short from, struct ParticleData *pa, float hairmat[4][4])
void unit_m3(float m[3][3])
@ BKE_PARTICLE_BATCH_DIRTY_ALL
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
ParticleEditSettings * PE_settings(Scene *scene)
const c_style_mat & ptr() const
bke::ObjectRuntime * runtime
struct PTCacheEditKey * keys
PTCacheEditPoint * points
struct ParticleSystem * psys
struct ParticleSystemModifierData * psmd_eval
eParticleSystem_Flag flag