Improved the template, shared faces are not rendered

This commit is contained in:
Leonardo
2021-08-25 10:55:05 +02:00
parent 30bb175ea0
commit 488d520b8f
9 changed files with 307 additions and 157 deletions
@@ -534,15 +534,20 @@ public class LodDimension
if (levelPos.detailLevel > LodUtil.REGION_DETAIL_LEVEL)
throw new IllegalArgumentException("getLodFromCoordinates given a level of \"" + levelPos.detailLevel + "\" when \"" + LodUtil.REGION_DETAIL_LEVEL + "\" is the max.");
LodRegion region = getRegion(levelPos);
if (region == null)
try
{
LodRegion region = getRegion(levelPos);
if (region == null)
{
return null;
}
return region.getData(levelPos);
}catch (Exception e){
return null;
}
return region.getData(levelPos);
}