[fixed]CGUIImage deserialized wrong bool for ScaleImage

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
chronologicaldot
Competition winner
Posts: 688
Joined: Mon Sep 10, 2012 8:51 am

[fixed]CGUIImage deserialized wrong bool for ScaleImage

Post by chronologicaldot »

In CGUIImage::deserializeAttributes:

Code: Select all

 
    setScaleImage(in->getAttributeAsBool("ScaleImage", UseAlphaChannel));
 
Should use "ScaleImage" for the default value:

Code: Select all

 
    setScaleImage(in->getAttributeAsBool("ScaleImage", ScaleImage));
 
The bug still exists in the latest revision, 5654.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: CGUIImage uses wrong bool for ScaleImage in deserialize

Post by CuteAlien »

Thanks! Fixed in r5665 now.

edit: Added default serialization now to most elements.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply