Fix: Use correct displacement_method property #105044
@ -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": "",
|
||||
|
@ -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'] != []):
|
||||
|
@ -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'] != []):
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user