소스 검색

fix invalid cast.

Kim Kulling 5 년 전
부모
커밋
7e222f0730
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/PostProcessing/ValidateDataStructure.cpp

+ 1 - 1
code/PostProcessing/ValidateDataStructure.cpp

@@ -637,7 +637,7 @@ void ValidateDSProcess::SearchForInvalidTextures(const aiMaterial* pMaterial,
                 ReportError("Material property %s%i is expected to be 5 floats large (size is %i)",
                 ReportError("Material property %s%i is expected to be 5 floats large (size is %i)",
                     prop->mKey.data,prop->mIndex, prop->mDataLength);
                     prop->mKey.data,prop->mIndex, prop->mDataLength);
             }
             }
-            mappings[prop->mIndex] = *((aiTextureMapping*)prop->mData);
+			//mappings[prop->mIndex] = ((aiUVTransform*)prop->mData);
         }
         }
         else if (!::strcmp(prop->mKey.data,"$tex.uvwsrc")) {
         else if (!::strcmp(prop->mKey.data,"$tex.uvwsrc")) {
             if (aiPTI_Integer != prop->mType || sizeof(int) > prop->mDataLength)
             if (aiPTI_Integer != prop->mType || sizeof(int) > prop->mDataLength)