Make scale applying more specific

This commit is contained in:
ElgoogUdiab 2025-03-27 15:26:47 +08:00
parent 4472d6f724
commit 44f33ac021

View File

@ -370,6 +370,7 @@ class BlenderMCPServer:
obj.data.name = name obj.data.name = name
# Patch for PLANE: scale don't work with bpy.ops.mesh.primitive_plane_add() # Patch for PLANE: scale don't work with bpy.ops.mesh.primitive_plane_add()
if type in {"PLANE"}:
obj.scale = scale obj.scale = scale
# Return the object info # Return the object info