Changeset 3118 for trunk/gui


Ignore:
Timestamp:
Jul 26, 2012, 8:17:48 PM (12 years ago)
Author:
gah
Message:

handle objects with empty datasets

File:
1 edited

Legend:

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

    r3105 r3118  
    902902            if { ![info exists _datasets($tag)] } {
    903903                set bytes [$dataobj data $comp]
     904                if { $bytes == "" } {
     905                    continue
     906                }
    904907                set length [string length $bytes]
    905908                append _outbuf "dataset add $tag data follows $length\n"
     
    16321635        if { ![info exists _limits($tag)] } {
    16331636            set data [$dataobj data $comp]
     1637            if { $data == "" } {
     1638                continue
     1639            }
    16341640            set tmpfile file[pid].vtk
    16351641            set f [open "$tmpfile" "w"]
Note: See TracChangeset for help on using the changeset viewer.