瀏覽代碼

Fixed a minor version incompatibility

Josh Yelon 17 年之前
父節點
當前提交
9b9c9f6a38
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pandatool/src/mayaegg/mayaEggLoader.cxx

+ 2 - 2
pandatool/src/mayaegg/mayaEggLoader.cxx

@@ -1578,7 +1578,7 @@ bool MayaEggLoader::ConvertEggData(EggData *data, bool merge, bool model, bool a
     // [gjeon] add eggFlag attributes it any exists
     // [gjeon] add eggFlag attributes it any exists
     for (unsigned i = 0; i < mesh->_eggObjectTypes.length(); i++) {
     for (unsigned i = 0; i < mesh->_eggObjectTypes.length(); i++) {
       MString attrName = "eggObjectTypes";
       MString attrName = "eggObjectTypes";
-      attrName += (i + 1);
+      attrName += (int)(i + 1);
       status = create_enum_attribute(mesh->_transNode, attrName, attrName, mesh->_eggObjectTypes, i);
       status = create_enum_attribute(mesh->_transNode, attrName, attrName, mesh->_eggObjectTypes, i);
       if (status != MStatus::kSuccess) {
       if (status != MStatus::kSuccess) {
         status.perror("create_enum_attribute failed!");
         status.perror("create_enum_attribute failed!");
@@ -1675,7 +1675,7 @@ bool MayaEggLoader::ConvertEggData(EggData *data, bool merge, bool model, bool a
     // [gjeon] add eggFlag attributes it any exists   
     // [gjeon] add eggFlag attributes it any exists   
     for (unsigned i = 0; i < surface->_eggObjectTypes.length(); i++) {
     for (unsigned i = 0; i < surface->_eggObjectTypes.length(); i++) {
       MString attrName = "eggObjectTypes";
       MString attrName = "eggObjectTypes";
-      attrName += (i + 1);
+      attrName += (int)(i + 1);
       status = create_enum_attribute(surface->_transNode, attrName, attrName, surface->_eggObjectTypes, i);
       status = create_enum_attribute(surface->_transNode, attrName, attrName, surface->_eggObjectTypes, i);
       if (status != MStatus::kSuccess) {
       if (status != MStatus::kSuccess) {
         status.perror("create_enum_attribute failed!");
         status.perror("create_enum_attribute failed!");