1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #66194 from YeldhamDev/feature_fixes

Fix some stuff with the editor features
This commit is contained in:
Rémi Verschelde
2022-11-29 16:47:26 +01:00
2 changed files with 7 additions and 5 deletions

View File

@@ -309,7 +309,11 @@ void EditorFeatureProfile::_bind_methods() {
BIND_ENUM_CONSTANT(FEATURE_MAX); BIND_ENUM_CONSTANT(FEATURE_MAX);
} }
EditorFeatureProfile::EditorFeatureProfile() {} EditorFeatureProfile::EditorFeatureProfile() {
for (int i = 0; i < FEATURE_MAX; i++) {
features_disabled[i] = false;
}
}
////////////////////////// //////////////////////////
@@ -746,6 +750,8 @@ void EditorFeatureProfileManager::_update_selected_profile() {
class_list->clear(); class_list->clear();
String profile = _get_selected_profile(); String profile = _get_selected_profile();
profile_actions[PROFILE_SET]->set_disabled(profile == current_profile);
if (profile.is_empty()) { //nothing selected, nothing edited if (profile.is_empty()) { //nothing selected, nothing edited
property_list->clear(); property_list->clear();
edited.unref(); edited.unref();

View File

@@ -5877,10 +5877,6 @@ void EditorNode::_feature_profile_changed() {
node_tabs->set_tab_hidden(node_tabs->get_tab_idx_from_control(NodeDock::get_singleton()), false); node_tabs->set_tab_hidden(node_tabs->get_tab_idx_from_control(NodeDock::get_singleton()), false);
fs_tabs->set_tab_hidden(fs_tabs->get_tab_idx_from_control(FileSystemDock::get_singleton()), false); fs_tabs->set_tab_hidden(fs_tabs->get_tab_idx_from_control(FileSystemDock::get_singleton()), false);
history_tabs->set_tab_hidden(history_tabs->get_tab_idx_from_control(history_dock), false); history_tabs->set_tab_hidden(history_tabs->get_tab_idx_from_control(history_dock), false);
history_dock->set_visible(true);
ImportDock::get_singleton()->set_visible(true);
NodeDock::get_singleton()->set_visible(true);
FileSystemDock::get_singleton()->set_visible(true);
main_editor_buttons[EDITOR_3D]->set_visible(true); main_editor_buttons[EDITOR_3D]->set_visible(true);
main_editor_buttons[EDITOR_SCRIPT]->set_visible(true); main_editor_buttons[EDITOR_SCRIPT]->set_visible(true);
if (AssetLibraryEditorPlugin::is_available()) { if (AssetLibraryEditorPlugin::is_available()) {