Merge pull request #84 from DeemosTech/main

Fix for create_object(type="PLANE") when scale given.
This commit is contained in:
ahujasid 2025-03-27 15:42:01 +05:30 committed by GitHub
commit 208870dd4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,6 +369,10 @@ 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,