diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpreviewanim.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/llpreviewanim.cpp b/linden/indra/newview/llpreviewanim.cpp index ff8b3b5..c7b1dc7 100644 --- a/linden/indra/newview/llpreviewanim.cpp +++ b/linden/indra/newview/llpreviewanim.cpp | |||
@@ -42,14 +42,14 @@ | |||
42 | #include "llfilepicker.h" | 42 | #include "llfilepicker.h" |
43 | #include "lllineeditor.h" | 43 | #include "lllineeditor.h" |
44 | #include "lluictrlfactory.h" | 44 | #include "lluictrlfactory.h" |
45 | #include "llvieweruictrlfactory.h" | 45 | #include "lluictrlfactory.h" |
46 | 46 | ||
47 | extern LLAgent gAgent; | 47 | extern LLAgent gAgent; |
48 | 48 | ||
49 | LLPreviewAnim::LLPreviewAnim(const std::string& name, const LLRect& rect, const std::string& title, const LLUUID& item_uuid, const S32& activate, const LLUUID& object_uuid ) : | 49 | LLPreviewAnim::LLPreviewAnim(const std::string& name, const LLRect& rect, const std::string& title, const LLUUID& item_uuid, const S32& activate, const LLUUID& object_uuid ) : |
50 | LLPreview( name, rect, title, item_uuid, object_uuid) | 50 | LLPreview( name, rect, title, item_uuid, object_uuid) |
51 | { | 51 | { |
52 | gUICtrlFactory->buildFloater(this,"floater_preview_animation.xml"); | 52 | LLUICtrlFactory::getInstance()->buildFloater(this,"floater_preview_animation.xml"); |
53 | 53 | ||
54 | childSetAction("Anim play btn",playAnim,this); | 54 | childSetAction("Anim play btn",playAnim,this); |
55 | childSetAction("Anim audition btn",auditionAnim,this); | 55 | childSetAction("Anim audition btn",auditionAnim,this); |
@@ -116,7 +116,7 @@ void LLPreviewAnim::playAnim( void *userdata ) | |||
116 | { | 116 | { |
117 | LLUUID itemID=item->getAssetUUID(); | 117 | LLUUID itemID=item->getAssetUUID(); |
118 | 118 | ||
119 | LLButton* btn = LLUICtrlFactory::getButtonByName(self, "Anim play btn"); | 119 | LLButton* btn = self->getChild<LLButton>("Anim play btn"); |
120 | if (btn) | 120 | if (btn) |
121 | { | 121 | { |
122 | btn->toggleState(); | 122 | btn->toggleState(); |
@@ -153,7 +153,7 @@ void LLPreviewAnim::auditionAnim( void *userdata ) | |||
153 | { | 153 | { |
154 | LLUUID itemID=item->getAssetUUID(); | 154 | LLUUID itemID=item->getAssetUUID(); |
155 | 155 | ||
156 | LLButton* btn = LLUICtrlFactory::getButtonByName(self, "Anim audition btn"); | 156 | LLButton* btn = self->getChild<LLButton>("Anim audition btn"); |
157 | if (btn) | 157 | if (btn) |
158 | { | 158 | { |
159 | btn->toggleState(); | 159 | btn->toggleState(); |