From 90f8c7c51ba681d320cbcf69247ffe1bdddb949b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jun 2016 12:24:28 +0100 Subject: [PATCH] Added initializer --- src/osgManipulator/Projector.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/osgManipulator/Projector.cpp b/src/osgManipulator/Projector.cpp index bbae7ac9f..216ac6278 100644 --- a/src/osgManipulator/Projector.cpp +++ b/src/osgManipulator/Projector.cpp @@ -372,11 +372,14 @@ bool SphereProjector::isPointInFront(const PointerInfo& pi, const osg::Matrix& l } -SpherePlaneProjector::SpherePlaneProjector() +SpherePlaneProjector::SpherePlaneProjector(): + _onSphere(false) { } -SpherePlaneProjector::SpherePlaneProjector(osg::Sphere* sphere) : SphereProjector(sphere) +SpherePlaneProjector::SpherePlaneProjector(osg::Sphere* sphere) : + SphereProjector(sphere), + _onSphere(false) { }