summaryrefslogtreecommitdiffstats
path: root/editor/plugins/curve_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-16 21:24:53 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-16 21:24:53 +0200
commitcdef53df1ed3f37cb77a69df4530bc766f2f1617 (patch)
treec55e2705e26eab60501e3d3499f6676975f5c5de /editor/plugins/curve_editor_plugin.cpp
parent691eecd9b61994f0086a9aedfc5e5f058304aadf (diff)
parent75ee58fd0476360c67375cf403f06644a0aa117e (diff)
downloadredot-engine-cdef53df1ed3f37cb77a69df4530bc766f2f1617.tar.gz
Merge pull request #81705 from AThousandShips/null_check_editor
[Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'editor/plugins/curve_editor_plugin.cpp')
-rw-r--r--editor/plugins/curve_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp
index 468278bd27..1d3ffc0e3a 100644
--- a/editor/plugins/curve_editor_plugin.cpp
+++ b/editor/plugins/curve_editor_plugin.cpp
@@ -1041,7 +1041,7 @@ bool EditorInspectorPluginCurve::can_handle(Object *p_object) {
void EditorInspectorPluginCurve::parse_begin(Object *p_object) {
Curve *curve = Object::cast_to<Curve>(p_object);
- ERR_FAIL_COND(!curve);
+ ERR_FAIL_NULL(curve);
Ref<Curve> c(curve);
CurveEditor *editor = memnew(CurveEditor);