Procházet zdrojové kódy

Fix TileMap dragging selection

Gilles Roudière před 2 roky
rodič
revize
88f3d18bc6
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      editor/editor_node.cpp

+ 1 - 0
editor/editor_node.cpp

@@ -8116,6 +8116,7 @@ void EditorPluginList::forward_3d_force_draw_over_viewport(Control *p_overlay) {
 }
 }
 
 
 void EditorPluginList::add_plugin(EditorPlugin *p_plugin) {
 void EditorPluginList::add_plugin(EditorPlugin *p_plugin) {
+	ERR_FAIL_COND(plugins_list.has(p_plugin));
 	plugins_list.push_back(p_plugin);
 	plugins_list.push_back(p_plugin);
 }
 }