From ba97dfddd8a550ac8cf7cf63fce525711a62f641 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 15 Jan 2005 00:35:37 +0000 Subject: [PATCH] more asChar() additions --- pandatool/src/maya/mayaShader.cxx | 2 +- pandatool/src/maya/maya_funcs.cxx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pandatool/src/maya/mayaShader.cxx b/pandatool/src/maya/mayaShader.cxx index defc1a654b..153404dd6a 100644 --- a/pandatool/src/maya/mayaShader.cxx +++ b/pandatool/src/maya/mayaShader.cxx @@ -146,7 +146,7 @@ read_surface_shader(MObject shader) { if (maya_cat.is_spam()) { maya_cat.spam() - << " Reading surface shader " << shader_fn.name() << "\n"; + << " Reading surface shader " << shader_fn.name().asChar() << "\n"; } // First, check for a connection to the color attribute. This could diff --git a/pandatool/src/maya/maya_funcs.cxx b/pandatool/src/maya/maya_funcs.cxx index 31086bda89..bf6e78a572 100644 --- a/pandatool/src/maya/maya_funcs.cxx +++ b/pandatool/src/maya/maya_funcs.cxx @@ -56,7 +56,7 @@ get_maya_plug(MObject &node, const string &attribute_name, MPlug &plug) { MFnAttribute attr_fn(attr, &status); if (!status) { maya_cat.error() - << "Attribute " << attribute_name << " on " << node_fn.name() + << "Attribute " << attribute_name << " on " << node_fn.name().asChar() << " is a " << attr.apiTypeStr() << ", not an Attribute.\n"; return false; } @@ -130,7 +130,7 @@ remove_attribute(MObject &node, const string &attribute_name) { MFnAttribute attr_fn(attr, &status); if (!status) { maya_cat.error() - << "Attribute " << attribute_name << " on " << node_fn.name() + << "Attribute " << attribute_name << " on " << node_fn.name().asChar() << " is a " << attr.apiTypeStr() << ", not an Attribute.\n"; return false; } @@ -140,7 +140,7 @@ remove_attribute(MObject &node, const string &attribute_name) { if (!status) { maya_cat.error() << "Couldn't get class of attribute " << attribute_name << " on " - << node_fn.name() << ".\n"; + << node_fn.name().asChar() << ".\n"; return false; } @@ -148,7 +148,7 @@ remove_attribute(MObject &node, const string &attribute_name) { if (!status) { maya_cat.error() << "Couldn't remove attribute " << attribute_name << " from " - << node_fn.name() << ".\n"; + << node_fn.name().asChar() << ".\n"; return false; } @@ -516,14 +516,14 @@ describe_maya_attribute(MObject &node, const string &attribute_name) { MObject attr = node_fn.attribute(attribute_name.c_str(), &status); if (!status) { maya_cat.error() - << "Object " << node_fn.name() << " does not support attribute " + << "Object " << node_fn.name().asChar() << " does not support attribute " << attribute_name << "\n"; return; } maya_cat.error() << "Attribute " << attribute_name << " on object " - << node_fn.name() << " has type " << attr.apiTypeStr() << "\n"; + << node_fn.name().asChar() << " has type " << attr.apiTypeStr() << "\n"; } string