avoid querying state for node movement, check currently known state instead
This commit is contained in:
parent
ad4ee58ddd
commit
c1a8fada7a
1 changed files with 1 additions and 1 deletions
|
@ -636,7 +636,7 @@ class CanvasNode:
|
|||
|
||||
new_x, new_y = self.canvas.coords(self.id)
|
||||
|
||||
if self.canvas.core.get_session_state() == core_pb2.SessionState.RUNTIME:
|
||||
if self.canvas.core.is_runtime():
|
||||
self.canvas.core.edit_node(self.core_node.id, int(new_x), int(new_y))
|
||||
|
||||
for edge in self.edges:
|
||||
|
|
Loading…
Add table
Reference in a new issue