mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 19:48:13 +03:00
Also reset model when object ID is changed via script
This commit is contained in:
parent
ebc4fe7206
commit
577827846f
1 changed files with 1 additions and 0 deletions
|
@ -473,6 +473,7 @@ GAME_OBJECT_ID Moveable::GetObjectID() const
|
||||||
void Moveable::SetObjectID(GAME_OBJECT_ID id)
|
void Moveable::SetObjectID(GAME_OBJECT_ID id)
|
||||||
{
|
{
|
||||||
m_item->ObjectNumber = id;
|
m_item->ObjectNumber = id;
|
||||||
|
m_item->ResetModelToDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetLevelFuncCallback(TypeOrNil<LevelFunc> const & cb, std::string const & callerName, Moveable & mov, std::string & toModify)
|
void SetLevelFuncCallback(TypeOrNil<LevelFunc> const & cb, std::string const & callerName, Moveable & mov, std::string & toModify)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue