mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-24 18:31:36 +00:00
misc - having a look at brush primitives stuff
This commit is contained in:
parent
5aa744b026
commit
64332fb43d
2 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,6 @@ gint BP_dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer dat
|
|||
// ret: 0 = abort, 1 = load and convert, 2 = changed project settings, load and don't convert
|
||||
// the user might decide to switch the BP mode in project settings
|
||||
// status: 0 = loading regular, got conflict 1 = loading BP, got conflict
|
||||
// int WINAPI gtk_MessageBox (GtkWidget *parent, const char* lpText, const char* lpCaption, guint32 uType)
|
||||
int BP_MessageBox( int status ){
|
||||
GtkWidget *window, *w, *vbox, *hbox;
|
||||
GtkAccelGroup *accel;
|
||||
|
|
|
@ -97,9 +97,9 @@ vec3_t baseaxis[18] =
|
|||
{0,-1,0}, {1,0,0}, {0,0,-1} // north wall
|
||||
};
|
||||
|
||||
void TextureAxisFromPlane( plane_t *pln, vec3_t xv, vec3_t yv ){
|
||||
void TextureAxisFromPlane( plane_t *pln, vec3_t xv, vec3_t yv ) {
|
||||
int bestaxis;
|
||||
float dot,best;
|
||||
float dot, best;
|
||||
int i;
|
||||
|
||||
best = 0;
|
||||
|
@ -108,7 +108,8 @@ void TextureAxisFromPlane( plane_t *pln, vec3_t xv, vec3_t yv ){
|
|||
for ( i = 0 ; i < 6 ; i++ )
|
||||
{
|
||||
dot = DotProduct( pln->normal, baseaxis[i * 3] );
|
||||
if ( g_PrefsDlg.m_bQ3Map2Texturing && dot > best + 0.0001f || dot > best ) {
|
||||
// see q3map2 source - added () for clarity
|
||||
if ( ( g_PrefsDlg.m_bQ3Map2Texturing && dot > best + 0.0001f ) || dot > best ) {
|
||||
best = dot;
|
||||
bestaxis = i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue