소스 검색

Missing parent during light serialization.

Raanan Weber 9 년 전
부모
커밋
780ef07ae3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/Lights/babylon.light.ts

+ 5 - 0
src/Lights/babylon.light.ts

@@ -122,6 +122,11 @@
             if (this.intensity) {
                 serializationObject.intensity = this.intensity;
             }
+            
+            // Parent
+            if (this.parent) {
+                serializationObject.parentId = this.parent.id;
+            }
 
             serializationObject.range = this.range;