Topic: Maratis 4 Editor Load Level Feature Difficulty

Hello everyone!

I'm trying to modify the maratis 4 experimental brunch.
For now, I'm stuck with level loading.

The project is MaratisEditor.
For level loading I added levelLoader in main.cpp, so it looks:

engine->getLevelLoader()->addLoader(xmlLevelLoad)

This took place in winEvents function, when the window is created (MWIN_EVENT_CREATE).


When I try to load level with

engine->loadLevel(...)

from the winEvents in case MWIN_EVENT_CREATE, it works fine:
https://yadi.sk/i/-oDcZ1HMNVGSoA

When i try to load level from somwhere else (for example, from onEvent method of MV3dEdit, there is a problem):
https://yadi.sk/i/Cw9BVE0jXnPDfw

I checked log and did debug, maratis loads the textures both times.

So, could you give me the direction of moving to find a solution?

Last edited by hog (2020-10-06 13:45:15)