marynate / mesh-tool

Issue Tracking and Wiki for Mesh Tool - A mesh editor for Unreal Engine
10 stars 1 forks source link

Error C2661in MTMeshbuilder.cpp #90

Open pidnee opened 4 years ago

pidnee commented 4 years ago

When trying to compile unreal editor 4.24 and 4.25 with meshtool included from source I get errors. Visual Studio 2017.

E0304 no instance of overloaded function "GetPrimitiveUniformShaderParameters" matches the argument list in MeshTool\Source\MeshToolRuntime\Private\MTMesh\MTMeshBuilder.cpp 853

C2661 'GetPrimitiveUniformShaderParameters': no overloaded function takes 16 arguments MeshTool\Source\MeshToolRuntime\Private\MTMesh\MTMeshBuilder.cpp 853

It also prevents any rocketbuilds from packaging.

pidnee commented 4 years ago

I got it to compile with the engine by adding an extra false to the GetPrimitiveUniformShaderParameters. Seems there were only 16 entries in each function call when there were 17 declaired.