Skip to content

Commit

Permalink
Add copy name in ModelAnimation
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcod7 committed Jun 19, 2024
1 parent 6a5286c commit 7307816
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/ModelAnimation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <vector>
#include <string>
#include <cstring>

#include "./raylib.hpp"
#include "./raylib-cpp-utils.hpp"
Expand Down Expand Up @@ -102,6 +103,7 @@ class ModelAnimation : public ::ModelAnimation {
frameCount = model.frameCount;
bones = model.bones;
framePoses = model.framePoses;
std::strcpy(name, model.name);
}
};
} // namespace raylib
Expand Down

0 comments on commit 7307816

Please sign in to comment.