소스 검색

small fix

Nikolay Suslov 8 년 전
부모
커밋
c40bfa7c35
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  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');