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