]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/placement.hxx
- better error message when submodel loading failed
[simgear.git] / simgear / scene / model / placement.hxx
index 8130c4905f6a6ba04f489b5715a573f5eaf38e06..1b6654feb9bd8656d651de13d8765dd0d1f449e8 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <simgear/math/point3d.hxx>
 #include <simgear/props/props.hxx>
+#include <simgear/structure/ssgSharedPtr.hxx>
 
 
 // Don't pull in the headers, since we don't need them here.
@@ -46,7 +47,7 @@ public:
   SGModelPlacement ();
   virtual ~SGModelPlacement ();
 
-  virtual void SGModelPlacement::init( ssgBranch * model );
+  virtual void init( ssgBranch * model );
 
   virtual void update();
 
@@ -91,8 +92,8 @@ private:
   double _pitch_deg;
   double _heading_deg;
 
-  ssgSelector * _selector;
-  ssgPlacementTransform * _position;
+  ssgSharedPtr<ssgSelector> _selector;
+  ssgSharedPtr<ssgPlacementTransform> _position;
 
                                 // Location
   SGLocation * _location;