[GRASS-SVN] r30082 -
grass/branches/releasebranch_6_3/visualization/nviz/scripts
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 11 07:42:03 EST 2008
Author: neteler
Date: 2008-02-11 07:42:03 -0500 (Mon, 11 Feb 2008)
New Revision: 30082
Modified:
grass/branches/releasebranch_6_3/visualization/nviz/scripts/panel_main.tcl
Log:
Maris Nartiss: reset twist if user presses 'reset' button
Modified: grass/branches/releasebranch_6_3/visualization/nviz/scripts/panel_main.tcl
===================================================================
--- grass/branches/releasebranch_6_3/visualization/nviz/scripts/panel_main.tcl 2008-02-11 12:39:30 UTC (rev 30081)
+++ grass/branches/releasebranch_6_3/visualization/nviz/scripts/panel_main.tcl 2008-02-11 12:42:03 UTC (rev 30082)
@@ -249,7 +249,7 @@
# reset button goes here so it can reference P
Button $BASE.midf.lookat.reset -text "reset" \
- -bd 1 -command "do_reset $XY $H $E $P" \
+ -bd 1 -command "do_reset $XY $H $E $P $T" \
-helptext "Reset view to default"
pack $BASE.midf.lookat.l $BASE.midf.lookat.here \
@@ -378,7 +378,7 @@
# TODO - if started with view file, use these params for reset
-proc do_reset {XY H E P} {
+proc do_reset {XY H E P T} {
global Nv_
global Nauto_draw
@@ -397,6 +397,7 @@
Nv_floatscaleCallback $H b 2 update_height $val
Nv_scaleCallback $P b 0 Nchange_persp 40
+ Nv_scaleCallback $T b 0 Nchange_twist 0
if {$Nauto_draw == 1} {Ndraw_all}
appNotBusy
More information about the grass-commit
mailing list