Explorar o código

add THREE.TypeFaces = self._typeface_js; to enable access to _typeface_js in different contexts.

Ben Houston %!s(int64=12) %!d(string=hai) anos
pai
achega
3dcf635abd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/extras/FontUtils.js

+ 2 - 1
src/extras/FontUtils.js

@@ -456,4 +456,5 @@ THREE.FontUtils.generateShapes = function( text, parameters ) {
 })(THREE.FontUtils);
 
 // To use the typeface.js face files, hook up the API
-self._typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
+self._typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
+THREE.typeface_js = self._typeface_js;