Преглед изворни кода

Merge pull request #57214 from kleonc/sprite_frames_editor_texture_type_fix

Rémi Verschelde пре 3 година
родитељ
комит
a6fce87d20
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      editor/plugins/sprite_frames_editor_plugin.cpp

+ 1 - 1
editor/plugins/sprite_frames_editor_plugin.cpp

@@ -821,7 +821,7 @@ void SpriteFramesEditor::_update_library(bool p_skip_selector) {
 
 	for (int i = 0; i < frames->get_frame_count(edited_anim); i++) {
 		String name;
-		Ref<Texture> frame = frames->get_frame(edited_anim, i);
+		Ref<Texture2D> frame = frames->get_frame(edited_anim, i);
 
 		if (frame.is_null()) {
 			name = itos(i) + ": " + TTR("(empty)");