text fitting pro feature
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user