From 8a7f5ee51940879b2aa6a7b7c3f3b26dfdaf6d07 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Thu, 30 Jan 2025 13:21:20 +0000 Subject: [PATCH 1/2] Update leenkx/blender/lnx/props_ui.py --- leenkx/blender/lnx/props_ui.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/leenkx/blender/lnx/props_ui.py b/leenkx/blender/lnx/props_ui.py index de99d93..7825268 100644 --- a/leenkx/blender/lnx/props_ui.py +++ b/leenkx/blender/lnx/props_ui.py @@ -761,8 +761,10 @@ class LNX_PT_LeenkxPlayerPanel(bpy.types.Panel): else: if bpy.app.version < (3, 0, 0): row.operator("lnx.stop", icon="CANCEL", text="") - else: + elif bpy.app.version > (3, 0, 0) and bpy.app.version < (4, 3, 2): row.operator("lnx.stop", icon="SEQUENCE_COLOR_01", text="") + else: + row.operator("lnx.stop", icon="EVENT_MEDIASTOP", text="") row.operator("lnx.clean_menu", icon="BRUSH_DATA") col = layout.box().column() @@ -1438,8 +1440,10 @@ class LNX_PT_TopbarPanel(bpy.types.Panel): else: if bpy.app.version < (3, 0, 0): row.operator("lnx.stop", icon="CANCEL", text="") - else: + elif bpy.app.version > (3, 0, 0) and bpy.app.version < (4, 3, 2): row.operator("lnx.stop", icon="SEQUENCE_COLOR_01", text="") + else: + row.operator("lnx.stop", icon="EVENT_MEDIASTOP", text="") row.operator("lnx.clean_menu", icon="BRUSH_DATA", text="") row.operator("lnx.open_editor", icon="DESKTOP", text="") row.operator("lnx.open_project_folder", icon="FILE_FOLDER", text="") From 4c6df16aa752aecbb0d336b33ecebd66f6c3c0af Mon Sep 17 00:00:00 2001 From: Onek8 Date: Thu, 30 Jan 2025 13:39:55 +0000 Subject: [PATCH 2/2] Update leenkx/blender/lnx/write_data.py --- leenkx/blender/lnx/write_data.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/leenkx/blender/lnx/write_data.py b/leenkx/blender/lnx/write_data.py index dcc0c83..773dbee 100644 --- a/leenkx/blender/lnx/write_data.py +++ b/leenkx/blender/lnx/write_data.py @@ -490,7 +490,10 @@ class Main { public static inline var voxelgiVoxelSize = """ + str(round(rpdat.lnx_voxelgi_size * 100) / 100) + """;""") if rpdat.rp_bloom: - f.write(f"public static var bloomRadius = {bpy.context.scene.eevee.bloom_radius if rpdat.lnx_bloom_follow_blender else rpdat.lnx_bloom_radius};") + if bpy.app.version <= (4, 2, 4): + f.write(f"public static var bloomRadius = {bpy.context.scene.eevee.bloom_radius if rpdat.lnx_bloom_follow_blender else rpdat.lnx_bloom_radius};") + else: + f.write(f"public static var bloomRadius = {rpdat.lnx_bloom_radius};") if rpdat.lnx_rp_resolution == 'Custom': f.write(""" @@ -664,10 +667,14 @@ const float ssgiStrength = """ + str(round(rpdat.lnx_ssgi_strength * 100) / 100) if rpdat.rp_bloom: follow_blender = rpdat.lnx_bloom_follow_blender eevee_settings = bpy.context.scene.eevee - - threshold = eevee_settings.bloom_threshold if follow_blender else rpdat.lnx_bloom_threshold - strength = eevee_settings.bloom_intensity if follow_blender else rpdat.lnx_bloom_strength - knee = eevee_settings.bloom_knee if follow_blender else rpdat.lnx_bloom_knee + if bpy.app.version <= (4, 2, 4): + threshold = eevee_settings.bloom_threshold if follow_blender else rpdat.lnx_bloom_threshold + strength = eevee_settings.bloom_intensity if follow_blender else rpdat.lnx_bloom_strength + knee = eevee_settings.bloom_knee if follow_blender else rpdat.lnx_bloom_knee + else: + threshold = rpdat.lnx_bloom_threshold + strength = rpdat.lnx_bloom_strength + knee = rpdat.lnx_bloom_knee f.write( """const float bloomThreshold = """ + str(round(threshold * 100) / 100) + """;