Skip to content

Commit

Permalink
"Texture displace" node hide input "Texture Matrix" forever.
Browse files Browse the repository at this point in the history
fix #4606
  • Loading branch information
satabol committed Oct 6, 2022
1 parent b3ad072 commit e4771f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/transforms/texture_displace_mk2.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ class SvDisplaceNodeMk2(SverchCustomTreeNode, bpy.types.Node):

def change_mode(self, context):
inputs = self.inputs
if self.tex_coord_type == 'Texture Matrix':
if self.tex_coord_type == 'Texture_Matrix':
if 'Texture Matrix' not in inputs:
if 'UV coords' in inputs:
inputs[4].hide_safe = False
inputs[4].replace_socket('SvMatrixSocket', 'Texture Matrix')

elif self.tex_coord_type == 'Mesh Matrix':
elif self.tex_coord_type == 'Mesh_Matrix':
if 'Mesh Matrix' not in inputs:
if 'UV coords' in inputs:
inputs[4].hide_safe = False
Expand Down

0 comments on commit e4771f8

Please sign in to comment.