Changeset 2417 for trunk


Ignore:
Timestamp:
Aug 25, 2011, 8:10:48 PM (13 years ago)
Author:
ldelgass
Message:

Remove some unused code from vtkcontourviewer.tcl that can cause an error on
a rebuild/reset if _first is empty. In vtkviewer.tcl, use camera reset
(without the 'all') flag to reset while keeping orientation.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkcontourviewer.tcl

    r2414 r2417  
    896896    FixLegend
    897897
    898     # If the first dataset already exists on the server, then make sure we
    899     # display the proper transfer function in the legend.
    900     set comp [lindex [$_first components] 0]
    901898    set _buffering 0;                        # Turn off buffering.
    902899
  • trunk/gui/scripts/vtkviewer.tcl

    r2414 r2417  
    358358
    359359    # Must reset camera to have object scaling to take effect.
    360     SendCmd "camera reset all"
    361     set q [list $_view(qw) $_view(qx) $_view(qy) $_view(qz)]
    362     $_arcball quaternion $q
    363     SendCmd "camera orient $q"
     360    SendCmd "camera reset"
    364361    SendCmd "camera zoom $_view(zoom)"
    365362    set _resizePending 0
Note: See TracChangeset for help on using the changeset viewer.