Procházet zdrojové kódy

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

Ben Houston před 12 roky
rodič
revize
3dcf635abd
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;