Changeset View
Changeset View
Standalone View
Standalone View
source/blender/collada/SkinInfo.cpp
| Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | for (unsigned int i = 0; i < joint_uids.getCount(); i++) { | ||||
| // jd.ob_arm = ob_arm; | // jd.ob_arm = ob_arm; | ||||
| // now we'll be able to get inv bind matrix from joint id | // now we'll be able to get inv bind matrix from joint id | ||||
| // joint_id_to_joint_index_map[joint_ids[i]] = i; | // joint_id_to_joint_index_map[joint_ids[i]] = i; | ||||
| } | } | ||||
| } | } | ||||
| // called from write_controller | // called from write_controller | ||||
| Object *SkinInfo::create_armature(Scene *scene, ViewLayer *view_layer) | Object *SkinInfo::create_armature(Scene *scene, ViewLayer *view_layer, WorkSpace *ws) | ||||
| { | { | ||||
| ob_arm = bc_add_object(scene, view_layer, OB_ARMATURE, NULL); | ob_arm = bc_add_object(scene, view_layer, workspace, OB_ARMATURE, NULL); | ||||
| return ob_arm; | return ob_arm; | ||||
| } | } | ||||
| Object *SkinInfo::set_armature(Object *ob_arm) | Object *SkinInfo::set_armature(Object *ob_arm) | ||||
| { | { | ||||
| if (this->ob_arm) | if (this->ob_arm) | ||||
| return this->ob_arm; | return this->ob_arm; | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||