feat: updated godot version
This commit is contained in:
parent
0c508b0831
commit
42b028dbb5
4694 changed files with 236470 additions and 401376 deletions
|
|
@ -30,18 +30,14 @@
|
|||
|
||||
#include "editor_debugger_tree.h"
|
||||
|
||||
#include "core/io/resource_saver.h"
|
||||
#include "core/object/callable_mp.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "editor/debugger/editor_debugger_node.h"
|
||||
#include "editor/docks/inspector_dock.h"
|
||||
#include "editor/docks/scene_tree_dock.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_string_names.h"
|
||||
#include "editor/gui/editor_file_dialog.h"
|
||||
#include "editor/gui/editor_toaster.h"
|
||||
#include "editor/settings/editor_settings.h"
|
||||
#include "scene/debugger/scene_debugger_object.h"
|
||||
#include "scene/debugger/scene_debugger.h"
|
||||
#include "scene/gui/texture_rect.h"
|
||||
#include "scene/resources/packed_scene.h"
|
||||
#include "servers/display/display_server.h"
|
||||
|
|
@ -283,12 +279,18 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
|
|||
if (debugger_id == p_debugger) { // Can use remote id.
|
||||
if (inspected_object_ids.has(uint64_t(node.id))) {
|
||||
ids_present.append(node.id);
|
||||
select_items.push_back(item);
|
||||
if (should_scroll) {
|
||||
|
||||
if (selection_uncollapse_all) {
|
||||
selection_uncollapse_all = false;
|
||||
|
||||
// Temporarily set to `false`, to allow caching the unfolds.
|
||||
updating_scene_tree = false;
|
||||
item->uncollapse_tree();
|
||||
updating_scene_tree = true;
|
||||
}
|
||||
|
||||
select_items.push_back(item);
|
||||
if (should_scroll) {
|
||||
scroll_item = item;
|
||||
}
|
||||
}
|
||||
|
|
@ -410,18 +412,10 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
|
|||
|
||||
void EditorDebuggerTree::select_nodes(const TypedArray<int64_t> &p_ids) {
|
||||
// Manually select, as the tree control may be out-of-date for some reason (e.g. not shown yet).
|
||||
selection_uncollapse_all = true;
|
||||
inspected_object_ids = p_ids;
|
||||
scrolling_to_item = true;
|
||||
|
||||
// If we have not previously selected any of these items, expand the inspector's properties for this item.
|
||||
for (ObjectID id : p_ids) {
|
||||
if (!selection_cache.has(id)) {
|
||||
selection_cache.insert(id);
|
||||
|
||||
InspectorDock::get_inspector_singleton()->expand_all_folding();
|
||||
}
|
||||
}
|
||||
|
||||
if (!updating_scene_tree) {
|
||||
// Request a tree refresh.
|
||||
EditorDebuggerNode::get_singleton()->request_remote_tree();
|
||||
|
|
@ -477,11 +471,6 @@ Variant EditorDebuggerTree::get_drag_data(const Point2 &p_point) {
|
|||
return vformat("\"%s\"", path);
|
||||
}
|
||||
|
||||
void EditorDebuggerTree::set_new_session() {
|
||||
new_session = true;
|
||||
selection_cache.clear();
|
||||
}
|
||||
|
||||
void EditorDebuggerTree::update_icon_max_width() {
|
||||
add_theme_constant_override("icon_max_width", get_theme_constant("class_icon_size", EditorStringName(Editor)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue