diff --git a/simgear/scene/model/model.cxx b/simgear/scene/model/model.cxx index dd8636af..e910bfc7 100644 --- a/simgear/scene/model/model.cxx +++ b/simgear/scene/model/model.cxx @@ -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 ignore_branches;