@series-inc/rundot-3d-engine 0.6.21 → 0.6.22

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.
@@ -614,7 +614,7 @@ var ComponentUpdater = class _ComponentUpdater {
614
614
  static update(deltaTime) {
615
615
  this.updateCount++;
616
616
  for (const component of _ComponentUpdater.updateableComponents) {
617
- if (component.getGameObject().visible) {
617
+ if (component.getGameObject().isEnabled()) {
618
618
  try {
619
619
  component.update?.(deltaTime);
620
620
  } catch (error) {
@@ -628,7 +628,7 @@ var ComponentUpdater = class _ComponentUpdater {
628
628
  */
629
629
  static lateUpdate(deltaTime) {
630
630
  for (const component of _ComponentUpdater.lateUpdateableComponents) {
631
- if (component.getGameObject().visible) {
631
+ if (component.getGameObject().isEnabled()) {
632
632
  try {
633
633
  component.lateUpdate?.(deltaTime);
634
634
  } catch (error) {
@@ -3052,7 +3052,7 @@ var RenderBatcher = class _RenderBatcher {
3052
3052
  if (!entry.renderer.isLoaded()) continue;
3053
3053
  const mesh = entry.renderer.getMesh();
3054
3054
  if (!mesh || !mesh.visible) continue;
3055
- if (!entry.renderer.getGameObject().visible) continue;
3055
+ if (!entry.renderer.getGameObject().isEnabled()) continue;
3056
3056
  if (frustum) {
3057
3057
  const e = entry.nodes[0].mesh.matrixWorld.elements;
3058
3058
  _cullSphere.center.set(e[12], e[13], e[14]);
@@ -9550,4 +9550,4 @@ export {
9550
9550
  StowKitSystem,
9551
9551
  MeshRenderer
9552
9552
  };
9553
- //# sourceMappingURL=chunk-YMH4TFOA.js.map
9553
+ //# sourceMappingURL=chunk-HSDYKO3B.js.map