| # | Line 152 | Line 152 | int OOC_LoadPhotons (struct PhotonMap *pmap, FILE *nod | |
|---|---|---|
| 152 | ||
| 153 | if (OOC_LoadOctree(&pmap -> store, nodeFile, OOC_PhotonKey, leafFile)) | |
| 154 | return -1; | |
| 155 | < | |
| 155 | > | |
| 156 | > | #ifdef DEBUG_OOC |
| 157 | > | /* Check octree for consistency */ |
| 158 | > | if (OOC_Check( |
| 159 | > | &pmap -> store, OOC_ROOT(&pmap -> store), |
| 160 | > | pmap -> store.org, pmap -> store.size, 0 |
| 161 | > | )) |
| 162 | > | return -1; |
| 163 | > | #endif |
| 164 | > | |
| 165 | return 0; | |
| 166 | } | |
| 167 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |