|
@@ -75,7 +75,7 @@ class Mesh extends Object {
|
|
}
|
|
}
|
|
|
|
|
|
function calcScreenRatio( ctx : RenderContext ) {
|
|
function calcScreenRatio( ctx : RenderContext ) {
|
|
- if ( primitive.lodCount() == 1 )
|
|
|
|
|
|
+ if ( primitive == null || primitive.lodCount() == 1 )
|
|
return;
|
|
return;
|
|
|
|
|
|
if ( ctx.forcedScreenRatio >= 0.0 ) {
|
|
if ( ctx.forcedScreenRatio >= 0.0 ) {
|