File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
engine/modules/entities/src/main/resources/view/entity-module Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,12 @@ export class Entity {
171
171
172
172
this . container . zIndex = state . zIndex
173
173
this . container . alpha = state . alpha
174
- this . container . position . set ( state . x * globalData . toWorldUnits , state . y * globalData . toWorldUnits )
175
- this . container . scale . set ( state . scaleX || eps , state . scaleY || eps )
174
+ if ( changed . x || changed . y ) {
175
+ this . container . position . set ( state . x * globalData . toWorldUnits , state . y * globalData . toWorldUnits )
176
+ }
177
+ if ( changed . scaleX || changed . scaleY ) {
178
+ this . container . scale . set ( state . scaleX || eps , state . scaleY || eps )
179
+ }
176
180
this . container . rotation = state . rotation
177
181
this . container . _visible = state . visible && ! this . hide
178
182
this . container . skew . set ( state . skewX , state . skewY )
You can’t perform that action at this time.
0 commit comments