mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
more asChar() additions
This commit is contained in:
parent
be13907577
commit
ba97dfddd8
@ -146,7 +146,7 @@ read_surface_shader(MObject shader) {
|
|||||||
|
|
||||||
if (maya_cat.is_spam()) {
|
if (maya_cat.is_spam()) {
|
||||||
maya_cat.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
|
// First, check for a connection to the color attribute. This could
|
||||||
|
@ -56,7 +56,7 @@ get_maya_plug(MObject &node, const string &attribute_name, MPlug &plug) {
|
|||||||
MFnAttribute attr_fn(attr, &status);
|
MFnAttribute attr_fn(attr, &status);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
maya_cat.error()
|
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";
|
<< " is a " << attr.apiTypeStr() << ", not an Attribute.\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -130,7 +130,7 @@ remove_attribute(MObject &node, const string &attribute_name) {
|
|||||||
MFnAttribute attr_fn(attr, &status);
|
MFnAttribute attr_fn(attr, &status);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
maya_cat.error()
|
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";
|
<< " is a " << attr.apiTypeStr() << ", not an Attribute.\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -140,7 +140,7 @@ remove_attribute(MObject &node, const string &attribute_name) {
|
|||||||
if (!status) {
|
if (!status) {
|
||||||
maya_cat.error()
|
maya_cat.error()
|
||||||
<< "Couldn't get class of attribute " << attribute_name << " on "
|
<< "Couldn't get class of attribute " << attribute_name << " on "
|
||||||
<< node_fn.name() << ".\n";
|
<< node_fn.name().asChar() << ".\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ remove_attribute(MObject &node, const string &attribute_name) {
|
|||||||
if (!status) {
|
if (!status) {
|
||||||
maya_cat.error()
|
maya_cat.error()
|
||||||
<< "Couldn't remove attribute " << attribute_name << " from "
|
<< "Couldn't remove attribute " << attribute_name << " from "
|
||||||
<< node_fn.name() << ".\n";
|
<< node_fn.name().asChar() << ".\n";
|
||||||
return false;
|
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);
|
MObject attr = node_fn.attribute(attribute_name.c_str(), &status);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
maya_cat.error()
|
maya_cat.error()
|
||||||
<< "Object " << node_fn.name() << " does not support attribute "
|
<< "Object " << node_fn.name().asChar() << " does not support attribute "
|
||||||
<< attribute_name << "\n";
|
<< attribute_name << "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
maya_cat.error()
|
maya_cat.error()
|
||||||
<< "Attribute " << attribute_name << " on object "
|
<< "Attribute " << attribute_name << " on object "
|
||||||
<< node_fn.name() << " has type " << attr.apiTypeStr() << "\n";
|
<< node_fn.name().asChar() << " has type " << attr.apiTypeStr() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
string
|
string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user