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