@adatechnology/game-vegetation-three 0.2.6 → 0.2.7

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
@@ -1,4 +1,5 @@
1
1
  // src/test-area/module.ts
2
+ import { discardObject3D } from "@adatechnology/game-shapes-three";
2
3
  import { shapeGeometries as shapeGeometries2 } from "@adatechnology/game-shapes-three";
3
4
  import * as GameVegetationMain from "@adatechnology/game-vegetation";
4
5
  import * as GameVegetationAdapter from "@adatechnology/game-vegetation/three";
@@ -973,7 +974,7 @@ function createVegetationTestModule(options = {}) {
973
974
  });
974
975
  const clearHelpers = () => {
975
976
  for (const entry of placed.values()) {
976
- for (const helper of entry.helpers) helper.parent?.remove(helper);
977
+ discardObject3D(entry.helpers);
977
978
  entry.helpers = [];
978
979
  }
979
980
  helpersShown = "";