mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-16 05:22:54 -04:00
Wait until connected before sending initial CZML
This commit is contained in:
parent
cca47bbb50
commit
55de2c724f
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user