text fitting pro feature

This commit is contained in:
2025-10-10 14:41:18 +02:00
parent 0edf324335
commit 596f640912
23 changed files with 909 additions and 86 deletions

View File

@@ -70,7 +70,7 @@ def create_template_variables(config: Dict, version: str, version_type: str = "f
if version_type == "free":
enabled_features = ["basic", "preview", "image_overlays", "basic_utilities"]
else: # full version
enabled_features = ["basic", "preview", "image_overlays", "basic_utilities", "advanced_styling", "normal_maps", "presets", "batch_processing", "advanced_utilities"]
enabled_features = ["basic", "preview", "image_overlays", "basic_utilities", "advanced_styling", "normal_maps", "presets", "batch_processing", "advanced_utilities", "text_fitting"]
# Parse Blender version
blender_version = config['project']['blender_version_min']

View File

@@ -1,19 +0,0 @@
schema_version = "1.0.0"
id = "{{PROJECT_ID}}"
version = "{{VERSION}}"
name = "{{PROJECT_NAME}}"
tagline = "{{PROJECT_DESCRIPTION}}"
maintainer = "{{PROJECT_AUTHOR}}"
type = "add-on"
support = "{{PROJECT_SUPPORT}}"
tags = {{PROJECT_TAGS}}
blender_version_min = "{{BLENDER_VERSION_MIN}}"
license = {{PROJECT_LICENSE}}
# Dependencies
[dependencies]
{{DEPENDENCIES}}

View File

@@ -19,7 +19,8 @@ bl_info = {
ENABLED_FEATURES = ["basic", "preview"] if VERSION_TYPE == "free" else [
"basic", "preview", "presets", "normal_maps", "batch_processing",
"image_overlays", "basic_utilities", "advanced_utilities", "advanced_styling",
"stroke_effects", "blur_effects", "shadow_glow_effects", "shader_generation"
"stroke_effects", "blur_effects", "shadow_glow_effects", "shader_generation",
"text_fitting"
]
# Version-specific limits (applied at build time through file exclusions)
@@ -109,6 +110,10 @@ def has_shader_generation():
"""Check if shader generation is available"""
return has_feature("shader_generation")
def has_text_fitting():
"""Check if text fitting is available"""
return has_feature("text_fitting")
def get_max_resolution():
"""Get maximum texture resolution based on version"""
limits = get_version_limits()
@@ -128,7 +133,8 @@ def should_show_feature_lock(feature_name):
'stroke_effects': has_stroke_effects,
'blur_effects': has_blur_effects,
'shadow_glow_effects': has_shadow_glow_effects,
'shader_generation': has_shader_generation
'shader_generation': has_shader_generation,
'text_fitting': has_text_fitting
}
if is_full_version():