From 328e6b3e28bceb428bfc298fa5c9f57bcb43b9cb Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 24 Feb 2013 20:44:02 +0100 Subject: [PATCH] Update bounding box if calling update() on canvas elements --- simgear/canvas/elements/CanvasElement.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(); } //---------------------------------------------------------------------------- -- 2.39.5