diff options
Diffstat (limited to 'source/blender/io/collada/SkinInfo.h')
-rw-r--r-- | source/blender/io/collada/SkinInfo.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/source/blender/io/collada/SkinInfo.h b/source/blender/io/collada/SkinInfo.h index 7ce66b22a5f..49a820f2fcd 100644 --- a/source/blender/io/collada/SkinInfo.h +++ b/source/blender/io/collada/SkinInfo.h @@ -35,9 +35,11 @@ #include "TransformReader.h" #include "collada_internal.h" -/* This is used to store data passed in write_controller_data. - * Arrays from COLLADAFW::SkinControllerData lose ownership, so do this class members - * so that arrays don't get freed until we free them explicitly. */ +/** + * This is used to store data passed in write_controller_data. + * Arrays from #COLLADAFW::SkinControllerData lose ownership, so do this class members + * so that arrays don't get freed until we free them explicitly. + */ class SkinInfo { private: /* to build armature bones from inverse bind matrices */ @@ -69,10 +71,10 @@ class SkinInfo { SkinInfo(const SkinInfo &skin); SkinInfo(UnitConverter *conv); - /* nobody owns the data after this, so it should be freed manually with releaseMemory */ + /** Nobody owns the data after this, so it should be freed manually with releaseMemory. */ template<typename T> void transfer_array_data(T &src, T &dest); - /* when src is const we cannot src.yieldOwnerShip, this is used by copy constructor */ + /** When src is const we cannot `src.yieldOwnerShip`, this is used by copy constructor. */ void transfer_int_array_data_const(const COLLADAFW::IntValuesArray &src, COLLADAFW::IntValuesArray &dest); @@ -83,14 +85,16 @@ class SkinInfo { void free(); - /* using inverse bind matrices to construct armature + /** + * Using inverse bind matrices to construct armature * it is safe to invert them to get the original matrices - * because if they are inverse matrices, they can be inverted */ + * because if they are inverse matrices, they can be inverted. + */ void add_joint(const COLLADABU::Math::Matrix4 &matrix); void set_controller(const COLLADAFW::SkinController *co); - /* called from write_controller */ + /** Called from write_controller. */ Object *create_armature(Main *bmain, Scene *scene, ViewLayer *view_layer); Object *set_armature(Object *ob_arm); @@ -101,11 +105,13 @@ class SkinInfo { const COLLADAFW::UniqueId &get_controller_uid(); - /* check if this skin controller references a joint or any descendant of it + /** + * Check if this skin controller references a joint or any descendant of it * * some nodes may not be referenced by SkinController, * in this case to determine if the node belongs to this armature, - * we need to search down the tree */ + * we need to search down the tree. + */ bool uses_joint_or_descendant(COLLADAFW::Node *node); void link_armature(bContext *C, |