Changeset View
Changeset View
Standalone View
Standalone View
source/blender/collada/AnimationImporter.cpp
| Show First 20 Lines • Show All 811 Lines • ▼ Show 20 Lines | if (is_joint) { | ||||
| // calc special matrix | // calc special matrix | ||||
| mul_m4_series(mat, irest, temp, irest_dae, rest); | mul_m4_series(mat, irest, temp, irest_dae, rest); | ||||
| } | } | ||||
| else { | else { | ||||
| copy_m4_m4(mat, matfra); | copy_m4_m4(mat, matfra); | ||||
| } | } | ||||
| float rot[4], loc[3], scale[3]; | float rot[4], loc[3], scale[3]; | ||||
| transpose_m4(mat); | |||||
| bc_rotate_from_reference_quat(rot, qref, mat); | bc_rotate_from_reference_quat(rot, qref, mat); | ||||
| copy_qt_qt(qref, rot); | copy_qt_qt(qref, rot); | ||||
| #if 0 | #if 0 | ||||
| for (int i = 0 ; i < 4; i++) { | for (int i = 0 ; i < 4; i++) { | ||||
| rot[i] = RAD2DEGF(rot[i]); | rot[i] = RAD2DEGF(rot[i]); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,215 Lines • Show Last 20 Lines | |||||