@needle-tools/engine 2.56.0-pre → 2.56.1-pre

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/engine",
3
- "version": "2.56.0-pre",
3
+ "version": "2.56.1-pre",
4
4
  "description": "Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development, and can be deployed anywhere. It is flexible, extensible, and collaboration and XR come naturally.",
5
5
  "main": "dist/needle-engine.js",
6
6
  "module": "src/needle-engine.ts",
@@ -167,9 +167,13 @@ export class Graphic extends BaseUIComponent implements IGraphic {
167
167
 
168
168
  export class MaskableGraphic extends Graphic {
169
169
 
170
+ private _flippedObject = false;
171
+
170
172
  protected onAfterCreated() {
171
173
  // flip image
172
- if (this.uiObject)
174
+ if (this.uiObject && !this._flippedObject) {
175
+ this._flippedObject = true;
173
176
  this.uiObject.scale.y *= -1;
177
+ }
174
178
  }
175
179
  }