You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix CurveEdit crash when dragging the curve if it is null
This commit is contained in:
@@ -140,6 +140,9 @@ void CurveEdit::_notification(int p_what) {
|
||||
|
||||
void CurveEdit::gui_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
if (curve.is_null()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<InputEventKey> k = p_event;
|
||||
if (k.is_valid()) {
|
||||
|
||||
Reference in New Issue
Block a user