]> git.mxchange.org Git - simgear.git/commitdiff
Update bounding box if calling update() on canvas elements
authorThomas Geymayer <tomgey@gmail.com>
Sun, 24 Feb 2013 19:44:02 +0000 (20:44 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 24 Feb 2013 19:44:02 +0000 (20:44 +0100)
simgear/canvas/elements/CanvasElement.cxx

index ca4f6c76259286bd79fd74a7ea9a341fd3bab473..bb135cc173f7505df684a6b771d731af15c1e208 100644 (file)
@@ -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();
   }
 
   //----------------------------------------------------------------------------