utils.js 292 B

1234567891011
  1. /**
  2. * @internal
  3. * Returns if mesh1 is a descendant of mesh2
  4. * @param mesh1
  5. * @param mesh2
  6. * @returns
  7. */
  8. export function _isADescendantOf(mesh1, mesh2) {
  9. return !!(mesh1.parent && (mesh1.parent === mesh2 || _isADescendantOf(mesh1.parent, mesh2)));
  10. }
  11. //# sourceMappingURL=utils.js.map