lythreeframe 1.2.32 → 1.2.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2255,6 +2255,13 @@ class Controller {
2255
2255
  if (out[i].object.userData["rayIgnored"]) {
2256
2256
  continue;
2257
2257
  }
2258
+ let component = out[i].object.userData["LYObject"];
2259
+ if (!component) {
2260
+ continue;
2261
+ }
2262
+ if (!component.isHoverEnabled && !component.isClickEnabled) {
2263
+ continue;
2264
+ }
2258
2265
  return out[i];
2259
2266
  }
2260
2267
  return null;
@@ -2253,6 +2253,13 @@ class Controller {
2253
2253
  if (out[i].object.userData["rayIgnored"]) {
2254
2254
  continue;
2255
2255
  }
2256
+ let component = out[i].object.userData["LYObject"];
2257
+ if (!component) {
2258
+ continue;
2259
+ }
2260
+ if (!component.isHoverEnabled && !component.isClickEnabled) {
2261
+ continue;
2262
+ }
2256
2263
  return out[i];
2257
2264
  }
2258
2265
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.2.32",
3
+ "version": "1.2.33",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",