Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_3d.c
| Show First 20 Lines • Show All 1,028 Lines • ▼ Show 20 Lines | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| Object *ob_iter = objects[ob_index]; | Object *ob_iter = objects[ob_index]; | ||||
| const bool use_mat_local = (ob_iter != ob); | const bool use_mat_local = (ob_iter != ob); | ||||
| bPoseChannel *pchan; | bPoseChannel *pchan; | ||||
| /* mislead counting bones... bah. We don't know the gizmo mode, could be mixed */ | /* mislead counting bones... bah. We don't know the gizmo mode, could be mixed */ | ||||
| const int mode = TFM_ROTATION; | const int mode = TFM_ROTATION; | ||||
| const int totsel_iter = count_set_pose_transflags( | const int totsel_iter = count_set_pose_transflags( | ||||
| ob_iter, mode, V3D_AROUND_CENTER_BOUNDS, NULL); | ob_iter, mode, V3D_AROUND_CENTER_BOUNDS, NULL, true); | ||||
| if (totsel_iter) { | if (totsel_iter) { | ||||
| float mat_local[4][4]; | float mat_local[4][4]; | ||||
| if (use_mat_local) { | if (use_mat_local) { | ||||
| mul_m4_m4m4(mat_local, ob->imat, ob_iter->obmat); | mul_m4_m4m4(mat_local, ob->imat, ob_iter->obmat); | ||||
| } | } | ||||
| /* use channels to get stats */ | /* use channels to get stats */ | ||||
| ▲ Show 20 Lines • Show All 1,506 Lines • Show Last 20 Lines | |||||