]> git.mxchange.org Git - simgear.git/commitdiff
activate model load/unload callback again. It turned out *not* to be the
authormfranz <mfranz>
Sun, 12 Mar 2006 10:09:34 +0000 (10:09 +0000)
committermfranz <mfranz>
Sun, 12 Mar 2006 10:09:34 +0000 (10:09 +0000)
cause for the MP crashes -- the same crashes did still occur without it.

simgear/scene/model/model.cxx

index dd8636af85656e2dc91688fdcda51ebc9105ef05..e910bfc766c39da9c11c696af0a74f0ed201b1e7 100644 (file)
@@ -339,9 +339,8 @@ sgLoad3DModel( const string &fg_root, const string &path,
   }
 
   if (data) {
-    //data->modelLoaded(path, &props, model);
-    //model->setUserData(data);
-    delete data;
+    model->setUserData(data);
+    data->modelLoaded(path, &props, model);
   }
                                 // Load animations
   set<ssgBranch *> ignore_branches;