Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
17af0104
Unverified
Commit
17af0104
authored
Jun 06, 2020
by
Rémi Verschelde
Committed by
GitHub
Jun 06, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38967 from nekomatata/remote-inspector-builtin-res
Fix dialog spam when inspecting MeshInstance from model file
parents
f54eda12
01802074
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
editor_debugger_inspector.cpp
editor/debugger/editor_debugger_inspector.cpp
+4
-6
editor_debugger_inspector.h
editor/debugger/editor_debugger_inspector.h
+1
-0
No files found.
editor/debugger/editor_debugger_inspector.cpp
View file @
17af0104
...
...
@@ -153,12 +153,9 @@ ObjectID EditorDebuggerInspector::add_object(const Array &p_arr) {
if
(
path
.
find
(
"::"
)
!=
-
1
)
{
// built-in resource
String
base_path
=
path
.
get_slice
(
"::"
,
0
);
if
(
ResourceLoader
::
get_resource_type
(
base_path
)
==
"PackedScene"
)
{
if
(
!
EditorNode
::
get_singleton
()
->
is_scene_open
(
base_path
))
{
EditorNode
::
get_singleton
()
->
load_scene
(
base_path
);
}
}
else
{
EditorNode
::
get_singleton
()
->
load_resource
(
base_path
);
RES
dependency
=
ResourceLoader
::
load
(
base_path
);
if
(
dependency
.
is_valid
())
{
remote_dependencies
.
insert
(
dependency
);
}
}
var
=
ResourceLoader
::
load
(
path
);
...
...
@@ -211,6 +208,7 @@ void EditorDebuggerInspector::clear_cache() {
memdelete
(
E
->
value
());
}
remote_objects
.
clear
();
remote_dependencies
.
clear
();
}
Object
*
EditorDebuggerInspector
::
get_object
(
ObjectID
p_id
)
{
...
...
editor/debugger/editor_debugger_inspector.h
View file @
17af0104
...
...
@@ -69,6 +69,7 @@ class EditorDebuggerInspector : public EditorInspector {
private
:
ObjectID
inspected_object_id
;
Map
<
ObjectID
,
EditorDebuggerRemoteObject
*>
remote_objects
;
Set
<
RES
>
remote_dependencies
;
EditorDebuggerRemoteObject
*
variables
;
void
_object_selected
(
ObjectID
p_object
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment