This commit is contained in:
2025-09-08 15:09:58 +03:00
parent 11b26a8a54
commit a70fb0fa79
4 changed files with 221 additions and 45 deletions

View File

@@ -1265,7 +1265,7 @@ def generate_texture_image(props, width, height):
# ============================================================================
# Get the main text
main_text = props.text if props.text and props.text.strip() else "Hello World"
main_text = props.text if props.text is not None else ""
# Get prepend and append text
prepend_text = props.prepend_text.strip() if props.prepend_text else ""
@@ -1956,7 +1956,7 @@ class TEXT_TEXTURE_Properties(PropertyGroup):
text: StringProperty(
name="Text",
description="Text to render as texture",
default="Hello World",
default="",
maxlen=1024,
update=update_live_preview
)