1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 22:14:45 -04:00

Wait until connected before sending initial CZML

This commit is contained in:
srcejon
2025-06-09 20:06:58 +01:00
parent cca47bbb50
commit 55de2c724f
+1 -1
View File
@@ -428,7 +428,7 @@ MapItem *ObjectMapModel::newMapItem(const QObject *sourcePipe, const QString &gr
void ObjectMapModel::update3D(MapItem *item)
{
CesiumInterface *cesium = m_gui->cesium();
if (cesium)
if (cesium && cesium->isConnected()) // Wait until connected, otherwise initial czml will be lost
{
ObjectMapItem *objectMapItem = (ObjectMapItem *)item;
cesium->update(objectMapItem, isTarget(objectMapItem), isSelected3D(objectMapItem));