Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_3d.c
| Show First 20 Lines • Show All 1,057 Lines • ▼ Show 20 Lines | if (ob->mode & OB_MODE_SCULPT) { | ||||
| totsel = 1; | totsel = 1; | ||||
| calc_tw_center_with_matrix(tbounds, ob->sculpt->pivot_pos, false, ob->obmat); | calc_tw_center_with_matrix(tbounds, ob->sculpt->pivot_pos, false, ob->obmat); | ||||
| mul_m4_v3(ob->obmat, tbounds->center); | mul_m4_v3(ob->obmat, tbounds->center); | ||||
| mul_m4_v3(ob->obmat, tbounds->min); | mul_m4_v3(ob->obmat, tbounds->min); | ||||
| mul_m4_v3(ob->obmat, tbounds->max); | mul_m4_v3(ob->obmat, tbounds->max); | ||||
| } | } | ||||
| } | } | ||||
| else if (ob && ob->mode & OB_MODE_PARTICLE_EDIT) { | else if (ob && ob->mode & OB_MODE_PARTICLE_EDIT) { | ||||
| PTCacheEdit *edit = PE_get_current(scene, ob); | PTCacheEdit *edit = PE_get_current(depsgraph, scene, ob); | ||||
| PTCacheEditPoint *point; | PTCacheEditPoint *point; | ||||
| PTCacheEditKey *ek; | PTCacheEditKey *ek; | ||||
| int k; | int k; | ||||
| if (edit) { | if (edit) { | ||||
| point = edit->points; | point = edit->points; | ||||
| for (a = 0; a < edit->totpoint; a++, point++) { | for (a = 0; a < edit->totpoint; a++, point++) { | ||||
| if (point->flag & PEP_HIDE) { | if (point->flag & PEP_HIDE) { | ||||
| ▲ Show 20 Lines • Show All 1,369 Lines • Show Last 20 Lines | |||||