Sfoglia il codice sorgente

Properly move string passed to JSON writer

John Senneker 8 anni fa
parent
commit
eca008d5ec
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {