public ODEAssetRequest(ODEMeshWorker pWorker, RequestAssetDelegate provider, ODEPhysRepData pRepData, ILog plog) { m_worker = pWorker; m_log = plog; repData = pRepData; repData.meshState = MeshState.AssetFailed; if (provider == null) { return; } if (repData.assetID == null) { return; } UUID assetID = (UUID)repData.assetID; if (assetID == UUID.Zero) { return; } repData.meshState = MeshState.loadingAsset; provider(assetID, ODEassetReceived); }
public void RegionLoaded() { mesher = m_frameWorkScene.RequestModuleInterface<IMesher>(); if (mesher == null) { m_log.ErrorFormat("[ubOde] No mesher. module disabled"); return; } m_meshWorker = new ODEMeshWorker(this, m_log, mesher, physicsconfig); m_frameWorkScene.PhysicsEnabled = true; }
public ODEAssetRequest(ODEMeshWorker pWorker, RequestAssetDelegate provider, ODEPhysRepData pRepData, ILog plog) { m_worker = pWorker; m_log = plog; repData = pRepData; repData.meshState = MeshState.AssetFailed; if (provider == null) return; if (repData.assetID == null) return; UUID assetID = (UUID) repData.assetID; if (assetID == UUID.Zero) return; repData.meshState = MeshState.loadingAsset; provider(assetID, ODEassetReceived); }