mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 16:20:53 +00:00
SpriteFramesEditor Fix crash when selecting non-Texture file for splitting
This commit is contained in:
parent
be50fe7243
commit
87b4db9e63
@ -285,7 +285,7 @@ void SpriteFramesEditor::_sheet_spin_changed(double) {
|
||||
}
|
||||
|
||||
void SpriteFramesEditor::_prepare_sprite_sheet(const String &p_file) {
|
||||
Ref<Resource> texture = ResourceLoader::load(p_file);
|
||||
Ref<Texture> texture = ResourceLoader::load(p_file);
|
||||
if (!texture.is_valid()) {
|
||||
EditorNode::get_singleton()->show_warning(TTR("Unable to load images"));
|
||||
ERR_FAIL_COND(!texture.is_valid());
|
||||
|
Loading…
Reference in New Issue
Block a user