Browse Source

maya: Silence compiler warning

Daniel 5 years ago
parent
commit
216475091e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pandatool/src/maya/maya_funcs.cxx

+ 1 - 1
pandatool/src/maya/maya_funcs.cxx

@@ -519,8 +519,8 @@ describe_compound_attribute(MObject &node) {
   for (size_t i = 0; i < comp_attr.numChildren(); i++) {
   for (size_t i = 0; i < comp_attr.numChildren(); i++) {
     MObject child = comp_attr.child(i, &status);
     MObject child = comp_attr.child(i, &status);
     if (child.apiType() == MFn::kAttribute3Float){
     if (child.apiType() == MFn::kAttribute3Float){
-      LRGBColor color;
       /*
       /*
+      LRGBColor color;
       if (get_vec3_attribute(child, "color", color)) {
       if (get_vec3_attribute(child, "color", color)) {
         maya_cat.info() << "color: " << color << endl;
         maya_cat.info() << "color: " << color << endl;
       }
       }