diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/llprimitive/llprimitive.cpp | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llprimitive/llprimitive.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/linden/indra/llprimitive/llprimitive.cpp b/linden/indra/llprimitive/llprimitive.cpp index 1dfc570..b418793 100644 --- a/linden/indra/llprimitive/llprimitive.cpp +++ b/linden/indra/llprimitive/llprimitive.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llprimitive.cpp | 2 | * @file llprimitive.cpp |
3 | * @brief LLPrimitive base class | 3 | * @brief LLPrimitive base class |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "linden_common.h" | 32 | #include "linden_common.h" |
@@ -860,6 +863,7 @@ void LLPrimitive::copyTEs(const LLPrimitive *primitivep) | |||
860 | setTERotation(i, tep->getRotation()); | 863 | setTERotation(i, tep->getRotation()); |
861 | setTEBumpShinyFullbright(i, tep->getBumpShinyFullbright()); | 864 | setTEBumpShinyFullbright(i, tep->getBumpShinyFullbright()); |
862 | setTEMediaTexGen(i, tep->getMediaTexGen()); | 865 | setTEMediaTexGen(i, tep->getMediaTexGen()); |
866 | setTEGlow(i, tep->getGlow()); | ||
863 | } | 867 | } |
864 | } | 868 | } |
865 | 869 | ||
@@ -1657,6 +1661,52 @@ void LLPrimitive::setTextureList(LLTextureEntry *listp) | |||
1657 | 1661 | ||
1658 | //============================================================================ | 1662 | //============================================================================ |
1659 | 1663 | ||
1664 | // Moved from llselectmgr.cpp | ||
1665 | // BUG: Only works for boxes. | ||
1666 | // Face numbering for flex boxes as of 1.14.2 | ||
1667 | |||
1668 | // static | ||
1669 | bool LLPrimitive::getTESTAxes(const U8 face, U32* s_axis, U32* t_axis) | ||
1670 | { | ||
1671 | if (face == 0) | ||
1672 | { | ||
1673 | *s_axis = VX; *t_axis = VY; | ||
1674 | return true; | ||
1675 | } | ||
1676 | else if (face == 1) | ||
1677 | { | ||
1678 | *s_axis = VX; *t_axis = VZ; | ||
1679 | return true; | ||
1680 | } | ||
1681 | else if (face == 2) | ||
1682 | { | ||
1683 | *s_axis = VY; *t_axis = VZ; | ||
1684 | return true; | ||
1685 | } | ||
1686 | else if (face == 3) | ||
1687 | { | ||
1688 | *s_axis = VX; *t_axis = VZ; | ||
1689 | return true; | ||
1690 | } | ||
1691 | else if (face == 4) | ||
1692 | { | ||
1693 | *s_axis = VY; *t_axis = VZ; | ||
1694 | return true; | ||
1695 | } | ||
1696 | else if (face == 5) | ||
1697 | { | ||
1698 | *s_axis = VX; *t_axis = VY; | ||
1699 | return true; | ||
1700 | } | ||
1701 | else | ||
1702 | { | ||
1703 | // unknown face | ||
1704 | return false; | ||
1705 | } | ||
1706 | } | ||
1707 | |||
1708 | //============================================================================ | ||
1709 | |||
1660 | //static | 1710 | //static |
1661 | BOOL LLNetworkData::isValid(U16 param_type, U32 size) | 1711 | BOOL LLNetworkData::isValid(U16 param_type, U32 size) |
1662 | { | 1712 | { |