mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Don't set metadata_label font if it doesn't exist
This commit is contained in:
parent
8cddd3b2c0
commit
2846dbf239
2 changed files with 7 additions and 5 deletions
|
|
@ -39,10 +39,10 @@ class TexturePreview : public MarginContainer {
|
|||
GDCLASS(TexturePreview, MarginContainer);
|
||||
|
||||
private:
|
||||
TextureRect *texture_display;
|
||||
TextureRect *texture_display = nullptr;
|
||||
|
||||
TextureRect *checkerboard;
|
||||
Label *metadata_label;
|
||||
TextureRect *checkerboard = nullptr;
|
||||
Label *metadata_label = nullptr;
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue