diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2021-04-29 09:40:56 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2021-05-03 19:49:19 +0200 |
commit | 5a02c376ea5f2e7f1dd0a2bd4f08bf953ed4bfc8 (patch) | |
tree | d4bd7334bad7f1bf0d01d1dc6acbaccd34132823 /src/gui/guiFormSpecMenu.cpp | |
parent | ccdd886e273ec2fa5f8cfe1d1f474914eccb2abf (diff) | |
download | minetest-5a02c376ea5f2e7f1dd0a2bd4f08bf953ed4bfc8.tar.gz minetest-5a02c376ea5f2e7f1dd0a2bd4f08bf953ed4bfc8.tar.bz2 minetest-5a02c376ea5f2e7f1dd0a2bd4f08bf953ed4bfc8.zip |
refacto: RenderingEngine::get_scene_manager() is now not callable from singleton
This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects
Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
Diffstat (limited to 'src/gui/guiFormSpecMenu.cpp')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index fd35f2d84..fdcf27a0a 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2794,7 +2794,7 @@ void GUIFormSpecMenu::parseModel(parserData *data, const std::string &element) core::rect<s32> rect(pos, pos + geom); - GUIScene *e = new GUIScene(Environment, RenderingEngine::get_scene_manager(), + GUIScene *e = new GUIScene(Environment, m_client->getSceneManager(), data->current_parent, rect, spec.fid); auto meshnode = e->setMesh(mesh); |