From b9795a77b53c9e313124824daf7d6b835a5e7f41 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 7 Jun 2006 16:45:09 +0000 Subject: [PATCH] build on Linux --- pandatool/src/mayaegg/mayaEggLoader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandatool/src/mayaegg/mayaEggLoader.cxx b/pandatool/src/mayaegg/mayaEggLoader.cxx index b9f059022e..7ad8867599 100755 --- a/pandatool/src/mayaegg/mayaEggLoader.cxx +++ b/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();