mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-08 02:59:02 +03:00
fix: Add missing rotation parameter to drawing_update MCP tool
Parameter was defined in create_drawing but omitted from update_drawing, causing rotation changes to be silently ignored.
This commit is contained in:
parent
66975f54f7
commit
4266583922
@ -950,10 +950,11 @@ async def drawing_update(
|
||||
x: Annotated[int | None, Field(description="New X coordinate")] = None,
|
||||
y: Annotated[int | None, Field(description="New Y coordinate")] = None,
|
||||
z: Annotated[int | None, Field(description="New Z layer")] = None,
|
||||
rotation: Annotated[int | None, Field(description="Rotation angle in degrees, -359 to 359")] = None,
|
||||
) -> list[dict[str, Any]]:
|
||||
"""Update a drawing's properties (svg, position, lock state, etc.)."""
|
||||
"""Update a drawing's properties (svg, position, lock state, rotation, etc.)."""
|
||||
params = {"project_id": project_id, "drawing_id": drawing_id}
|
||||
local_vars = {"svg": svg, "locked": locked, "x": x, "y": y, "z": z}
|
||||
local_vars = {"svg": svg, "locked": locked, "x": x, "y": y, "z": z, "rotation": rotation}
|
||||
for key, val in local_vars.items():
|
||||
if val is not None:
|
||||
params[key] = val
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user