Fixed NPE.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@142 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -94,10 +94,10 @@ public class BillboardController extends ModelController
|
|||||||
// documentation inherited
|
// documentation inherited
|
||||||
public void update (float time)
|
public void update (float time)
|
||||||
{
|
{
|
||||||
if (!isActive()) {
|
Camera cam = DisplaySystem.getDisplaySystem().getRenderer().getCamera();
|
||||||
|
if (!isActive() || cam == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Camera cam = DisplaySystem.getDisplaySystem().getRenderer().getCamera();
|
|
||||||
if (_alignment.isEyeRelativeZ()) {
|
if (_alignment.isEyeRelativeZ()) {
|
||||||
_target.getWorldTranslation().subtract(cam.getLocation(), _yvec);
|
_target.getWorldTranslation().subtract(cam.getLocation(), _yvec);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user