Browse Source

Fix TextBufferGeometry check font bug

06wj 8 years ago
parent
commit
e83d43a0b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/geometries/TextGeometry.js

+ 1 - 1
src/geometries/TextGeometry.js

@@ -49,7 +49,7 @@ function TextBufferGeometry( text, parameters ) {
 
 	var font = parameters.font;
 
-	if ( ( font && font.isFont ) === false ) {
+	if ( ! ( font && font.isFont ) ) {
 
 		console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' );
 		return new Geometry();