| 290 | } |
| 291 | |
| 292 | bool Tile::needsMainThreadLoading( |
| 293 | const GltfModifier* pModifier) const noexcept { |
| 294 | // Only render content needs main thread loading. |
| 295 | if (!this->isRenderContent()) |
| 296 | return false; |
| 297 | |
| 298 | if (this->getState() == TileLoadState::ContentLoaded) |
| 299 | return true; |
| 300 | |
| 301 | if (pModifier && pModifier->needsMainThreadModification(*this)) |
| 302 | return true; |
| 303 | |
| 304 | return false; |
| 305 | } |
| 306 | |
| 307 | void Tile::setParent(Tile* pParent) noexcept { |
| 308 | if (this->getReferenceCount() > 0) { |
no test coverage detected