]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/userdata.cxx
simgear/scene/sky/sky.cxx: Include sg_inlines.h with simgear/ prefix as all other...
[simgear.git] / simgear / scene / tgdb / userdata.cxx
index fab67b2fcedd11bb4f67b625ed1de7d2a975ac24..bf5823c99dba7b0bb28b1066f8e5387e694d05a3 100644 (file)
@@ -28,7 +28,6 @@
 #include <osgDB/Registry>
 
 #include <simgear/sg_inlines.h>
-#include <simgear/math/point3d.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/math/sg_random.h>
 #include <simgear/scene/material/mat.hxx>
@@ -60,7 +59,14 @@ void sgUserDataInit( SGPropertyNode *p ) {
     root_props = p;
 }
 
-osg::Node* sgGetRandomModel(SGMatModel *obj) {
-   return obj->get_random_model( root_props );
+osg::Node* sgGetRandomModel(SGMatModel *obj, mt seed) {
+   return obj->get_random_model( root_props, seed );
  }
 
+namespace simgear
+{
+SGPropertyNode* getPropertyRoot()
+{
+    return root_props;
+}
+}