Merge pull request #87 from ahujasid/revert-86-revert-84-main

Revert "Revert "Fix for create_object(type="PLANE") when scale given.""
This commit is contained in:
ahujasid 2025-03-27 20:29:29 +01:00 committed by GitHub
commit 9b3b327853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,6 +369,10 @@ class BlenderMCPServer:
if obj.data:
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
result = {
"name": obj.name,