Explorar o código

Properly move string passed to JSON writer

John Senneker %!s(int64=8) %!d(string=hai) anos
pai
achega
eca008d5ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {