GiM-GamesInMotion / gFurPro

Shell based fur plugin for Unreal Engine 5
https://gim.studio/animalia/animalia/
Other
89 stars 33 forks source link

fix the compilation errors #20

Closed quicklyslow closed 5 months ago

quicklyslow commented 5 months ago

Remove the declaration of FBoneMatricesUniformShaderParameters because it had already been fixed in 8ae3421; fix the other 2 GFurEditor compile errors in UE5.4

GiM-GamesInMotion commented 5 months ago

Thank you again :)

GiM-GamesInMotion commented 5 months ago

I'm still getting the following: [5/8] Compile [x64] FurSkinData.cpp \GFur\Source\GFur\Private\FurSkinData.h(15): error C2065: 'MAX_TOTAL_INFLUENCES': undeclared identifier \GFur\Source\GFur\Private\FurSkinData.h(15): note: the template instantiation context (the oldest one first) is \GFur\Source\GFur\Private\FurSkinData.cpp(1015): note: see reference to function template instantiation 'void FFurSkinData::CreateVertexFactories::::operator ()(const FFurData::FSection &,_T1 ) const' being compiled with [ _T1=FMorphPhysicsExtraInfluencesFurSkinVertexFactory ] \GFur\Source\GFur\Private\FurSkinData.cpp(993): note: see reference to function template instantiation 'void FFurSkinVertexFactoryBase<true,true,true>::Init<EStaticMeshVertexTangentBasisType::HighPrecision,EStaticMeshVertexUVType::HighPrecision>(const FFurVertexBuffer ,const FVertexBuffer *,uint32)' being compiled \GFur\Source\GFur\Private\FurSkinData.cpp(317): note: see reference to class template instantiation 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::HighPrecision,EStaticMeshVertexUVType::HighPrecision,true>' being compiled \GFur\Source\GFur\Private\FurSkinData.h(15): error C2065: 'MAX_INFLUENCES_PER_STREAM': undeclared identifier \GFur\Source\GFur\Private\FurSkinData.h(15): error C2056: illegal expression \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::HighPrecision,EStaticMeshVertexUVType::HighPrecision,true>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::HighPrecision,EStaticMeshVertexUVType::Default,true>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::Default,EStaticMeshVertexUVType::HighPrecision,true>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::Default,EStaticMeshVertexUVType::Default,true>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::HighPrecision,EStaticMeshVertexUVType::HighPrecision,false>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::HighPrecision,EStaticMeshVertexUVType::Default,false>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::Default,EStaticMeshVertexUVType::HighPrecision,false>' has an illegal zero-sized array \GFur\Source\GFur\Private\FurSkinData.h(19): error C2229: struct 'FFurSkinVertex<EStaticMeshVertexTangentBasisType::Default,EStaticMeshVertexUVType::Default,false>' has an illegal zero-sized array

Any idea about that?

quicklyslow commented 5 months ago

if the IncludeOrderVersion set to Latest will cause the compile error, fix in pr #21