Преглед на файлове

Fix Editor null pointer exception when in UI Element picking mode.

Yao Wei Tjong 姚伟忠 преди 12 години
родител
ревизия
23bdd79d88
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Bin/Data/Scripts/Editor/EditorView.as

+ 1 - 1
Bin/Data/Scripts/Editor/EditorView.as

@@ -545,7 +545,7 @@ void ViewRaycast(bool mouseClick)
         bool multiselect = input.qualifierDown[QUAL_CTRL];
 
         // Only interested in user-created UI elements
-        if (elementAtPos !is editorUIElement && elementAtPos.GetElementEventSender() is editorUIElement)
+        if (elementAtPos !is null && elementAtPos !is editorUIElement && elementAtPos.GetElementEventSender() is editorUIElement)
         {
             ui.DebugDraw(elementAtPos);