This commit is contained in:
halx99 2021-09-03 10:49:44 +08:00
parent 1401e61702
commit e11f489750
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,8 @@ void Scale9Sprite::copyTo(Scale9Sprite* copy) const
copy->setRenderingType(_renderingType);
copy->setScale9Enabled(isScale9Enabled());
// setStretchEnabled after setScale9Enabled, fix issue: https://github.com/adxeproject/adxe/issues/491
copy->setStretchEnabled(isStretchEnabled());
copy->_isPatch9 = _isPatch9;
copy->_brightState = _brightState;