Fix bug showing invalid warning in Edit > Pref when "keep edited sprite data lifespan" wasn't modified

This commit is contained in:
David Capello 2019-05-27 23:31:10 -03:00
parent bcf6899793
commit 91665c62c3

View File

@ -488,7 +488,7 @@ public:
int newLifespan = base::convert_to<int>(keepEditedSpriteDataLifespan()->getValue());
if (keepEditedSpriteData()->isSelected() != m_pref.general.keepEditedSpriteData() ||
newLifespan != m_pref.general.dataRecoveryPeriod()) {
newLifespan != m_pref.general.keepEditedSpriteDataLifespan()) {
m_pref.general.keepEditedSpriteData(keepEditedSpriteData()->isSelected());
m_pref.general.keepEditedSpriteDataLifespan(newLifespan);