It is now valid for parentless objects to have absolute set to "false", this can be viewed as if the object were the screen's child, i.e., it doesn't matter if absolute is true or false if an object has got no parent, the property is ignored.
This was SVN commit r2495.
This commit is contained in:
parent
81bdf6e1c4
commit
5f15ff3b2d
@ -375,8 +375,9 @@ float IGUIObject::GetBufferedZ() const
|
||||
return GetParent()->GetBufferedZ() + Z;
|
||||
else
|
||||
{
|
||||
debug_warn("IGUIObject::LoadStyle failed");
|
||||
// TODO Gee: Error, no object should be relative without a parent!
|
||||
// In philosophy, a parentless object shouldn't be able to have a relative sizing,
|
||||
// but we'll accept it so that absolute can be used as default without a complaint.
|
||||
// Also, you could consider those objects children to the screen resolution.
|
||||
return Z;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user