Changeset View
Changeset View
Standalone View
Standalone View
source/blender/collada/ArmatureImporter.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
| #define UNLIMITED_CHAIN_MAX INT_MAX | #define UNLIMITED_CHAIN_MAX INT_MAX | ||||
| #define MINIMUM_BONE_LENGTH 0.000001f | #define MINIMUM_BONE_LENGTH 0.000001f | ||||
| class ArmatureImporter : private TransformReader | class ArmatureImporter : private TransformReader | ||||
| { | { | ||||
| private: | private: | ||||
| Scene *scene; | Scene *scene; | ||||
| ViewLayer *view_layer; | ViewLayer *view_layer; | ||||
| WorkSpace *workspace; /* Needed for changing active object. */ | |||||
| UnitConverter *unit_converter; | UnitConverter *unit_converter; | ||||
| const ImportSettings *import_settings; | const ImportSettings *import_settings; | ||||
| // std::map<int, JointData> joint_index_to_joint_info_map; | // std::map<int, JointData> joint_index_to_joint_info_map; | ||||
| // std::map<COLLADAFW::UniqueId, int> joint_id_to_joint_index_map; | // std::map<COLLADAFW::UniqueId, int> joint_id_to_joint_index_map; | ||||
| BoneExtensionManager bone_extension_manager; | BoneExtensionManager bone_extension_manager; | ||||
| // int bone_direction_row; // XXX not used | // int bone_direction_row; // XXX not used | ||||
| float leaf_bone_length; | float leaf_bone_length; | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | #endif | ||||
| Object *create_armature_bones(SkinInfo& skin); | Object *create_armature_bones(SkinInfo& skin); | ||||
| void create_armature_bones(std::vector<Object *> &arm_objs); | void create_armature_bones(std::vector<Object *> &arm_objs); | ||||
| /** TagsMap typedef for uid_tags_map. */ | /** TagsMap typedef for uid_tags_map. */ | ||||
| typedef std::map<std::string, ExtraTags*> TagsMap; | typedef std::map<std::string, ExtraTags*> TagsMap; | ||||
| TagsMap uid_tags_map; | TagsMap uid_tags_map; | ||||
| public: | public: | ||||
| ArmatureImporter(UnitConverter *conv, MeshImporterBase *mesh, Scene *sce, ViewLayer *view_layer, const ImportSettings *import_settings); | ArmatureImporter(UnitConverter *conv, MeshImporterBase *mesh, Scene *sce, ViewLayer *view_layer, WorkSpace *ws, const ImportSettings *import_settings); | ||||
| ~ArmatureImporter(); | ~ArmatureImporter(); | ||||
| void add_root_joint(COLLADAFW::Node *node, Object *parent); | void add_root_joint(COLLADAFW::Node *node, Object *parent); | ||||
| // here we add bones to armatures, having armatures previously created in write_controller | // here we add bones to armatures, having armatures previously created in write_controller | ||||
| void make_armatures(bContext *C, std::vector<Object *> &objects_to_scale); | void make_armatures(bContext *C, std::vector<Object *> &objects_to_scale); | ||||
| void make_shape_keys(); | void make_shape_keys(); | ||||
| Show All 24 Lines | |||||