浏览代码

Fixed a dock manager crash when removing the last widget from the dock area

Marko Pintera 10 年之前
父节点
当前提交
62b9ac949b
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      BansheeEditor/Source/BsDockManager.cpp
  2. 4 0
      TODO.txt

+ 1 - 1
BansheeEditor/Source/BsDockManager.cpp

@@ -287,7 +287,7 @@ namespace BansheeEngine
 				bs_delete(mWidgets);
 				bs_delete(mWidgets);
 				mWidgets = nullptr;
 				mWidgets = nullptr;
 
 
-				mIsLeaf = false;
+				mIsLeaf = true;
 				mSplitPosition = 0.5f;
 				mSplitPosition = 0.5f;
 				mIsHorizontal = false;
 				mIsHorizontal = false;
 			}
 			}

+ 4 - 0
TODO.txt

@@ -67,10 +67,14 @@ Click on empty part of the menu bar doesn't close the menu bar (ignoring NC area
 Clicking on a parent of a menu item just reopens that item but I would expect it to close it
 Clicking on a parent of a menu item just reopens that item but I would expect it to close it
 Clicking on menu items doesn't seem to work
 Clicking on menu items doesn't seem to work
 Attempting to dock a window that is not in focus will start drag instead (NC area incorrectly set up?)
 Attempting to dock a window that is not in focus will start drag instead (NC area incorrectly set up?)
+Removing the last widget from the dock area will cause a crash
+Dropping an element in "None" dock area closes the window
 Decent looking default layout
 Decent looking default layout
 Fix DX11 (and possibly DX9) rendering
 Fix DX11 (and possibly DX9) rendering
 Missing Inspector values (name + transform fields)
 Missing Inspector values (name + transform fields)
 Fix handles
 Fix handles
+ - Some handle functionality is unfinished
+ - Handles look too large when scene view is enlarged
 Moving the title bar tab and then dropping it closes the window (possibly only happens when there is just one tab)
 Moving the title bar tab and then dropping it closes the window (possibly only happens when there is just one tab)
 After undocking ProjectWindow the auto-scroll seems to be stuck in up position
 After undocking ProjectWindow the auto-scroll seems to be stuck in up position