浏览代码

check Display Colors

David Rose 13 年之前
父节点
当前提交
0c85073625
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      pandatool/src/mayaegg/mayaEggLoader.cxx

+ 5 - 0
pandatool/src/mayaegg/mayaEggLoader.cxx

@@ -1727,6 +1727,11 @@ bool MayaEggLoader::ConvertEggData(EggData *data, bool merge, bool model, bool a
       }
     }
 
+    // Check the "Display Colors" box by default, so that vertex
+    // colors (if any) will be visible.
+    MPlug displayColors = mfn.findPlug("displayColors");
+    displayColors.setBool(true);
+
     mesh->_shapeNode = mfn.object();
     mfn.getPath(mesh->_shape_dag_path);
     mesh->ConnectTextures();