@adatechnology/game-destruction-three 0.24.3 → 0.24.4

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.
package/dist/index.js CHANGED
@@ -4745,7 +4745,7 @@ var Renderer = class {
4745
4745
  if ((kind === "dust" || kind === "chips") && def?.visual?.innerColor !== void 0) return { color: def.visual.innerColor };
4746
4746
  if (kind === "fibers" || kind === "leaves") {
4747
4747
  if (def?.visual?.innerColor !== void 0) return { color: def.visual.innerColor };
4748
- const c = pv ? this.visuals.baseColorHex(pv.meshes[0] ?? {}) : -1;
4748
+ const c = pv && pv.meshes[0] ? this.visuals.baseColorHex(pv.meshes[0]) : -1;
4749
4749
  return c >= 0 ? { color: c } : void 0;
4750
4750
  }
4751
4751
  if (kind === "dust" || kind === "chips") {