From ecc4317919887093d3e5b3111b8d93519e649de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Br=C3=BCckner?= Date: Tue, 7 Sep 2021 22:19:12 +0200 Subject: [PATCH] Fix realtime postprocess: use compositor defines also for non-compositor pass shaders --- blender/arm/make.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/blender/arm/make.py b/blender/arm/make.py index b21770aa..c1a377f2 100755 --- a/blender/arm/make.py +++ b/blender/arm/make.py @@ -226,10 +226,7 @@ def export_data(fp, sdk_path): if not os.path.exists(raw_shaders_path + '/' + ref): continue assets.shader_passes_assets[ref] = [] - if ref.startswith('compositor_pass'): - compile_shader_pass(res, raw_shaders_path, ref, defs + cdefs, make_variants=has_config) - else: - compile_shader_pass(res, raw_shaders_path, ref, defs, make_variants=has_config) + compile_shader_pass(res, raw_shaders_path, ref, defs + cdefs, make_variants=has_config) # Workaround to also export non-material world shaders res['shader_datas'] += make_world.shader_datas