|
Blender V5.0
|
Public Member Functions | |
| ArmatureImportContext (Main &main, const ufbx_scene &fbx, const FBXImportParams ¶ms, FbxElementMapping &mapping) | |
| Object * | create_armature_for_node (const ufbx_node *node) |
| void | create_armature_bones (const ufbx_node *node, Object *arm_obj, const Set< const ufbx_node * > &bone_nodes, EditBone *parent_bone, const ufbx_matrix &parent_mtx, const ufbx_matrix &world_to_arm, const float parent_bone_size) |
| void | find_armatures (const ufbx_node *node) |
| void | calc_bone_bind_matrices () |
Public Attributes | |
| Main & | bmain |
| const ufbx_scene & | fbx |
| const FBXImportParams & | params |
| FbxElementMapping & | mapping |
Definition at line 26 of file fbx_import_armature.cc.
|
inline |
| void blender::io::fbx::ArmatureImportContext::calc_bone_bind_matrices | ( | ) |
Definition at line 389 of file fbx_import_armature.cc.
| void blender::io::fbx::ArmatureImportContext::create_armature_bones | ( | const ufbx_node * | node, |
| Object * | arm_obj, | ||
| const Set< const ufbx_node * > & | bone_nodes, | ||
| EditBone * | parent_bone, | ||
| const ufbx_matrix & | parent_mtx, | ||
| const ufbx_matrix & | world_to_arm, | ||
| const float | parent_bone_size ) |
Definition at line 100 of file fbx_import_armature.cc.
References BLI_assert, BONE_CONNECTED, BONE_INHERIT_SCALE_NONE, BONE_SELECTED, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), create_armature_bones(), Object::data, blender::math::distance_squared(), ED_armature_ebone_add(), ED_armature_ebone_from_mat4(), EditBone::flag, blender::io::fbx::get_fbx_name(), EditBone::head, EditBone::inherit_scale_mode, blender::math::length(), mapping, blender::io::fbx::matrix_to_m44(), blender::math::max(), EditBone::name, name, params, EditBone::parent, pos, and EditBone::tail.
Referenced by create_armature_bones(), and find_armatures().
| Object * blender::io::fbx::ArmatureImportContext::create_armature_for_node | ( | const ufbx_node * | node | ) |
Definition at line 52 of file fbx_import_armature.cc.
References BKE_armature_add(), BKE_object_add_only_object(), BLI_assert_msg, bmain, blender::io::fbx::get_fbx_name(), mapping, blender::io::fbx::node_matrix_to_obj(), OB_ARMATURE, OB_DRAW_IN_FRONT, params, blender::io::fbx::read_custom_properties(), and blender::io::fbx::ufbx_matrix_to_obj().
Referenced by find_armatures().
| void blender::io::fbx::ArmatureImportContext::find_armatures | ( | const ufbx_node * | node | ) |
Definition at line 320 of file fbx_import_armature.cc.
References BKE_id_name(), BKE_pchan_apply_mat4(), BKE_pose_channel_find_name(), bmain, blender::io::fbx::calc_bone_pose_matrix(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), create_armature_bones(), create_armature_for_node(), Object::data, ED_armature_edit_free(), ED_armature_from_edit(), ED_armature_to_edit(), blender::io::fbx::find_all_bones(), find_armatures(), Object::id, mapping, blender::io::fbx::matrix_to_m44(), blender::io::fbx::need_create_armature_for_node(), Object::pose, and blender::io::fbx::read_custom_properties().
Referenced by find_armatures().
| Main& blender::io::fbx::ArmatureImportContext::bmain |
Definition at line 27 of file fbx_import_armature.cc.
Referenced by ArmatureImportContext(), create_armature_for_node(), and find_armatures().
| const ufbx_scene& blender::io::fbx::ArmatureImportContext::fbx |
Definition at line 28 of file fbx_import_armature.cc.
Referenced by ArmatureImportContext(), and calc_bone_bind_matrices().
| FbxElementMapping& blender::io::fbx::ArmatureImportContext::mapping |
Definition at line 30 of file fbx_import_armature.cc.
Referenced by ArmatureImportContext(), calc_bone_bind_matrices(), create_armature_bones(), create_armature_for_node(), and find_armatures().
| const FBXImportParams& blender::io::fbx::ArmatureImportContext::params |
Definition at line 29 of file fbx_import_armature.cc.
Referenced by ArmatureImportContext(), create_armature_bones(), and create_armature_for_node().