Needle Engine

Changes between version 3.39.0-alpha.2 and 3.39.0-alpha.3
Files changed (3) hide show
  1. src/engine-components/ui/Graphic.ts +1 -0
  2. src/engine-components/NeedleMenu.ts +1 -1
  3. src/engine-components/ParticleSystem.ts +8 -0
src/engine-components/ui/Graphic.ts CHANGED
@@ -225,6 +225,7 @@
225
225
  NEEDLE_progressive.assignTextureLOD(tex, 0).then(res => {
226
226
  if (res instanceof Texture) {
227
227
  this.setOptions({ backgroundImage: res });
228
+ this.markDirty();
228
229
  }
229
230
  });
230
231
  }
src/engine-components/NeedleMenu.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  export class NeedleMenu extends Behaviour {
10
10
 
11
11
  @serializable()
12
- position: "top" | "bottom" = "top";
12
+ position: "top" | "bottom" = "bottom";
13
13
 
14
14
  /** Show the Needle logo in the menu (requires PRO license) */
15
15
  @serializable()
src/engine-components/ParticleSystem.ts CHANGED
@@ -1016,6 +1016,14 @@
1016
1016
  start() {
1017
1017
  this.addSubParticleSystems();
1018
1018
  this.updateLayers();
1019
+
1020
+ if (this.renderer.particleMesh instanceof Mesh && this._interface.renderMode == RenderMode.Mesh) {
1021
+ NEEDLE_progressive.assignMeshLOD(this.renderer.particleMesh, 0).then(geo => {
1022
+ if (geo && this.particleSystem && this._interface.renderMode == RenderMode.Mesh) {
1023
+ this.particleSystem.instancingGeometry = geo;
1024
+ }
1025
+ });
1026
+ }
1019
1027
  }
1020
1028
 
1021
1029
  /** @internal */