Merge pull request #86 from ahujasid/revert-84-main
Revert "Fix for create_object(type="PLANE") when scale given."
This commit is contained in:
commit
e0bfff0c96
4
addon.py
4
addon.py
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user