/// <summary> /// Download the latest HAPI_SessionSyncInfo from Houdini Engine /// to update the local state. /// </summary> void DownloadSessionSyncInfo(HEU_SessionBase session, HEU_SessionSyncData syncData) { if (session == null) { session = HEU_SessionManager.GetDefaultSession(); if (session == null || !session.IsSessionValid()) { return; } } HAPI_SessionSyncInfo syncInfo = new HAPI_SessionSyncInfo(); if (session.GetSessionSyncInfo(ref syncInfo)) { if (HEU_HAPIUtility.IsSessionSyncEqual(ref syncInfo, ref syncData._syncInfo)) { Repaint(); } syncData._syncInfo = syncInfo; } }