Views fromXML can have sound_flags now

This commit is contained in:
Lirusaito
2019-05-04 03:40:08 -04:00
parent 6dadfaffac
commit 3d21dc309c

View File

@@ -2831,6 +2831,10 @@ void LLView::initFromXML(LLXMLNodePtr node, LLView* parent)
node->getAttributeBOOL("mouse_opaque", mMouseOpaque);
node->getAttributeS32("default_tab_group", mDefaultTabGroup);
if (node->hasAttribute("sound_flags"))
{
node->getAttributeU8("sound_flags", mSoundFlags);
}
reshape(view_rect.getWidth(), view_rect.getHeight());
}