text fitting pro feature
This commit is contained in:
Binary file not shown.
@@ -12,7 +12,7 @@ from ..utils.constants import (
|
||||
get_feature_availability_text, get_version_info_details,
|
||||
has_image_overlays, has_basic_utilities, has_presets,
|
||||
has_normal_maps, has_batch_processing, has_advanced_utilities,
|
||||
has_advanced_styling
|
||||
has_advanced_styling, has_text_fitting
|
||||
)
|
||||
|
||||
|
||||
@@ -655,8 +655,11 @@ def draw_normal_maps_section(layout, props):
|
||||
info_box.label(text="• Invert changes raised/recessed effect")
|
||||
|
||||
def draw_text_fitting_section(layout, props):
|
||||
pass
|
||||
"""Draw text fitting controls"""
|
||||
# Check if text fitting is available
|
||||
if not has_text_fitting():
|
||||
draw_feature_lock_indicator(layout, 'text_fitting')
|
||||
return
|
||||
# Main toggle for text fitting
|
||||
layout.prop(props, "enable_text_fitting", text="Enable Text Fitting", icon='FULLSCREEN_ENTER')
|
||||
|
||||
@@ -890,22 +893,11 @@ class TEXT_TEXTURE_PT_panel(Panel):
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
pass
|
||||
# DEBUG: Log poll method calls
|
||||
if hasattr(context.space_data, 'tree_type'):
|
||||
pass
|
||||
else:
|
||||
pass
|
||||
|
||||
# More permissive poll condition to ensure panel shows up
|
||||
"""Show panel in Shader Editor only"""
|
||||
if context.space_data.type == 'NODE_EDITOR':
|
||||
pass
|
||||
if hasattr(context.space_data, 'tree_type'):
|
||||
pass
|
||||
result = context.space_data.tree_type == 'ShaderNodeTree'
|
||||
return result
|
||||
return context.space_data.tree_type == 'ShaderNodeTree'
|
||||
else:
|
||||
pass
|
||||
# Allow panel even without tree_type (sometimes happens)
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user