Revision: 69106
          http://sourceforge.net/p/brlcad/code/69106
Author:   brlcad
Date:     2016-10-18 01:40:32 +0000 (Tue, 18 Oct 2016)
Log Message:
-----------
more needed for archer to behave with 'phong' shaders

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

Modified: brlcad/trunk/src/tclscripts/archer/ShaderEdit.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/archer/ShaderEdit.tcl   2016-10-18 01:32:58 UTC 
(rev 69105)
+++ brlcad/trunk/src/tclscripts/archer/ShaderEdit.tcl   2016-10-18 01:40:32 UTC 
(rev 69106)
@@ -1101,6 +1101,7 @@
        -command [::itcl::code $this delete_shader "stk_$index"]
 
     switch -- $stype {
+       phong -
        plastic {
            build_plastic $parent stk_$index
            set addspec [list plastic {}]
@@ -1368,6 +1369,7 @@
     set stackParams(env_$index,name) $stype
 
     switch -- $stype {
+       phong -
        plastic {
            build_plastic $parent env_$index
            set addspec [list plastic {}]
@@ -1778,6 +1780,9 @@
 #
 ::itcl::body ShaderEdit::changeShader {} {
     switch -- $shaderSpec {
+       "Phong" {
+           set stype plastic
+       }
        "Plastic" {
            set stype plastic
        }
@@ -2342,6 +2347,7 @@
            -command [::itcl::code $this delete_shader "stk_$index"]
 
        switch -- $stype {
+           phong -
            plastic {
                build_plastic $parent stk_$index
                updateForm_plastic $subspec stk_$index
@@ -2430,6 +2436,7 @@
     set stackParams(env_$index,name) $stype
 
     switch -- $stype {
+       phong -
        plastic {
            build_plastic $parent env_$index
            updateForm_plastic $subspec env_$index

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to