Changeset 5077


Ignore:
Timestamp:
Mar 5, 2015 12:59:47 AM (9 years ago)
Author:
ldelgass
Message:

Take custom range setting into account in SetCurrentFieldName?, which is called
from Rebuild. This fixes the custom range not being applied when switching
between results

File:
1 edited

Legend:

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

    r5071 r5077  
    31263126    }
    31273127    $itk_component(field) value $_curFldLabel
    3128     if { ![info exists _limits($_curFldName)] } {
    3129         SendCmd "dataset maprange all"
    3130     } else {
    3131         set limits $_limits($_curFldName)
     3128    if { $_settings(-customrange) } {
     3129        set limits [list [$itk_component(min) value] [$itk_component(max) value]]
    31323130        SendCmd "dataset maprange explicit $limits $_curFldName"
    31333131        if { $limits != $_currentLimits } {
     
    31353133            EventuallyChangeContourLevels
    31363134        }
    3137     }
    3138 }
     3135    } else {
     3136        if { ![info exists _limits($_curFldName)] } {
     3137            SendCmd "dataset maprange all"
     3138        } else {
     3139            set limits $_limits($_curFldName)
     3140            SendCmd "dataset maprange explicit $limits $_curFldName"
     3141            if { $limits != $_currentLimits } {
     3142                set _currentLimits $limits
     3143                EventuallyChangeContourLevels
     3144            }
     3145        }
     3146    }
     3147}
Note: See TracChangeset for help on using the changeset viewer.