Changeset 309 for trunk/thune/eval.c

Show
Ignore:
Timestamp:
11/09/06 02:31:27 (2 years ago)
Author:
krobillard
Message:

Thune - set-select works on coord!. GL ortho camera now puts origin at
lower left.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/eval.c

    r292 r309  
    297297                } 
    298298            } 
     299            break; 
     300 
     301        case UT_COORD: 
     302        { 
     303            unsigned int n; 
     304            n = ur_sel(sel) - (ur_selIsAtom(sel) ? UR_ATOM_X : 1); 
     305            if( n < val->coord.len ) 
     306            { 
     307                if( ur_is(nval, UT_DECIMAL) ) 
     308                    val->coord.elem[ n ] = (int) ur_decimal(nval); 
     309                else if( ur_is(nval, UT_INT) ) 
     310                    val->coord.elem[ n ] = ur_int(nval); 
     311            } 
     312            return 1; 
     313        } 
    299314            break; 
    300315