Skip to content

Commit

Permalink
Disable smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Mar 19, 2024
1 parent 3da925c commit 3774a36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bsp/Bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9446,11 +9446,8 @@ void Bsp::ExportToObjWIP(const std::string& path, int iscale, bool lightmapmode,
{
fprintf(f, "# Exported using bspguy!\n");

fprintf(f, "%s", "s 1\n");
fprintf(f, "mtllib %s.mtl\n", bsp_name.c_str());

//fprintf(f, "s off\n");

std::string groupname = std::string();

BspRenderer* bsprend = renderer;
Expand Down Expand Up @@ -9743,7 +9740,6 @@ void Bsp::ExportToObjWIP(const std::string& path, int iscale, bool lightmapmode,

fprintf(f, "vn %f %f %f\n", org_norm.x, org_norm.z, -org_norm.y);
}

for (int n = 0; n < rface->vertCount; n++)
{
lightmapVert& vert = ((lightmapVert*)rgroup->buffer->get_data())[rface->vertOffset + n];
Expand All @@ -9764,6 +9760,7 @@ void Bsp::ExportToObjWIP(const std::string& path, int iscale, bool lightmapmode,
fprintf(f, "vt %f %f\n", fU, fV);
}

fprintf(f, "%s", "s off\n");
if (lastmaterialid != materialid)
{
fprintf(f, "usemtl %s\n", materialid.c_str());
Expand Down

0 comments on commit 3774a36

Please sign in to comment.