mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 19:33:36 +00:00
Fix an issue where Story Menu props wouldn't render.
This commit is contained in:
parent
db7b97d513
commit
8d7591a796
|
@ -11,12 +11,15 @@ class LevelProp extends Bopper
|
||||||
function set_propData(value:LevelPropData):LevelPropData
|
function set_propData(value:LevelPropData):LevelPropData
|
||||||
{
|
{
|
||||||
// Only reset the prop if the asset path has changed.
|
// Only reset the prop if the asset path has changed.
|
||||||
if (propData == null || value?.assetPath != propData?.assetPath)
|
if (propData == null || !(thx.Dynamics.equals(value, propData)))
|
||||||
{
|
{
|
||||||
|
this.propData = value;
|
||||||
|
|
||||||
|
this.visible = this.propData != null;
|
||||||
|
danceEvery = this.propData?.danceEvery ?? 0;
|
||||||
|
|
||||||
applyData();
|
applyData();
|
||||||
}
|
}
|
||||||
this.visible = (value != null);
|
|
||||||
danceEvery = this.propData?.danceEvery ?? 0;
|
|
||||||
|
|
||||||
return this.propData;
|
return this.propData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue