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

This commit is contained in:
ahujasid 2025-03-27 18:12:59 +01:00 committed by GitHub
parent 208870dd4d
commit 6e0a202a6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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