Dome: fix crash when center = null
This commit is contained in:
parent
26f702cc91
commit
fa324cad8f
@ -266,7 +266,7 @@ public class Dome extends Mesh {
|
|||||||
vars.release();
|
vars.release();
|
||||||
|
|
||||||
// pole
|
// pole
|
||||||
vb.put(center.x).put(center.y + radius).put(center.z);
|
vb.put(this.center.x).put(this.center.y + radius).put(this.center.z);
|
||||||
nb.put(0).put(insideView ? -1 : 1).put(0);
|
nb.put(0).put(insideView ? -1 : 1).put(0);
|
||||||
tb.put(0.5f).put(1.0f);
|
tb.put(0.5f).put(1.0f);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user