Fix for create_object(type="PLANE") when scale given.

This commit is contained in:
ElgoogUdiab 2025-03-27 15:22:13 +08:00
parent eec042e60b
commit 4472d6f724

View File

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