| 616 | } |
| 617 | |
| 618 | bool blTerrainProxy::getPersistInfo(PersistInfo::PersistChunk * info) |
| 619 | { |
| 620 | if(!Parent::getPersistInfo(info)) |
| 621 | return(false); |
| 622 | |
| 623 | blTerrainChunk * chunk = dynamic_cast<blTerrainChunk*>(info); |
| 624 | AssertFatal(chunk, "blTerrainProxy::getPersistInfo: invalid info chunk!"); |
| 625 | |
| 626 | TerrainBlock * terrain = getObject(); |
| 627 | if(!terrain || !terrain->getLightMap()) |
| 628 | return(false); |
| 629 | |
| 630 | if(chunk->mLightmap) delete chunk->mLightmap; |
| 631 | |
| 632 | chunk->mLightmap = new GBitmap(*terrain->getLightMap()); |
| 633 | |
| 634 | return(true); |
| 635 | } |
| 636 | |
| 637 | bool blTerrainProxy::supportsShadowVolume() |
| 638 | { |
nothing calls this directly
no test coverage detected