Revision: 56397
          http://sourceforge.net/p/brlcad/code/56397
Author:   n_reed
Date:     2013-07-31 21:06:04 +0000 (Wed, 31 Jul 2013)
Log Message:
-----------
Handle hidden line mode when redrawing from script side. Extends r56389 fix to 
object rotate/translate/scale.

Revision Links:
--------------
    http://sourceforge.net/p/brlcad/code/56389

Modified Paths:
--------------
    brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl

Modified: brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2013-07-31 20:55:09 UTC 
(rev 56396)
+++ brlcad/trunk/src/tclscripts/archer/ArcherCore.tcl   2013-07-31 21:06:04 UTC 
(rev 56397)
@@ -1581,7 +1581,11 @@
 
     foreach item [gedCmd report 0] {
        if {[lsearch [split $item /] $obj] != -1} {
-           gedCmd draw -m$rmode -x$rtrans $item
+           if { $rmode == $DISPLAY_MODE_HIDDEN } {
+               gedCmd draw -h $item
+           } else {
+               gedCmd draw -m$rmode -x$rtrans $item
+           }
        }
     }
 }
@@ -1593,7 +1597,12 @@
        set rdata [gedCmd how -b $obj]
        set rmode [lindex $rdata 0]
        set rtrans [lindex $rdata 1]
-       gedCmd draw -m$rmode -x$rtrans $obj
+
+       if [ $rmode == $DISPLAY_MODE_HIDDEN ] {
+           gedCmd draw -h $obj
+       } else {
+           gedCmd draw -m$rmode -x$rtrans $obj
+       }
     }
 
     $itk_component(ged) refresh_on

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to