Commit cf5a47ee authored by Ken Martin's avatar Ken Martin
Browse files

supports image viewer 2

parent d541beeb
......@@ -83,7 +83,9 @@ if {$validImageFound != 0} {
set threshold 5
}
if {[info commands viewer] == "viewer"} {
rt_w2if SetInput [viewer GetImageWindow]
if {[catch {rt_w2if SetInput [viewer GetImageWindow]}]} {
rt_w2if SetInput [viewer GetRenderWindow]
}
viewer Render
} else {
if {[info commands imgWin] == "imgWin"} {
......@@ -91,7 +93,9 @@ if {$validImageFound != 0} {
imgWin Render
} else {
if {[info exists viewer]} {
rt_w2if SetInput [$viewer GetImageWindow]
if {[catch {rt_w2if SetInput [$viewer GetImageWindow]}]} {
rt_w2if SetInput [$viewer GetRenderWindow]
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment