Browse Source

Merge pull request #31850 from aole/script-callback-enable-disable-EditorPlugin

Script callback for enabling/disabling EditorPlugin
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
4e8ce420f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/editor_plugin.cpp

+ 1 - 1
editor/editor_plugin.cpp

@@ -238,7 +238,7 @@ Control *EditorInterface::get_base_control() {
 }
 
 void EditorInterface::set_plugin_enabled(const String &p_plugin, bool p_enabled) {
-	EditorNode::get_singleton()->set_addon_plugin_enabled(p_plugin, p_enabled);
+	EditorNode::get_singleton()->set_addon_plugin_enabled(p_plugin, p_enabled, true);
 }
 
 bool EditorInterface::is_plugin_enabled(const String &p_plugin) const {