Fix default value for ScaleImage in CGUIImage::deserializeAttributes.

Thanks @chronologicaldot for the report: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52405


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5655 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2018-11-10 13:33:55 +00:00
parent 57949584ed
commit 0ec5f98831
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ void CGUIImage::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWri
setImage(in->getAttributeAsTexture("Texture", Texture));
setUseAlphaChannel(in->getAttributeAsBool("UseAlphaChannel", UseAlphaChannel));
setColor(in->getAttributeAsColor("Color", Color));
setScaleImage(in->getAttributeAsBool("ScaleImage", UseAlphaChannel));
setScaleImage(in->getAttributeAsBool("ScaleImage", ScaleImage));
setSourceRect(in->getAttributeAsRect("SourceRect", SourceRect));
DrawBounds.UpperLeftCorner.X = in->getAttributeAsFloat("DrawBoundsX1", DrawBounds.UpperLeftCorner.X);