Skip to content

Commit 94f3a67

Browse files
JordyvanDortmontfire
authored andcommitted
Fixed morph target names
1 parent 37f9923 commit 94f3a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gltf/properties/MeshData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ json MeshData::serialize() const {
1717
json jsonTargetNamesArray = json::array();
1818
for (const auto& primitive : primitives) {
1919
jsonPrimitivesArray.push_back(*primitive);
20-
if (!primitive->targetNames.empty()) {
20+
if (!primitive->targetNames.empty() && jsonTargetNamesArray.empty()) {
2121
for (auto targetName : primitive->targetNames) {
2222
jsonTargetNamesArray.push_back(targetName);
2323
}

0 commit comments

Comments
 (0)