mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 23:39:23 +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,7 +1019,9 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
|
||||
hfmModel.meshes.append(HFMMesh());
|
||||
HFMMesh& mesh = hfmModel.meshes[hfmModel.meshes.size() - 1];
|
||||
if (!hfmModel.hasSkeletonJoints) {
|
||||
mesh.modelTransform = globalTransforms[nodeIndex];
|
||||
|
||||
if (!hfmModel.hasSkeletonJoints) {
|
||||
HFMCluster cluster;
|
||||
cluster.jointIndex = nodecount;
|
||||
cluster.inverseBindMatrix = glm::mat4();
|
||||
|
|
Loading…
Reference in a new issue