mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 09:53:30 +02:00
Fix pick rays not intersecting glTF models
This commit is contained in:
parent
7a686d95e0
commit
84cb3b2515
1 changed files with 3 additions and 1 deletions
|
@ -1019,6 +1019,8 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
||||||
|
|
||||||
hfmModel.meshes.append(HFMMesh());
|
hfmModel.meshes.append(HFMMesh());
|
||||||
HFMMesh& mesh = hfmModel.meshes[hfmModel.meshes.size() - 1];
|
HFMMesh& mesh = hfmModel.meshes[hfmModel.meshes.size() - 1];
|
||||||
|
mesh.modelTransform = globalTransforms[nodeIndex];
|
||||||
|
|
||||||
if (!hfmModel.hasSkeletonJoints) {
|
if (!hfmModel.hasSkeletonJoints) {
|
||||||
HFMCluster cluster;
|
HFMCluster cluster;
|
||||||
cluster.jointIndex = nodecount;
|
cluster.jointIndex = nodecount;
|
||||||
|
|
Loading…
Reference in a new issue