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
|
||||
public void update (float time)
|
||||
{
|
||||
if (!isActive()) {
|
||||
Camera cam = DisplaySystem.getDisplaySystem().getRenderer().getCamera();
|
||||
if (!isActive() || cam == null) {
|
||||
return;
|
||||
}
|
||||
Camera cam = DisplaySystem.getDisplaySystem().getRenderer().getCamera();
|
||||
if (_alignment.isEyeRelativeZ()) {
|
||||
_target.getWorldTranslation().subtract(cam.getLocation(), _yvec);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user