flat textures are getting added

This commit is contained in:
ahujasid 2025-03-13 15:54:38 +05:30
parent 4113f62b0a
commit 6599b225d3

View File

@ -687,6 +687,7 @@ class BlenderMCPServer:
mapping = nodes.new(type='ShaderNodeMapping')
mapping.location = (-600, 0)
mapping.vector_type = 'TEXTURE' # Changed from default 'POINT' to 'TEXTURE'
links.new(tex_coord.outputs['UV'], mapping.inputs['Vector'])
# Position offset for texture nodes
@ -915,8 +916,7 @@ class BlenderMCPServer:
mapping = nodes.new(type='ShaderNodeMapping')
mapping.location = (-600, 0)
# Set a smaller scale to make the texture more visible
mapping.inputs['Scale'].default_value = (0.5, 0.5, 0.5)
mapping.vector_type = 'TEXTURE' # Changed from default 'POINT' to 'TEXTURE'
links.new(tex_coord.outputs['UV'], mapping.inputs['Vector'])
# Position offset for texture nodes