1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Fix TexturePreview crashing

This commit is contained in:
Lightning_A
2021-07-21 15:10:03 -06:00
parent 843ab4e375
commit 8e90c7e829
2 changed files with 31 additions and 9 deletions

View File

@@ -41,6 +41,12 @@ class TexturePreview : public MarginContainer {
private:
TextureRect *texture_display;
TextureRect *checkerboard;
Label *metadata_label;
protected:
void _notification(int p_what);
public:
TextureRect *get_texture_display();
TexturePreview(Ref<Texture> p_texture, bool p_show_metadata);