diff options
Diffstat (limited to 'editor/editor_data.h')
| -rw-r--r-- | editor/editor_data.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/editor/editor_data.h b/editor/editor_data.h index a601b5019d..cbba4d60ad 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -3,7 +3,7 @@ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ -/* http://www.godotengine.org */ +/* https://godotengine.org */ /*************************************************************************/ /* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */ /* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */ @@ -236,10 +236,7 @@ public: T *get_node_editor_data(Node *p_node) { if (!selection.has(p_node)) return NULL; - Object *obj = selection[p_node]; - if (!obj) - return NULL; - return obj->cast_to<T>(); + return Object::cast_to<T>(selection[p_node]); } void add_editor_plugin(Object *p_object); |