Browse Source

turns out shaders can have more than 20 inputs, so turning off the exit case for now

Asad M. Zaman 20 years ago
parent
commit
b3d54ed848
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pandatool/src/maya/mayaShaderColorDef.cxx

+ 2 - 0
pandatool/src/maya/mayaShaderColorDef.cxx

@@ -335,11 +335,13 @@ read_surface_color(MayaShader *shader, MObject color, bool trans) {
       int li = elementPlug.logicalIndex();
       maya_cat.spam() << "li: " << li << endl;
       if (li > -1) {
+        /*
         if (li > 20) {
           maya_cat.error()
             << "unusual blendmode :" << li << " for :" << layered_fn.name() << endl;
           exit(1);
         }
+        */
         logicalIdx = li;
         break;
       }