Selaa lähdekoodia

build on Linux

David Rose 19 vuotta sitten
vanhempi
sitoutus
b9795a77b5
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      pandatool/src/mayaegg/mayaEggLoader.cxx

+ 2 - 1
pandatool/src/mayaegg/mayaEggLoader.cxx

@@ -169,7 +169,8 @@ MayaEggTex *MayaEggLoader::GetTex(const string &name, const string &fn)
     if (status != MStatus::kSuccess) status.perror("Connecting shader");
     if (fn != "") {
       filetex.create("file",&status);
-      filetex.findPlug("fileTextureName").setValue(MString(fn.c_str()));
+      MString fn_str(fn.c_str());
+      filetex.findPlug("fileTextureName").setValue(fn_str);
       dgmod.connect(filetex.findPlug("outColor"),shader.findPlug("color"));
     }
     status = dgmod.doIt();