mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
PicoModel Backport: Fixed compilation.
This commit is contained in:
parent
aac08480d3
commit
2d08c0518c
4 changed files with 7 additions and 2 deletions
|
@ -267,6 +267,7 @@ void PicoSetSurfaceIndex( picoSurface_t *surface, int num
|
||||||
void PicoSetSurfaceIndexes( picoSurface_t *surface, int num, picoIndex_t *index, int count );
|
void PicoSetSurfaceIndexes( picoSurface_t *surface, int num, picoIndex_t *index, int count );
|
||||||
void PicoSetFaceNormal( picoSurface_t *surface, int num, picoVec3_t normal );
|
void PicoSetFaceNormal( picoSurface_t *surface, int num, picoVec3_t normal );
|
||||||
void PicoSetSurfaceSpecial( picoSurface_t *surface, int num, int special );
|
void PicoSetSurfaceSpecial( picoSurface_t *surface, int num, int special );
|
||||||
|
void PicoSetSurfaceSmoothingGroup( picoSurface_t *surface, int num, picoIndex_t smoothingGroup );
|
||||||
|
|
||||||
|
|
||||||
/* getter functions */
|
/* getter functions */
|
||||||
|
|
|
@ -147,6 +147,7 @@
|
||||||
<ClCompile Include="lwo\surface.c" />
|
<ClCompile Include="lwo\surface.c" />
|
||||||
<ClCompile Include="lwo\vecmath.c" />
|
<ClCompile Include="lwo\vecmath.c" />
|
||||||
<ClCompile Include="lwo\vmap.c" />
|
<ClCompile Include="lwo\vmap.c" />
|
||||||
|
<ClCompile Include="pm_terrain.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
|
|
@ -77,5 +77,8 @@
|
||||||
<ClCompile Include="lwo\vmap.c">
|
<ClCompile Include="lwo\vmap.c">
|
||||||
<Filter>src\lwo</Filter>
|
<Filter>src\lwo</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="pm_terrain.c">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -285,8 +285,8 @@ static picoModel_t *_lwo_load( PM_PARAMS_LOAD ){
|
||||||
|
|
||||||
///* doom3 lwo data doesn't seem to have smoothing-angle information */
|
///* doom3 lwo data doesn't seem to have smoothing-angle information */
|
||||||
//#if 0
|
//#if 0
|
||||||
// if ( surface->smooth <= 0 ) {
|
if ( surface->smooth <= 0 ) {
|
||||||
// /* use face normals */
|
/* use face normals */
|
||||||
normal[ 0 ] = v->norm[ 0 ];
|
normal[ 0 ] = v->norm[ 0 ];
|
||||||
normal[ 1 ] = v->norm[ 2 ];
|
normal[ 1 ] = v->norm[ 2 ];
|
||||||
normal[ 2 ] = v->norm[ 1 ];
|
normal[ 2 ] = v->norm[ 1 ];
|
||||||
|
|
Loading…
Reference in a new issue