SL-18125 Material asset creation pulls wrong set of permissions
parent
2c15c87caa
commit
6afd635da4
|
|
@ -761,7 +761,7 @@ bool LLMaterialEditor::saveIfNeeded()
|
|||
tid.generate(); // timestamp-based randomization + uniquification
|
||||
LLAssetID new_asset_id = tid.makeAssetID(gAgent.getSecureSessionID());
|
||||
std::string res_desc = buildMaterialDescription();
|
||||
U32 next_owner_perm = LLPermissions::DEFAULT.getMaskNextOwner();
|
||||
U32 next_owner_perm = LLFloaterPerms::getNextOwnerPerms("Uploads");
|
||||
LLUUID parent = gInventory.findUserDefinedCategoryUUIDForType(LLFolderType::FT_MATERIAL);
|
||||
const U8 subtype = NO_INV_SUBTYPE; // TODO maybe use AT_SETTINGS and LLSettingsType::ST_MATERIAL ?
|
||||
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ void LLSettingsVOBase::createNewInventoryItem(LLSettingsType::type_e stype, cons
|
|||
|
||||
void LLSettingsVOBase::createInventoryItem(const LLSettingsBase::ptr_t &settings, const LLUUID &parent_id, std::string settings_name, inventory_result_fn callback)
|
||||
{
|
||||
U32 nextOwnerPerm = LLPermissions::DEFAULT.getMaskNextOwner();
|
||||
U32 nextOwnerPerm = LLFloaterPerms::getNextOwnerPerms("Settings");
|
||||
createInventoryItem(settings, nextOwnerPerm, parent_id, settings_name, callback);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -508,6 +508,8 @@ void LLFloaterTexturePicker::draw()
|
|||
|
||||
if (LLAvatarAppearanceDefines::LLAvatarAppearanceDictionary::isBakedImageId(mImageAssetID))
|
||||
{
|
||||
// TODO: Fix this! Picker is not warrantied to be connected to a selection
|
||||
// LLSelectMgr shouldn't be used in texture picker
|
||||
LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstObject();
|
||||
if (obj)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue