Ignore:
Timestamp:
09/11/09 06:26:45 (3 years ago)
Author:
james
Message:

support bothmixin option too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/abstract.tcl

    r1031 r1032  
    7272set BMOTION_MIXIN_REVERSE 1 
    7373set BMOTION_MIXIN_NONE 2 
     74set BMOTION_MIXIN_BOTH 3 
    7475 
    7576if { [bMotion_setting_get "abstractMaxAge"] != "" } { 
     
    400401                        # mix-in the gender one with the vanilla one 
    401402                                bMotion_putloglev 1 * "mixing in $bMotionInfo(gender) version of $abstract" 
    402                                 set final_version $final_version [bMotion_abstract_all "${abstract}_$bMotionInfo(gender)"]] 
     403                                set final_version [concat $final_version [bMotion_abstract_all "${abstract}_$bMotionInfo(gender)"]] 
    403404                        } else { 
    404405                                set final_version [bMotion_abstract_all $abstract] 
     
    421422                2 { 
    422423                        # noop, we did it already before the switch 
     424                } 
     425                3 { 
     426                        if [bMotion_abstract_exists "${abstract}_male"] { 
     427                                bMotion_putloglev 1 * "mixing in male version of $abstract" 
     428                                set final_version [concat $final_version [bMotion_abstract_all "${abstract}_male"]] 
     429                        } 
     430                        if [bMotion_abstract_exists "${abstract}_female"] { 
     431                                bMotion_putloglev 1 * "mixing in female version of $abstract" 
     432                                set final_version [concat $final_version [bMotion_abstract_all "${abstract}_female"]] 
     433                        } 
    423434                } 
    424435                default { 
Note: See TracChangeset for help on using the changeset viewer.