Ver Fonte

small fix

Nikolay Suslov há 7 anos atrás
pai
commit
c40bfa7c35
1 ficheiros alterados com 6 adições e 3 exclusões
  1. 6 3
      support/client/lib/vwf/model/aframe.js

+ 6 - 3
support/client/lib/vwf/model/aframe.js

@@ -482,9 +482,12 @@ define(["module", "vwf/model", "vwf/utility"], function (module, model, utility)
                     
                     switch ( propertyName ) { 
 
-                         case "interpolation":
-                               value = aframeObject.getAttribute('interpolation').duration;
-                                    break;
+                        case "interpolation":
+                            var interpolation = aframeObject.getAttribute('interpolation');
+                            if (interpolation !== null && interpolation !== undefined) {
+                                value = interpolation.duration;
+                            }
+                            break;
 
                         case "position":
                                 var pos = aframeObject.getAttribute('position');