From 47d28ae37b3c1a9cc9f9570382b8a70b2d24c177 Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Thu, 16 Jul 2009 18:51:09 +0000 Subject: [PATCH] prevent spammy build warnings --- pandatool/src/mayaegg/mayaNodeTree.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandatool/src/mayaegg/mayaNodeTree.cxx b/pandatool/src/mayaegg/mayaNodeTree.cxx index da48297ad0..08fb33d319 100755 --- a/pandatool/src/mayaegg/mayaNodeTree.cxx +++ b/pandatool/src/mayaegg/mayaNodeTree.cxx @@ -392,11 +392,13 @@ get_egg_group(MayaNodeDesc *node_desc) { egg_group->add_object_type(object_type); } - if(get_vec3d_attribute(dag_object, "scrollUV", value)) { - egg_group->set_scroll_u(value[0]); - egg_group->set_scroll_v(value[1]); + if(has_attribute(dag_object, "scrollUV")) { + if(get_vec3d_attribute(dag_object, "scrollUV", value)) { + egg_group->set_scroll_u(value[0]); + egg_group->set_scroll_v(value[1]); + } } - + pvector tag_attribute_names; get_tag_attribute_names(dag_object, tag_attribute_names); for (uint ti=0; ti < tag_attribute_names.size(); ti++) {