| … | … | @@ -586,12 +586,10 @@ void BlenderBridge::_handle_uds_message(const UdsMessage &msg) { |
| 586 | 586 | const char *ack = "connected"; |
| 587 | 587 | _uds.send_to(msg.client_id, ack, (uint32_t)strlen(ack)); |
| 588 | 588 | |
| 589 | // Auto re-export scene when a new client connects | |
| 589 | // Notify the new client that scene data is already in SHM | |
| 590 | 590 | if (!_tracked_objects.empty()) { |
| 591 | Node *root = get_tree() ? get_tree()->get_root() : nullptr; | |
| 592 | if (root) { | |
| 593 | export_scene(root); | |
| 594 | } | |
| 591 | const char *notify = "scene_exported"; | |
| 592 | _uds.send_to(msg.client_id, notify, (uint32_t)strlen(notify)); | |
| 595 | 593 | } |
| 596 | 594 | return; |
| 597 | 595 | } |