Skip to content

Commit c8ba64f

Browse files
committed
Fix shape ID bug
1 parent eb87a33 commit c8ba64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboticstoolbox/backends/Swift/Swift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def add(
263263
elif isinstance(ob, rp.Shape):
264264
shape = ob.to_dict()
265265
if self.display:
266-
id = self._send_socket('shape', shape)
266+
id = int(self._send_socket('shape', shape)) + SHAPE_ADD
267267
else:
268268
id = len(self.shapes) + SHAPE_ADD
269269
self.shapes.append(ob)

0 commit comments

Comments
 (0)