nem0 / LumixEngine

3D C++ Game Engine - yet another open source game engine
MIT License
3.46k stars 392 forks source link

Asset Browser is displaying on top of SceneView or Settings window. #888

Closed PeaceSells50 closed 8 years ago

PeaceSells50 commented 8 years ago

image

Repro steps. Dock Asset Browser on right side of window. Hit AssetBrowser Icon the docked panel wiill go away. Everything looks fine at this point. Then hit AssetBrowser icon again. Instead of redocking the Asset Browser to the right side. It displays on top of Scene or Setting window.

nem0 commented 8 years ago

I can't reproduce this, is this 100% reproducible?

PeaceSells50 commented 8 years ago

Is there a window positioning file I can send you?

PeaceSells50 commented 8 years ago

When I try and pull the windows apart I get this ASSERT.

engine.dll!ImGui::NewFrame() Line 2135 C++ editor.dll!StudioAppImpl::guiBeginFrame() Line 260 C++ editor.dll!StudioAppImpl::update() Line 339 C++ editor.dll!StudioAppImpl::run() Line 1811 C++ studio.exe!WinMain(void * formal, void * formal, char * formal, int formal) Line 9 C++ [External Code]

imgui.cpp line 2135 IM_ASSERT(g.MovedWindow && g.MovedWindow->RootWindow);

    IM_ASSERT(g.MovedWindow->RootWindow->MoveID == g.MovedWindowMoveId);

somehow the moveid's are not matching up

PeaceSells50 commented 8 years ago

when I click on the scene view and settings tab control chevron it only shows sceneview and scettings. even though you can see the asset browser blending with the other windows.

new crash trying to seperate tabs:

engine.dll!ImGui::DockContext::Dock::getFirstTab() Line 99 C++ engine.dll!ImGui::DockContext::begin(const char * label, bool * opened, int extra_flags) Line 973 C++ engine.dll!ImGui::BeginDock(const char * label, bool * opened, int extra_flags) Line 1184 C++ editor.dll!AssetBrowser::onGUI() Line 208 C++ editor.dll!StudioAppImpl::guiEndFrame() Line 313 C++ editor.dll!StudioAppImpl::update() Line 356 C++ editor.dll!StudioAppImpl::run() Line 1811 C++ studio.exe!WinMain(void * formal, void * formal, char * formal, int formal) Line 9 C++ [External Code]

nem0 commented 8 years ago

studio.ini and imgui.ini store some data

nem0 commented 8 years ago

ok I managed to reproduce it

PeaceSells50 commented 8 years ago

deleted my studio.ini. tried again. yeah it is 100%

  1. delete studio.ini file
  2. run lumix
  3. drag assetbrowser window to dock with right side of screen. all the way over.
  4. hide assetbrowser. 5.show assetbrowser that does it everytime for me