diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llinventorymodel.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llinventorymodel.cpp b/linden/indra/newview/llinventorymodel.cpp index 91bdb8d..15f5398 100644 --- a/linden/indra/newview/llinventorymodel.cpp +++ b/linden/indra/newview/llinventorymodel.cpp | |||
@@ -111,6 +111,7 @@ const char* NEW_CATEGORY_NAMES[LLAssetType::AT_COUNT] = | |||
111 | "Uncompressed Images", // AT_IMAGE_JPEG | 111 | "Uncompressed Images", // AT_IMAGE_JPEG |
112 | "Animations", // AT_ANIMATION | 112 | "Animations", // AT_ANIMATION |
113 | "Gestures", // AT_GESTURE | 113 | "Gestures", // AT_GESTURE |
114 | "New Folder" // AT_SIMSTATE | ||
114 | }; | 115 | }; |
115 | 116 | ||
116 | struct InventoryIDPtrLess | 117 | struct InventoryIDPtrLess |
@@ -352,6 +353,12 @@ LLUUID LLInventoryModel::createNewCategory(const LLUUID& parent_id, | |||
352 | return id; | 353 | return id; |
353 | } | 354 | } |
354 | 355 | ||
356 | if(preferred_type == LLAssetType::AT_SIMSTATE) | ||
357 | { | ||
358 | lldebugs << "Attempt to create simstate category." << llendl; | ||
359 | return id; | ||
360 | } | ||
361 | |||
355 | id.generate(); | 362 | id.generate(); |
356 | LLString name = pname; | 363 | LLString name = pname; |
357 | if(!pname.empty()) | 364 | if(!pname.empty()) |
@@ -359,7 +366,7 @@ LLUUID LLInventoryModel::createNewCategory(const LLUUID& parent_id, | |||
359 | name.assign(pname); | 366 | name.assign(pname); |
360 | } | 367 | } |
361 | else if((preferred_type >= LLAssetType::AT_TEXTURE) && | 368 | else if((preferred_type >= LLAssetType::AT_TEXTURE) && |
362 | (preferred_type < LLAssetType::AT_COUNT)) | 369 | (preferred_type < LLAssetType::AT_SIMSTATE)) |
363 | { | 370 | { |
364 | name.assign(NEW_CATEGORY_NAMES[preferred_type]); | 371 | name.assign(NEW_CATEGORY_NAMES[preferred_type]); |
365 | } | 372 | } |