Fix T92867: Gimbal rotation broken when used for multiple objects

Support gimbal orientation for objects & bones.
This commit is contained in:
2021-11-11 21:14:10 +11:00
parent bb64155c63
commit b7e2408ea4
7 changed files with 68 additions and 19 deletions

View File

@@ -512,6 +512,15 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
}
}
t->orient_type_mask = 0;
for (int i = 0; i < 3; i++) {
const int type = t->orient[i].type;
if (type < V3D_ORIENT_CUSTOM_MATRIX) {
BLI_assert(type < 32);
t->orient_type_mask |= (1 << type);
}
}
transform_orientations_current_set(t, (t->con.mode & CON_APPLY) ? 2 : 0);
}