File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1279,6 +1279,7 @@ Local<Value> EntityClass::setScale(const Arguments& args) {
12791279 if (!entity) return Local<Value>();
12801280
12811281 entity->getEntityData ().set ((ushort)ActorDataIDs::Scale, args[0 ].asNumber ().toFloat ());
1282+ entity->_sendDirtyActorData ();
12821283 return Boolean::newBoolean (true );
12831284 }
12841285 CATCH (" Fail in setScale!" )
Original file line number Diff line number Diff line change @@ -1762,6 +1762,7 @@ Local<Value> PlayerClass::setScale(const Arguments& args) {
17621762 if (!player) return Local<Value>();
17631763
17641764 player->getEntityData ().set ((ushort)ActorDataIDs::Scale, args[0 ].asNumber ().toFloat ());
1765+ player->_sendDirtyActorData ();
17651766 return Boolean::newBoolean (true );
17661767 }
17671768 CATCH (" Fail in setScale!" );
You can’t perform that action at this time.
0 commit comments