瀏覽代碼

[GDNative] remove spam at editor unfocus when using NativeScript

(cherry picked from commit 0e5b2b16ede012ffc1bddb5e6e3770234eda6032)
thomas.herzog 6 年之前
父節點
當前提交
cf8bd34941
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdnative/nativescript/nativescript.cpp

+ 1 - 1
modules/gdnative/nativescript/nativescript.cpp

@@ -1691,7 +1691,7 @@ void NativeReloadNode::_notification(int p_what) {
 
 
 				// since singleton libraries are not unloaded there is no point
 				// since singleton libraries are not unloaded there is no point
 				// in loading them again.
 				// in loading them again.
-				if (!gdn->get_library()->is_singleton()) {
+				if (gdn->get_library()->is_singleton()) {
 					continue;
 					continue;
 				}
 				}