From 5f15ff3b2d5887ec8db0309a1941740249dc2cb8 Mon Sep 17 00:00:00 2001 From: Gee Date: Wed, 20 Jul 2005 03:52:09 +0000 Subject: [PATCH] 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. --- source/gui/IGUIObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/gui/IGUIObject.cpp b/source/gui/IGUIObject.cpp index 462ed6837a..734679dc94 100755 --- a/source/gui/IGUIObject.cpp +++ b/source/gui/IGUIObject.cpp @@ -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; } }