From 6599b225d3bb1a0ef1b6426d5e28e663e7068c1b Mon Sep 17 00:00:00 2001 From: ahujasid Date: Thu, 13 Mar 2025 15:54:38 +0530 Subject: [PATCH] flat textures are getting added --- addon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon.py b/addon.py index 461f7a2..039a8ba 100644 --- a/addon.py +++ b/addon.py @@ -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