Changeset 5298 for trunk


Ignore:
Timestamp:
Apr 23, 2015, 3:37:58 PM (10 years ago)
Author:
ldelgass
Message:

fix for SetObjectStyle?

File:
1 edited

Legend:

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

    r5294 r5298  
    22522252itcl::body Rappture::NanovisViewer::SetObjectStyle { dataobj cname } {
    22532253    array set style {
    2254         -opacity  0.5
     2254        -opacity 0.5
    22552255    }
    22562256    array set style [lindex [$dataobj components -style $cname] 0]
     
    22582258    # override the requested opacity for now
    22592259    set style(-opacity) 0.5
    2260     set _settings($cname-opacity) $style(-opacity)
     2260    set _settings($cname-opacity) [expr $style(-opacity) * 100.0]
    22612261    set tag $dataobj-$cname
    2262     SendCmd "volume shading opacity $_settings($cname-opacity) $tag"
     2262    SendCmd "volume shading opacity $style(-opacity) $tag"
    22632263    NameTransferFunction $dataobj $cname
    22642264}
Note: See TracChangeset for help on using the changeset viewer.