You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix crashes in *_input functions
This commit is contained in:
@@ -804,6 +804,8 @@ Color GraphNode::get_connection_output_color(int p_idx) {
|
||||
}
|
||||
|
||||
void GraphNode::_gui_input(const Ref<InputEvent> &p_ev) {
|
||||
ERR_FAIL_COND(p_ev.is_null());
|
||||
|
||||
Ref<InputEventMouseButton> mb = p_ev;
|
||||
if (mb.is_valid()) {
|
||||
ERR_FAIL_COND_MSG(get_parent_control() == nullptr, "GraphNode must be the child of a GraphEdit node.");
|
||||
|
||||
Reference in New Issue
Block a user