|
@@ -1776,15 +1776,17 @@ make_polyset(MayaNodeDesc *node_desc, const MDagPath &dag_path,
|
|
|
if (color_def->has_projection()) {
|
|
if (color_def->has_projection()) {
|
|
|
// If the shader has a projection, use it instead of the
|
|
// If the shader has a projection, use it instead of the
|
|
|
// polygon's built-in UV's.
|
|
// polygon's built-in UV's.
|
|
|
- vert.set_uv(tex_p->get_uv_name(),color_def->project_uv(p3d, centroid));
|
|
|
|
|
|
|
+ vert.set_uv(tex_p->get_uv_name(),
|
|
|
|
|
+ color_def->project_uv(p3d, centroid));
|
|
|
} else {
|
|
} else {
|
|
|
// Get the UV's from the polygon.
|
|
// Get the UV's from the polygon.
|
|
|
float2 uvs;
|
|
float2 uvs;
|
|
|
- status = pi.getUV(i, uvs, &MString(uv_name.c_str()));
|
|
|
|
|
|
|
+ MString uv_mstring(uv_name.c_str());
|
|
|
|
|
+ status = pi.getUV(i, uvs, &uv_mstring);
|
|
|
if (!status) {
|
|
if (!status) {
|
|
|
status.perror("MItMeshPolygon::getUV");
|
|
status.perror("MItMeshPolygon::getUV");
|
|
|
} else {
|
|
} else {
|
|
|
- vert.set_uv(tex_p->get_uv_name(),TexCoordd(uvs[0], uvs[1]));
|
|
|
|
|
|
|
+ vert.set_uv(tex_p->get_uv_name(), TexCoordd(uvs[0], uvs[1]));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|