diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-16 21:24:53 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-16 21:24:53 +0200 |
commit | cdef53df1ed3f37cb77a69df4530bc766f2f1617 (patch) | |
tree | c55e2705e26eab60501e3d3499f6676975f5c5de /editor/plugins/texture_editor_plugin.cpp | |
parent | 691eecd9b61994f0086a9aedfc5e5f058304aadf (diff) | |
parent | 75ee58fd0476360c67375cf403f06644a0aa117e (diff) | |
download | redot-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/texture_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/texture_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/texture_editor_plugin.cpp b/editor/plugins/texture_editor_plugin.cpp index 74a03c1e97..ec5785e605 100644 --- a/editor/plugins/texture_editor_plugin.cpp +++ b/editor/plugins/texture_editor_plugin.cpp @@ -167,7 +167,7 @@ void EditorInspectorPluginTexture::parse_begin(Object *p_object) { Ref<Image> image(Object::cast_to<Image>(p_object)); texture = ImageTexture::create_from_image(image); - ERR_FAIL_COND_MSG(texture == nullptr, "Failed to create the texture from an invalid image."); + ERR_FAIL_NULL_MSG(texture, "Failed to create the texture from an invalid image."); } add_custom_control(memnew(TexturePreview(texture, true))); |