Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/DocumentImporter.cpp
| Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Lines | if (source_node) { | ||||
| mat4.transpose(); /* transpose to get blender row-major order */ | mat4.transpose(); /* transpose to get blender row-major order */ | ||||
| float mat[4][4]; | float mat[4][4]; | ||||
| for (int i = 0; i < 4; i++) { | for (int i = 0; i < 4; i++) { | ||||
| for (int j = 0; j < 4; j++) { | for (int j = 0; j < 4; j++) { | ||||
| mat[i][j] = bmat4[i][j]; | mat[i][j] = bmat4[i][j]; | ||||
| } | } | ||||
| } | } | ||||
| /* calc new matrix and apply */ | /* calc new matrix and apply */ | ||||
| mul_m4_m4m4(obn->obmat, obn->obmat, mat); | mul_m4_m4m4(obn->object_to_world, obn->object_to_world, mat); | ||||
| BKE_object_apply_mat4(obn, obn->obmat, false, false); | BKE_object_apply_mat4(obn, obn->object_to_world, false, false); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| anim_importer.read_node_transform(source_node, obn); | anim_importer.read_node_transform(source_node, obn); | ||||
| } | } | ||||
| /*DAG_relations_tag_update(CTX_data_main(mContext));*/ | /*DAG_relations_tag_update(CTX_data_main(mContext));*/ | ||||
| ▲ Show 20 Lines • Show All 769 Lines • Show Last 20 Lines | |||||