sync pose node position only if needed
@@ -380,6 +380,7 @@ impl StateViewer {
.unwrap();
let model_ref = &data_model.absm_definition.nodes[view_ref.model_handle];
let children = model_ref.children();
+ let position = view_ref.actual_local_position();
if view_ref.base.input_sockets.len() != children.len() {
let input_sockets = create_sockets(
@@ -395,6 +396,7 @@ impl StateViewer {
);
}
+ if position != model_ref.position {
send_sync_message(
ui,
WidgetMessage::desired_position(
@@ -404,6 +406,7 @@ impl StateViewer {
),
);
}
+ }
// Force update layout to be able to fetch positions of nodes for transitions.
ui.update(ui.screen_size(), 0.0);
