Skip to content

Commit 2d18aaa

Browse files
authored
Merge pull request #325 from Arcod7/master
Add copy name in ModelAnimation
2 parents 6a5286c + 7307816 commit 2d18aaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/ModelAnimation.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <vector>
55
#include <string>
6+
#include <cstring>
67

78
#include "./raylib.hpp"
89
#include "./raylib-cpp-utils.hpp"
@@ -102,6 +103,7 @@ class ModelAnimation : public ::ModelAnimation {
102103
frameCount = model.frameCount;
103104
bones = model.bones;
104105
framePoses = model.framePoses;
106+
std::strcpy(name, model.name);
105107
}
106108
};
107109
} // namespace raylib

0 commit comments

Comments
 (0)