@@ -43,6 +43,7 @@ qboolean noshare;
43
43
qboolean nosubdiv;
44
44
qboolean notjunc;
45
45
qboolean noopt;
46
+ qboolean nodefaultcubemap;
46
47
qboolean leaktest;
47
48
qboolean verboseentities;
48
49
qboolean dumpcollide = false ;
@@ -858,8 +859,12 @@ void ProcessModels (void)
858
859
}
859
860
}
860
861
861
- // Turn the skybox into a cubemap in case we don't build env_cubemap textures.
862
- Cubemap_CreateDefaultCubemaps ();
862
+ if (!nodefaultcubemap)
863
+ {
864
+ // Turn the skybox into a cubemap in case we don't build env_cubemap textures.
865
+ Cubemap_CreateDefaultCubemaps ();
866
+ }
867
+
863
868
EndBSPFile ();
864
869
}
865
870
@@ -979,6 +984,11 @@ int RunVBSP( int argc, char **argv )
979
984
Msg (" nodetail = true\n " );
980
985
nodetail = true ;
981
986
}
987
+ else if (!Q_stricmp (argv[i], " -nodefaultcubemap" ))
988
+ {
989
+ Msg (" nodefaultcubemap = true\n " );
990
+ nodefaultcubemap = true ;
991
+ }
982
992
else if (!Q_stricmp (argv[i], " -fulldetail" ))
983
993
{
984
994
Msg (" fulldetail = true\n " );
@@ -1210,6 +1220,7 @@ int RunVBSP( int argc, char **argv )
1210
1220
" -nomerge : Don't merge together chopped faces on nodes.\n "
1211
1221
" -nomergewater: Don't merge together chopped faces on water.\n "
1212
1222
" -nosubdiv : Don't subdivide faces for lightmapping.\n "
1223
+ " -nodefaultcubemap: Don't generate a default cubemap.\n "
1213
1224
" -micro <#> : vbsp will warn when brushes are output with a volume less\n "
1214
1225
" than this number (default: 1.0).\n "
1215
1226
" -fulldetail : Mark all detail geometry as normal geometry (so all detail\n "
0 commit comments