wip
This commit is contained in:
@@ -66,6 +66,12 @@ def create_template_variables(config: Dict, version: str, version_type: str = "f
|
||||
# Get version-specific configuration
|
||||
version_config = exclusions_config['version_configs'][version_type]
|
||||
|
||||
# Define features based on version type
|
||||
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"]
|
||||
|
||||
# Parse Blender version
|
||||
blender_version = config['project']['blender_version_min']
|
||||
blender_parts = blender_version.split('.')
|
||||
@@ -98,6 +104,7 @@ def create_template_variables(config: Dict, version: str, version_type: str = "f
|
||||
'BLENDER_VERSION_MINOR': str(blender_minor),
|
||||
'BLENDER_VERSION_PATCH': str(blender_patch),
|
||||
'DEPENDENCIES': dependencies_str,
|
||||
'ENABLED_FEATURES': json.dumps(enabled_features),
|
||||
'MAX_TEXTURE_SIZE': str(version_config['max_texture_size']),
|
||||
'MAX_CONCURRENT_OPERATIONS': str(version_config['max_concurrent_operations'])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user