From: Thomas Geymayer Date: Sun, 24 Feb 2013 19:44:02 +0000 (+0100) Subject: Update bounding box if calling update() on canvas elements X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=328e6b3e28bceb428bfc298fa5c9f57bcb43b9cb;p=simgear.git Update bounding box if calling update() on canvas elements --- diff --git a/simgear/canvas/elements/CanvasElement.cxx b/simgear/canvas/elements/CanvasElement.cxx index ca4f6c76..bb135cc1 100644 --- a/simgear/canvas/elements/CanvasElement.cxx +++ b/simgear/canvas/elements/CanvasElement.cxx @@ -130,6 +130,10 @@ namespace canvas _transform->setMatrix(m); _transform_dirty = false; } + + // Update bounding box on manual update (manual updates pass zero dt) + if( dt == 0 && _drawable ) + _drawable->getBound(); } //----------------------------------------------------------------------------