Inventory panels can have filename parameter now

This commit is contained in:
Lirusaito
2019-03-05 13:14:48 -05:00
parent ee465c4169
commit c639b4cf6c
2 changed files with 12 additions and 4 deletions

View File

@@ -309,6 +309,14 @@ public:
LLView* LLInventoryPanel::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)
{
std::string filename;
if (node->getAttributeString("filename", filename) && !filename.empty())
{
LLXMLNodePtr node;
if (LLUICtrlFactory::getLayeredXMLNode(filename, node))
return factory->createCtrlWidget(static_cast<LLPanel*>(parent), node);
}
LLInventoryPanel* panel;
std::string name("inventory_panel");