updated changelog, modified edit node to edit icon/canvas before node position, in case it gets broadcasted out
This commit is contained in:
parent
4dad3f5e9f
commit
d43d854314
2 changed files with 22 additions and 8 deletions
|
@ -576,17 +576,10 @@ class Session:
|
|||
:return: nothing
|
||||
:raises core.CoreError: when node to update does not exist
|
||||
"""
|
||||
# get node to update
|
||||
node = self.get_node(node_id, NodeBase)
|
||||
|
||||
# set node position and broadcast it
|
||||
self.set_node_position(node, options)
|
||||
|
||||
# update attributes
|
||||
node.canvas = options.canvas
|
||||
node.icon = options.icon
|
||||
|
||||
# provide edits to sdt
|
||||
self.set_node_position(node, options)
|
||||
self.sdt.edit_node(node, options.lon, options.lat, options.alt)
|
||||
|
||||
def set_node_position(self, node: NodeBase, options: NodeOptions) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue