From 712cf93f35dbe5f640166585fc34bd1ccebf7ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Bj=C3=B8rn=20Greve?= Date: Wed, 15 Nov 2023 14:12:28 +0800 Subject: [PATCH] Updated map import addon to work with both Blender v3 (tested with v3.6.5) and blender v4 (tested with v4.0.0) --- blender_addons/map_import_addon.zip | Bin 9126 -> 9182 bytes blender_addons/map_import_addon/__init__.py | 2 +- blender_addons/map_import_addon/import_map.py | 10 ++++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/blender_addons/map_import_addon.zip b/blender_addons/map_import_addon.zip index daab6e4bb5769d062a0d6fcac87730998a3e93c3..7861b195cb936a8ff60caa5f84e02d477953585a 100644 GIT binary patch delta 8904 zcmV;(A~)TpN8U#pP)h>@6aWAK2mrxuZ&$*B@amZ+&<`>C#_xp3F%LV1K zQm}-daRmNLBx^Cbg=F1vQNo@X3mc|kWz>sBbG+ZTS{a8X$wmz8T%$}tJt)as!z8SJ z{P}GptPLLURChpQxstvxy~%&zW--NcfwIIvkbcPEQwASTDWMAH2266t1;Xc1-e1=H zf2`dpQJxtq(H4g5iC{!BxM;32s`b%_@7r%s1rcr3ftOf9-e1;^YUHHx!i?my4*a`@ zTWERRIB@J4J*7~x2FF`GtLM+0c18q1&0W*wq)_ekG`Xwe$gYp7LDYY1j*=$^KM|~z z>F1WNzP^SdRQ!sgIO0R2x$eW?u{{D~a5!kobjZa~i50XcJ6d(JphGsbD5?w!B^|!H z#qA&*f<&-hb&e>FhB;-@nU36V9=A_By4}(BezWq%N$%IH3>%d}AX+AGKiOh-W3cAd z?^ikr`#wnLxUghO(L!D@Yu^=L%vjfJv}Ct^Tzz?>n;i{rJa$T$)_(cY%L$y>>Et_x z=H&mgWUy5Se9IEAfYLBiN@2N#gnBJ5DNROiv)MTM3s6e~1QY-O00;ogaBo+@e8{%( zAOHZPmy;a=CVy*l+eVV#Q0u|UQlTIc6cLjE z7Y~WDOaJ}4d)|WqNXkiWA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l{(j&iSB9MM0ESgEt}BNDvt_5YuVic0@9|3c@szUQn3e!a zWJ87HMofBIBq*)mWB=&v?DVYvX~<|jNagEP$P{mK$C!Pj6U~KLy2nd(`C$L#;ONyW zvwqKe^9mP?(DtaL%&kp~VMSHLQ$>FiUk=Blc1qesonbHWuBVGAhbbfo_el{9LhxWE zW^qA3#P<5mG*`U+Du$gC`I-7yAaR0COV~8ioH;TTOCx=-`dgUg;LGjlr*A&aMLnNT z2A|v`=CCoGtnZra(SxaKRduSY;-cc+5=%-wUoONyv1r8DmZdgZfQ`j7hZ`pC>SSG= zx8q>|uND)V_Fly4oG*m%;VRq^IUeKyD=Q=eM`v;m>opZIvYovsNb0qPZ03)x)SF%=0(sM zX?eakYKyM}%|Vge!mvgwlhGXFUR|Y-M#)DJr367EB^YP~o)}!5zIncX7QMb8RfsOB zY|QDZ!9$&Oa898gekLD9vdHg}Ha@^gB1$l$h+cb%K%8k7Me@xT&7p1$lY Import > GW Map Browser Map Folder", "description": "Import a Guild Wars Map from a JSON file provided by Guild Wars Map Browser.", diff --git a/blender_addons/map_import_addon/import_map.py b/blender_addons/map_import_addon/import_map.py index 8c013b6..1dec67d 100644 --- a/blender_addons/map_import_addon/import_map.py +++ b/blender_addons/map_import_addon/import_map.py @@ -74,10 +74,16 @@ def create_water_surface(water_level=0.0, terrain_min_x_max_y=(-50000, 50000), t bsdf = nodes.new(type='ShaderNodeBsdfPrincipled') bsdf.inputs['Base Color'].default_value = (0.0, 0.344, 0.55, 1) # Blue color bsdf.inputs['Roughness'].default_value = 0.05 # Sharp reflections - bsdf.inputs['Transmission'].default_value = 0.95 # Transparency bsdf.inputs['IOR'].default_value = 1.333 # Index of Refraction bsdf.inputs['Alpha'].default_value = 0.8 # Transparency - bsdf.inputs['Emission'].default_value = (0.002, 0.004, 0.022, 1) + + print(f'blender version: {bpy.app.version}') + if (4, 0, 0) >= bpy.app.version: + bsdf.inputs['Transmission Weight'].default_value = 0.95 + bsdf.inputs['Emission Color'].default_value = (0.002, 0.004, 0.022, 1) + else: + bsdf.inputs['Transmission'].default_value = 0.95 + bsdf.inputs['Emission'].default_value = (0.002, 0.004, 0.022, 1) # Add Output node and link nodes output_node = nodes.new('ShaderNodeOutputMaterial')