diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltoolface.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltoolface.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/linden/indra/newview/lltoolface.cpp b/linden/indra/newview/lltoolface.cpp index 071d5d2..0ebb2c3 100644 --- a/linden/indra/newview/lltoolface.cpp +++ b/linden/indra/newview/lltoolface.cpp | |||
@@ -52,7 +52,7 @@ | |||
52 | // | 52 | // |
53 | 53 | ||
54 | LLToolFace::LLToolFace() | 54 | LLToolFace::LLToolFace() |
55 | : LLTool("Texture") | 55 | : LLTool(std::string("Texture")) |
56 | { } | 56 | { } |
57 | 57 | ||
58 | 58 | ||
@@ -82,17 +82,16 @@ BOOL LLToolFace::handleDoubleClick(S32 x, S32 y, MASK mask) | |||
82 | 82 | ||
83 | BOOL LLToolFace::handleMouseDown(S32 x, S32 y, MASK mask) | 83 | BOOL LLToolFace::handleMouseDown(S32 x, S32 y, MASK mask) |
84 | { | 84 | { |
85 | gPickFaces = TRUE; | 85 | gViewerWindow->pickAsync(x, y, mask, pickCallback); |
86 | gViewerWindow->hitObjectOrLandGlobalAsync(x, y, mask, pickCallback); | ||
87 | return TRUE; | 86 | return TRUE; |
88 | } | 87 | } |
89 | 88 | ||
90 | void LLToolFace::pickCallback(S32 x, S32 y, MASK mask) | 89 | void LLToolFace::pickCallback(const LLPickInfo& pick_info) |
91 | { | 90 | { |
92 | LLViewerObject* hit_obj = gViewerWindow->lastObjectHit(); | 91 | LLViewerObject* hit_obj = pick_info.getObject(); |
93 | if (hit_obj) | 92 | if (hit_obj) |
94 | { | 93 | { |
95 | S32 hit_face = gLastHitObjectFace; | 94 | S32 hit_face = pick_info.mObjectFace; |
96 | 95 | ||
97 | if (hit_obj->isAvatar()) | 96 | if (hit_obj->isAvatar()) |
98 | { | 97 | { |
@@ -102,7 +101,7 @@ void LLToolFace::pickCallback(S32 x, S32 y, MASK mask) | |||
102 | 101 | ||
103 | // ...clicked on a world object, try to pick the appropriate face | 102 | // ...clicked on a world object, try to pick the appropriate face |
104 | 103 | ||
105 | if (mask & MASK_SHIFT) | 104 | if (pick_info.mKeyMask & MASK_SHIFT) |
106 | { | 105 | { |
107 | // If object not selected, need to inform sim | 106 | // If object not selected, need to inform sim |
108 | if ( !hit_obj->isSelected() ) | 107 | if ( !hit_obj->isSelected() ) |
@@ -133,7 +132,7 @@ void LLToolFace::pickCallback(S32 x, S32 y, MASK mask) | |||
133 | } | 132 | } |
134 | else | 133 | else |
135 | { | 134 | { |
136 | if (!(mask == MASK_SHIFT)) | 135 | if (!(pick_info.mKeyMask == MASK_SHIFT)) |
137 | { | 136 | { |
138 | LLSelectMgr::getInstance()->deselectAll(); | 137 | LLSelectMgr::getInstance()->deselectAll(); |
139 | } | 138 | } |