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:
commit
9b3b327853
4
addon.py
4
addon.py
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user