File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,8 @@ class IMeshManipulator : public virtual core::IReferenceCounted
391
391
else
392
392
ix = indexPtr[j];
393
393
const auto pos = meshbuffer->getPosition (ix);
394
-
394
+
395
+ bool noJointInfluence = true ;
395
396
if constexpr (!std::is_void_v<std::remove_pointer_t <decltype (jointAABBs)>>)
396
397
{
397
398
uint32_t jointIDs[4u ];
@@ -407,12 +408,14 @@ class IMeshManipulator : public virtual core::IReferenceCounted
407
408
core::vectorSIMDf boneSpacePos;
408
409
inverseBindPoses[i].transformVect (boneSpacePos,pos);
409
410
jointAABBs[jointIDs[i]].addInternalPoint (boneSpacePos.getAsVector3df ());
411
+ noJointInfluence = false ;
410
412
}
411
413
weightRemainder -= weights[i];
412
414
}
413
415
}
414
-
415
- aabb.addInternalPoint (pos.getAsVector3df ());
416
+
417
+ if (noJointInfluence)
418
+ aabb.addInternalPoint (pos.getAsVector3df ());
416
419
}
417
420
};
418
421
You can’t perform that action at this time.
0 commit comments