diff --git a/simgear/scene/model/model.cxx b/simgear/scene/model/model.cxx index e910bfc7..e7db0824 100644 --- a/simgear/scene/model/model.cxx +++ b/simgear/scene/model/model.cxx @@ -339,7 +339,7 @@ sgLoad3DModel( const string &fg_root, const string &path, } if (data) { - model->setUserData(data); + alignmainmodel->setUserData(data); data->modelLoaded(path, &props, model); } // Load animations