Merge pull request #699 from ctrlaltdavid/fix/gltf-raycasting

Fix pick rays not intersecting glTF models
This commit is contained in:
kasenvr 2020-09-12 22:15:05 -04:00 committed by GitHub
commit ad28067cbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();