mirror of
https://github.com/FMS-Cat/condition.git
synced 2025-08-20 04:11:41 +02:00
size: more intense process.env.DEV
This commit is contained in:
@@ -45,11 +45,11 @@ export abstract class Camera extends Component {
|
||||
const { renderTarget, scene } = this;
|
||||
|
||||
if ( !renderTarget ) {
|
||||
throw new Error( process.env.DEV && 'You must assign a renderTarget to the Camera' );
|
||||
throw process.env.DEV && new Error( 'You must assign a renderTarget to the Camera' );
|
||||
}
|
||||
|
||||
if ( !scene ) {
|
||||
throw new Error( process.env.DEV && 'You must assign a scene to the Camera' );
|
||||
throw process.env.DEV && new Error( 'You must assign a scene to the Camera' );
|
||||
}
|
||||
|
||||
const viewMatrix = event.globalTransform.matrix.inverse!;
|
||||
|
@@ -56,7 +56,7 @@ export class CubemapCamera extends Camera {
|
||||
const { renderTarget } = this;
|
||||
|
||||
if ( !renderTarget ) {
|
||||
throw new Error( process.env.DEV && 'You must assign a renderTarget to the Camera' );
|
||||
throw process.env.DEV && new Error( 'You must assign a renderTarget to the Camera' );
|
||||
}
|
||||
|
||||
for ( let i = 0; i < 6; i ++ ) {
|
||||
|
Reference in New Issue
Block a user