mirror of
https://github.com/godotengine/godot.git
synced 2025-02-05 21:41:47 +08:00
Merge pull request #80256 from garychia/stack_var_debug
Avoid retrieving the object ID of a stack variable if it is nil
This commit is contained in:
commit
75c979e48d
@ -232,7 +232,7 @@ void EditorDebuggerInspector::add_stack_variable(const Array &p_array) {
|
||||
PropertyHint h = PROPERTY_HINT_NONE;
|
||||
String hs;
|
||||
|
||||
if (var.var_type == Variant::OBJECT) {
|
||||
if (var.var_type == Variant::OBJECT && v) {
|
||||
v = Object::cast_to<EncodedObjectAsID>(v)->get_object_id();
|
||||
h = PROPERTY_HINT_OBJECT_ID;
|
||||
hs = "Object";
|
||||
|
Loading…
Reference in New Issue
Block a user