[Gtkradiant] r301 - in GtkRadiant/trunk: . include plugins/surface radiant

svn-noreply at zerowing.idsoftware.com svn-noreply at zerowing.idsoftware.com
Thu Jul 10 03:30:48 CDT 2008


Author: mattn
Date: Thu Jul 10 03:30:47 2008
New Revision: 301

Modified:
   GtkRadiant/trunk/config.py
   GtkRadiant/trunk/include/isurfaceplugin.h
   GtkRadiant/trunk/plugins/surface/surfacedialog.cpp
   GtkRadiant/trunk/radiant/brush_primit.cpp
   GtkRadiant/trunk/radiant/drag.cpp
   GtkRadiant/trunk/radiant/mainframe.cpp
   GtkRadiant/trunk/radiant/preferences.cpp
   GtkRadiant/trunk/radiant/preferences.h
   GtkRadiant/trunk/radiant/select.cpp
   GtkRadiant/trunk/radiant/surfaceplugin.cpp
   GtkRadiant/trunk/radiant/xywindow.cpp
Log:
* divVerent's patch for the brush primitives surface dialog (fixed segfault due to NULL pointer)
* Quote http://zerowing.idsoftware.com/pipermail/gtkradiant/2008-July/011094.html : Attached to this message is a patch for a "somewhat working" brush
primitives surface dialog. It is an ugly hack, as it converts between
fake texdef notations and brush primitives whenever values are needed.
Had to fix an accuracy bug: the surface dialog rounded all rotation
values to integer angles, which SEVERELY broke things for me (changed
the Gtk spin object to use 4 digits, which is enough for me).

Also, I changed the fake texdef / brush primitives conversions to use
long double internally, as float's roundoff errors were quite visible to
me when testing.

Hope the remaining roundoff errors from converting back and forth won't
kill me, but it worked for a simple map example.

Also, I had to separate out "Snap to grid" and "Don't clamp" into two
separare options. They now mean:

- Snap to grid: snaps drag/etc. actions to the grid
- Don't clamp: disable brush point snapping during many operations, like
  merely shifting brushes, editing texturing parameters, map loading,
  etc.

The reason is that I do need the grid, but I don't want to get my
objects messed up by the snapping in my map. As I am using free
rotations, this DOES change quite much.

The config.py change is needed for compilation on Debian stable;
Debian's scons does not use the CFLAGS variable, but just CCFLAGS and
CXXFLAGS. In newer scons versions, CFLAGS is _shared_ flags for C and
C++, so if you want to require these, you don't need to include the
CFLAGS in CXXFLAGS too.


Modified: GtkRadiant/trunk/config.py
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/config.py?view=diff&rev=301&p1=GtkRadiant/trunk/config.py&r1=300&p2=GtkRadiant/trunk/config.py&r2=301
==============================================================================

Modified: GtkRadiant/trunk/include/isurfaceplugin.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/include/isurfaceplugin.h?view=diff&rev=301&p1=GtkRadiant/trunk/include/isurfaceplugin.h&r1=300&p2=GtkRadiant/trunk/include/isurfaceplugin.h&r2=301
==============================================================================

Modified: GtkRadiant/trunk/plugins/surface/surfacedialog.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/plugins/surface/surfacedialog.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/plugins/surface/surfacedialog.cpp&r1=300&p2=GtkRadiant/trunk/plugins/surface/surfacedialog.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/brush_primit.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/brush_primit.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/brush_primit.cpp&r1=300&p2=GtkRadiant/trunk/radiant/brush_primit.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/drag.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/drag.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/drag.cpp&r1=300&p2=GtkRadiant/trunk/radiant/drag.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/mainframe.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/mainframe.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/mainframe.cpp&r1=300&p2=GtkRadiant/trunk/radiant/mainframe.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/preferences.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/preferences.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/preferences.cpp&r1=300&p2=GtkRadiant/trunk/radiant/preferences.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/preferences.h
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/preferences.h?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/preferences.h&r1=300&p2=GtkRadiant/trunk/radiant/preferences.h&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/select.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/select.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/select.cpp&r1=300&p2=GtkRadiant/trunk/radiant/select.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/surfaceplugin.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/surfaceplugin.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/surfaceplugin.cpp&r1=300&p2=GtkRadiant/trunk/radiant/surfaceplugin.cpp&r2=301
==============================================================================

Modified: GtkRadiant/trunk/radiant/xywindow.cpp
Url: http://zerowing.idsoftware.com/viewcvs/radiant/GtkRadiant/trunk/radiant/xywindow.cpp?view=diff&rev=301&p1=GtkRadiant/trunk/radiant/xywindow.cpp&r1=300&p2=GtkRadiant/trunk/radiant/xywindow.cpp&r2=301
==============================================================================



More information about the Gtkradiant mailing list