From 3d3c2e7b7c70a190cd82bd2662c8c8eb0ceb5d25 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 31 Dec 2025 20:00:09 +0100 Subject: [PATCH] text: Give default font a default name This is mostly so that the texture gets a name other than "_0" --- panda/src/text/textProperties.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/text/textProperties.cxx b/panda/src/text/textProperties.cxx index 1cbc8ddb9a..a61ba92b96 100644 --- a/panda/src/text/textProperties.cxx +++ b/panda/src/text/textProperties.cxx @@ -489,4 +489,8 @@ load_default_font() { #endif // HAVE_FREETYPE #endif // COMPILE_IN_DEFAULT_FONT + + if (_default_font != nullptr && !_default_font->has_name()) { + _default_font->set_name("default_font"); + } }