Changeset 249 for trunk/thune/eval.c
- Timestamp:
- 08/11/06 16:34:10 (2 years ago)
- Files:
-
- 1 modified
-
trunk/thune/eval.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/eval.c
r246 r249 1568 1568 break; 1569 1569 1570 case UT_COORD: 1571 if( ur_is(b, UT_COORD) ) 1572 { 1573 if( a->coord.len == b->coord.len ) 1574 { 1575 int i; 1576 for( i = 0; i < a->coord.len; ++i ) 1577 { 1578 if( a->coord.elem[i] != b->coord.elem[i] ) 1579 return 0; 1580 } 1581 return 1; 1582 } 1583 } 1584 break; 1585 1586 case UT_VEC3: 1587 if( ur_is(b, UT_VEC3) ) 1588 { 1589 if( (a->vec3.xyz[0] == b->vec3.xyz[0]) && 1590 (a->vec3.xyz[1] == b->vec3.xyz[1]) && 1591 (a->vec3.xyz[2] == b->vec3.xyz[2]) ) 1592 return 1; 1593 } 1594 break; 1595 1570 1596 case UT_BLOCK: 1571 1597 case UT_PAREN: … … 1674 1700 case UT_BLOCK: 1675 1701 case UT_PAREN: 1702 case UT_ARRAY: 1676 1703 if( (a->series.n == b->series.n) && 1677 1704 (a->series.it == b->series.it) ) … … 1716 1743 else if( ur_is(tos, UT_DECIMAL) ) 1717 1744 n = ur_decimal(tos) ? 0 : 1; 1745 #ifdef UR_CONFIG_MATH3D 1746 else if( ur_is(tos, UT_VEC3) ) 1747 { 1748 n = (tos->vec3.xyz[0] == 0.0 && 1749 tos->vec3.xyz[1] == 0.0 && 1750 tos->vec3.xyz[2] == 0.0) ? 1 : 0; 1751 } 1752 #endif 1718 1753 else 1719 1754 n = 0;
