mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-17 05:52:29 -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)
|
void ObjectMapModel::update3D(MapItem *item)
|
||||||
{
|
{
|
||||||
CesiumInterface *cesium = m_gui->cesium();
|
CesiumInterface *cesium = m_gui->cesium();
|
||||||
if (cesium)
|
if (cesium && cesium->isConnected()) // Wait until connected, otherwise initial czml will be lost
|
||||||
{
|
{
|
||||||
ObjectMapItem *objectMapItem = (ObjectMapItem *)item;
|
ObjectMapItem *objectMapItem = (ObjectMapItem *)item;
|
||||||
cesium->update(objectMapItem, isTarget(objectMapItem), isSelected3D(objectMapItem));
|
cesium->update(objectMapItem, isTarget(objectMapItem), isSelected3D(objectMapItem));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user