Skip to content

Commit

Permalink
Merge pull request #724 from zeux/gltf-scene
Browse files Browse the repository at this point in the history
gltfpack: Do not merge mesh primitives with different scenes
  • Loading branch information
zeux authored Jul 22, 2024
2 parents 3417776 + 92c22ab commit 6f6e143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gltf/gltfpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static void process(cgltf_data* data, const char* input_path, const char* output
{
const Mesh& prim = meshes[pi];

if (prim.skin != mesh.skin || prim.targets != mesh.targets)
if (prim.scene != mesh.scene || prim.skin != mesh.skin || prim.targets != mesh.targets)
break;

if (pi > i && (mesh.instances.size() || prim.instances.size()))
Expand Down

0 comments on commit 6f6e143

Please sign in to comment.