You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user