Browse Source

Missing parent during light serialization.

Raanan Weber 9 năm trước cách đây
mục cha
commit
780ef07ae3
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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;