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

Fix TexturePreview crashing

This commit is contained in:
Lightning_A
2021-07-21 15:10:03 -06:00
parent 5de991d57c
commit 8ad00087ce
2 changed files with 32 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<Texture2D> p_texture, bool p_show_metadata);