Skip to content

Commit 0114bcd

Browse files
committed
fix: fix #92
1 parent 055a3ca commit 0114bcd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/legacy/api/EntityAPI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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!")

src/legacy/api/PlayerAPI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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!");

0 commit comments

Comments
 (0)