Ignore:
Timestamp:
Nov 12, 2013 5:14:16 PM (10 years ago)
Author:
ldelgass
Message:

Fix errors in vtkvolume viewer

File:
1 edited

Legend:

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

    r4045 r4046  
    730730            foreach {min max} $limits(v) break
    731731            if { ![info exists _limits($cname)] } {
    732                 set vmin $min
    733                 set vmax $max
     732                set _limits($cname) [list $min $max]
    734733            } else {
    735                 if { $vmin > $min } {
     734                foreach {vmin vmax} $_limits($cname) break
     735                if { $min < $vmin } {
    736736                    set vmin $min
    737737                }
    738                 if { $vmax < $max } {
     738                if { $max > $vmax } {
    739739                    set vmax $max
    740740                }
    741             }
    742             set _limits($cname) [list $vmin $vmax]
     741                set _limits($cname) [list $vmin $vmax]
     742            }
    743743        }
    744744    }
     
    13661366        "volumeVisible" {
    13671367            set bool $_settings(volumeVisible)
    1368             set _settings($_current-volumeVisible)
     1368            set _settings($_current-volumeVisible) $bool
    13691369            foreach tag [GetDatasetsWithComponent $_current] {
    13701370                SendCmd "volume visible $bool $tag"
Note: See TracChangeset for help on using the changeset viewer.