]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/SGVasiDrawable.cxx
hla: Provide a directly property based api for property data element.
[simgear.git] / simgear / scene / tgdb / SGVasiDrawable.cxx
index 24e553881e776f98c85ae47d2e1b4df87540c8fc..bc9b662cf327d9353bdad77abe07751d1cf5ac9e 100644 (file)
@@ -94,7 +94,7 @@ SGVasiDrawable::drawImplementation(osg::RenderInfo& renderInfo) const
   // Retrieve the eye point in local coords
   osg::Matrix m;
   m.invert(renderInfo.getState()->getModelViewMatrix());
-  SGVec3f eyePoint(m.preMult(osg::Vec3(0, 0, 0)));
+  SGVec3f eyePoint(toSG(m.preMult(osg::Vec3(0, 0, 0))));
   
   // paint the points
   for (unsigned i = 0; i < _lights.size(); ++i)
@@ -106,7 +106,7 @@ SGVasiDrawable::computeBound() const
 {
   osg::BoundingBox bb;
   for (unsigned i = 0; i < _lights.size(); ++i)
-    bb.expandBy(_lights[i].position.osg());
+    bb.expandBy(toOsg(_lights[i].position));
   
   // blow up to avoid being victim to small feature culling ...
   bb.expandBy(bb._min - osg::Vec3(1, 1, 1));