Browse Source

Properly move string passed to JSON writer

John Senneker 8 năm trước cách đây
mục cha
commit
eca008d5ec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      code/glTF2AssetWriter.inl

+ 1 - 1
code/glTF2AssetWriter.inl

@@ -300,7 +300,7 @@ namespace glTF2 {
         }
 
         if (m.alphaMode != "OPAQUE") {
-            obj.AddMember("alphaMode", m.alphaMode, w.mAl);
+            obj.AddMember("alphaMode", Value(m.alphaMode, w.mAl).Move(), w.mAl);
         }
 
         if (m.doubleSided) {