You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -970,7 +970,7 @@ bool EditorInspectorPluginFontPreview::can_handle(Object *p_object) {
|
||||
|
||||
void EditorInspectorPluginFontPreview::parse_begin(Object *p_object) {
|
||||
Font *fd = Object::cast_to<Font>(p_object);
|
||||
ERR_FAIL_COND(!fd);
|
||||
ERR_FAIL_NULL(fd);
|
||||
|
||||
FontPreview *editor = memnew(FontPreview);
|
||||
editor->set_data(fd);
|
||||
|
||||
Reference in New Issue
Block a user