From 4eec817823d5224df0650bc24dbeacfc7be48e25 Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Mon, 4 Dec 2023 19:12:10 +0100 Subject: [PATCH] Fix: Use correct displacement_method property Update addons to account for changes from[1]. The `displacement_method` is now shared for EEVEE and Cycles. [1] https://projects.blender.org/blender/blender/commit/a001cf9f2b08a67aa3b20f1857eac5c915f5ef33 Pull Request: https://projects.blender.org/blender/blender-addons/pulls/105044 --- io_coat3D/__init__.py | 4 ++-- io_coat3D/tex.py | 2 +- io_coat3D/texVR.py | 2 +- real_snow.py | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 5b5bbeb5..1c9dd73c 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -5,8 +5,8 @@ bl_info = { "name": "3D-Coat Applink", "author": "Kalle-Samuli Riihikoski (haikalle)", - "version": (4, 9, 34), - "blender": (2, 80, 0), + "version": (4, 9, 35), + "blender": (4, 1, 0), "location": "Scene > 3D-Coat Applink", "description": "Transfer data between 3D-Coat/Blender", "warning": "", diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py index 7a12a4cf..eba7d6ac 100644 --- a/io_coat3D/tex.py +++ b/io_coat3D/tex.py @@ -521,7 +521,7 @@ def CreateTextureLine(type, act_material, main_mat, texcoat, coat3D, notegroup, main_material.links.new(applink_tree.outputs[5], disp_node.inputs[0]) main_material.links.new(disp_node.outputs[0], out_mat.inputs[2]) - coatMat.cycles.displacement_method = 'BOTH' + coatMat.displacement_method = 'BOTH' else: if (texcoat['alpha'] != []): diff --git a/io_coat3D/texVR.py b/io_coat3D/texVR.py index 528f458c..95556758 100644 --- a/io_coat3D/texVR.py +++ b/io_coat3D/texVR.py @@ -659,7 +659,7 @@ def CreateTextureLine(type, act_material, main_mat, texcoat, coat3D, notegroup, main_material.links.new(applink_tree.outputs[5], disp_node.inputs[0]) main_material.links.new(disp_node.outputs[0], out_mat.inputs[2]) - coatMat.cycles.displacement_method = 'BOTH' + coatMat.displacement_method = 'BOTH' else: if (texcoat['alpha'] != []): diff --git a/real_snow.py b/real_snow.py index b60a4392..771fec34 100644 --- a/real_snow.py +++ b/real_snow.py @@ -6,8 +6,8 @@ bl_info = { "name": "Real Snow", "description": "Generate snow mesh", "author": "Marco Pavanello, Drew Perttula", - "version": (1, 3, 1), - "blender": (4, 0, 0), + "version": (1, 3, 2), + "blender": (4, 1, 0), "location": "View 3D > Properties Panel", "doc_url": "{BLENDER_MANUAL_URL}/addons/object/real_snow.html", "tracker_url": "https://gitlab.com/marcopavanello/real-snow/-/issues", @@ -341,7 +341,7 @@ def add_material(obj: bpy.types.Object): link.new(mapping.outputs[0], noise3.inputs[0]) link.new(coord.outputs[3], mapping.inputs[0]) # Set displacement and add material - mat.cycles.displacement_method = "DISPLACEMENT" + mat.displacement_method = "DISPLACEMENT" obj.data.materials.append(mat)