From 3555967812ba49390d90af9c5010cce97a81fdc0 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Tue, 30 Sep 2014 18:09:26 +0200 Subject: [PATCH] Write for assets in "My Inventory" folder too. --- indra/newview/aixmllindengenepool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/aixmllindengenepool.cpp b/indra/newview/aixmllindengenepool.cpp index b02d4b60d..cbb6659d9 100644 --- a/indra/newview/aixmllindengenepool.cpp +++ b/indra/newview/aixmllindengenepool.cpp @@ -171,7 +171,9 @@ void AIArchetype::toXML(std::ostream& os, int indentation) const { tag.attribute("name", LLWearableType::getTypeName(mType)); } - if (!mMetaData.mPath.empty()) + // mMetaData.mPath can be empty even exporting from the Appearance editor: + // when the asset is in the "My Inventory" root. + if (!mMetaData.mPath.empty() || !mMetaData.mName.empty()) // Is this not an old-style linden_genepool? { tag.child(mMetaData); }