Fix: Use correct displacement_method property #105044

Merged
Jesse Yurkovich merged 1 commits from deadpin/blender-addons:displace-method into main 2023-12-04 19:12:12 +01:00
4 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@
bl_info = { bl_info = {
"name": "3D-Coat Applink", "name": "3D-Coat Applink",
"author": "Kalle-Samuli Riihikoski (haikalle)", "author": "Kalle-Samuli Riihikoski (haikalle)",
"version": (4, 9, 34), "version": (4, 9, 35),
"blender": (2, 80, 0), "blender": (4, 1, 0),
"location": "Scene > 3D-Coat Applink", "location": "Scene > 3D-Coat Applink",
"description": "Transfer data between 3D-Coat/Blender", "description": "Transfer data between 3D-Coat/Blender",
"warning": "", "warning": "",

View File

@ -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(applink_tree.outputs[5], disp_node.inputs[0])
main_material.links.new(disp_node.outputs[0], out_mat.inputs[2]) main_material.links.new(disp_node.outputs[0], out_mat.inputs[2])
coatMat.cycles.displacement_method = 'BOTH' coatMat.displacement_method = 'BOTH'
else: else:
if (texcoat['alpha'] != []): if (texcoat['alpha'] != []):

View File

@ -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(applink_tree.outputs[5], disp_node.inputs[0])
main_material.links.new(disp_node.outputs[0], out_mat.inputs[2]) main_material.links.new(disp_node.outputs[0], out_mat.inputs[2])
coatMat.cycles.displacement_method = 'BOTH' coatMat.displacement_method = 'BOTH'
else: else:
if (texcoat['alpha'] != []): if (texcoat['alpha'] != []):

View File

@ -6,8 +6,8 @@ bl_info = {
"name": "Real Snow", "name": "Real Snow",
"description": "Generate snow mesh", "description": "Generate snow mesh",
"author": "Marco Pavanello, Drew Perttula", "author": "Marco Pavanello, Drew Perttula",
"version": (1, 3, 1), "version": (1, 3, 2),
"blender": (4, 0, 0), "blender": (4, 1, 0),
"location": "View 3D > Properties Panel", "location": "View 3D > Properties Panel",
"doc_url": "{BLENDER_MANUAL_URL}/addons/object/real_snow.html", "doc_url": "{BLENDER_MANUAL_URL}/addons/object/real_snow.html",
"tracker_url": "https://gitlab.com/marcopavanello/real-snow/-/issues", "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(mapping.outputs[0], noise3.inputs[0])
link.new(coord.outputs[3], mapping.inputs[0]) link.new(coord.outputs[3], mapping.inputs[0])
# Set displacement and add material # Set displacement and add material
mat.cycles.displacement_method = "DISPLACEMENT" mat.displacement_method = "DISPLACEMENT"
obj.data.materials.append(mat) obj.data.materials.append(mat)