Moises Jpelaez: 5.2 Updates
This commit is contained in:
@ -7,7 +7,7 @@ bl_info = {
|
||||
"description": "Full Stack SDK",
|
||||
"author": "Leenkx.com",
|
||||
"version": (2026, 5, 0),
|
||||
"blender": (4, 5, 0),
|
||||
"blender": (5, 2, 0),
|
||||
"doc_url": "https://leenkx.com/",
|
||||
"tracker_url": "https://leenkx.com/support"
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
import importlib
|
||||
import inspect
|
||||
import pkgutil
|
||||
|
||||
@ -182,12 +182,8 @@ if bpy.app.version > (4, 1, 0):
|
||||
pass
|
||||
if (node.inputs['Emission Strength'].is_linked or node.inputs['Emission Strength'].default_value != 0.0)\
|
||||
and (node.inputs['Emission Color'].is_linked or not mat_utils.equals_color_socket(node.inputs['Emission Color'], (0.0, 0.0, 0.0), comp_alpha=False)):
|
||||
if bpy.app.version >= (4, 4, 0):
|
||||
emission_col = c.parse_vector_input(node.inputs[27])
|
||||
emission_strength = c.parse_value_input(node.inputs[28])
|
||||
else:
|
||||
emission_col = c.parse_vector_input(node.inputs[26])
|
||||
emission_strength = c.parse_value_input(node.inputs[27])
|
||||
emission_col = c.parse_vector_input(node.inputs['Emission Color'])
|
||||
emission_strength = c.parse_value_input(node.inputs['Emission Strength'])
|
||||
state.out_emission_col = '({0} * {1})'.format(emission_col, emission_strength)
|
||||
mat_state.emission_type = mat_state.EmissionType.SHADED
|
||||
else:
|
||||
|
||||
@ -875,7 +875,7 @@ def check_blender_version(op: bpy.types.Operator):
|
||||
"""Check whether the Blender version is supported by Leenkx,
|
||||
if not, report in UI.
|
||||
"""
|
||||
if bpy.app.version[:2] not in [(4, 5), (4, 4), (4, 2), (3, 6), (3, 3)]:
|
||||
if bpy.app.version[:2] not in [(5, 2), (4, 5), (4, 4), (4, 2), (3, 6), (3, 3)]:
|
||||
op.report({'INFO'}, 'INFO: For Leenkx to work correctly, use a Blender LTS version')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user