Skip to content

Commit 774f01e

Browse files
committed
💥 remove legacy relative from node.set_position
1 parent 3587a7e commit 774f01e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pynode_next/node.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,8 @@ def successor_nodes(self):
187187
node_list.append(e._target)
188188
return node_list
189189

190-
def set_position(self, x, y, relative=True):
191190
"""Sets the node's position. Relative is the only style you can use"""
192-
if not relative:
193-
raise NodePositionError("Cannot call node.set_position() with relative=False")
194-
191+
def set_position(self, x, y):
195192
self._pos = [x, y]
196193

197194
x_norm = core.normalise_to_canvas(x)

0 commit comments

Comments
 (0)