OverviewFilesCommitsIssuesDocsReleasesPeers

blender-bridge commits / 81ba738

fix: crash on client connect — don't re-export, just notify
export_scene(get_root()) crashes in editor because root viewport contains internal editor nodes. Instead, just send "scene_exported" to tell the client that SHM data from the initial export is ready. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
81ba7389385f40aaeb2cd07d0e4b6c0287f867c1
by plankatron <fleeky@gmail.com> · 2026-03-03T00:37:02.000Z

Changed files (1) +3 -5

src/blender_bridge.cpp +3 -5
……@@ -586,12 +586,10 @@ void BlenderBridge::_handle_uds_message(const UdsMessage &msg) {
586586 const char *ack = "connected";
587587 _uds.send_to(msg.client_id, ack, (uint32_t)strlen(ack));
588588
589 // Auto re-export scene when a new client connects
589 // Notify the new client that scene data is already in SHM
590590 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));
595593 }
596594 return;
597595 }