mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
Merge pull request #699 from ctrlaltdavid/fix/gltf-raycasting
Fix pick rays not intersecting glTF models
This commit is contained in:
commit
ad28067cbe
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());
|
hfmModel.meshes.append(HFMMesh());
|
||||||
HFMMesh& mesh = hfmModel.meshes[hfmModel.meshes.size() - 1];
|
HFMMesh& mesh = hfmModel.meshes[hfmModel.meshes.size() - 1];
|
||||||
if (!hfmModel.hasSkeletonJoints) {
|
mesh.modelTransform = globalTransforms[nodeIndex];
|
||||||
|
|
||||||
|
if (!hfmModel.hasSkeletonJoints) {
|
||||||
HFMCluster cluster;
|
HFMCluster cluster;
|
||||||
cluster.jointIndex = nodecount;
|
cluster.jointIndex = nodecount;
|
||||||
cluster.inverseBindMatrix = glm::mat4();
|
cluster.inverseBindMatrix = glm::mat4();
|
||||||
|
|
Loading…
Reference in a new issue