Explorar el Código

fix text proto

Nikolay Suslov hace 4 años
padre
commit
ae569690d4
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      public/defaults/proxy/vwf.example.com/aframe/ascene.js

+ 5 - 1
public/defaults/proxy/vwf.example.com/aframe/ascene.js

@@ -184,7 +184,7 @@ this.textProto = function () {
             "value": "Text",
             "side": "double",
             "class": "clickable",
-            "font": "/vwf/model/aframe/fonts/custom-msdf.json",
+            //"font": "/vwf/model/aframe/fonts/custom-msdf.json",
             "negate": false
         },
         children: {
@@ -614,6 +614,10 @@ this.createPrimitive = function (type, params, name, node, avatar) {
         }
         this.children.create(nodeName, newNode, function( child ) {
             if (avatar) child.lookAt(self.children[avatar].worldPosition());
+            
+            if (type == "text"){
+                child.properties.font = "/vwf/model/aframe/fonts/custom-msdf.json"
+            }
           });
     }