forked from mirror/DotRecast
null check
This commit is contained in:
parent
403e611628
commit
21a6b1c5e8
|
@ -27,6 +27,9 @@ namespace DotRecast.Recast.DemoTool.Tools
|
||||||
var geom = _sample.GetInputGeom();
|
var geom = _sample.GetInputGeom();
|
||||||
var navMesh = _sample.GetNavMesh();
|
var navMesh = _sample.GetNavMesh();
|
||||||
|
|
||||||
|
if (null == settings || null == geom || navMesh == null)
|
||||||
|
return;
|
||||||
|
|
||||||
float ts = settings.tileSize * settings.cellSize;
|
float ts = settings.tileSize * settings.cellSize;
|
||||||
|
|
||||||
var bmin = geom.GetMeshBoundsMin();
|
var bmin = geom.GetMeshBoundsMin();
|
||||||
|
@ -44,6 +47,9 @@ namespace DotRecast.Recast.DemoTool.Tools
|
||||||
var geom = _sample.GetInputGeom();
|
var geom = _sample.GetInputGeom();
|
||||||
var navMesh = _sample.GetNavMesh();
|
var navMesh = _sample.GetNavMesh();
|
||||||
|
|
||||||
|
if (null == settings || null == geom || navMesh == null)
|
||||||
|
return;
|
||||||
|
|
||||||
float ts = settings.tileSize * settings.cellSize;
|
float ts = settings.tileSize * settings.cellSize;
|
||||||
|
|
||||||
var bmin = geom.GetMeshBoundsMin();
|
var bmin = geom.GetMeshBoundsMin();
|
||||||
|
|
Loading…
Reference in New Issue