Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static auto wait_anim = LLStringUtil::null;
- if (wait_anim.empty())
- {
- for(const auto& pair : LLPreview::sInstances)
- {
- const auto& pPreview(pair.second);
- #ifndef LL_WINDOWS
- #if __cplusplus >= 201606
- constexpr std::string_view gesture("Gesture");
- if (pPreview && pPreview->getTitleName().compare(gesture) == 0)
- LL_COMPILE_TIME_MESSAGE("String view support detected, remove old code below");
- #endif
- #endif
- if (pPreview && pPreview->getTitleName() ==
- #ifndef LL_WINDOWS
- static_cast<const std::string>(
- #endif
- "Gesture"
- #ifndef LL_WINDOWS
- )
- #endif
- )
- {
- wait_anim = pPreview->getChild<LLCheckBoxCtrl>("wait_anim_check")->getLabel();
- break;
- }
- }
- }
- action = wait_anim;
- }
- result.append(action);
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement