Update for normal bug EXT-3749 - Clicking landmark attachment on Group notices doesn't open side panel.
--HG-- branch : product-enginemaster
parent
6fac1bf369
commit
f53f65cc1a
|
|
@ -185,6 +185,13 @@ void LLPanelLandmarkInfo::processParcelInfo(const LLParcelData& parcel_data)
|
|||
region_z = llround(mPosRegion.mV[VZ]);
|
||||
}
|
||||
|
||||
LLSD info;
|
||||
info["update_verbs"] = true;
|
||||
info["global_x"] = parcel_data.global_x;
|
||||
info["global_y"] = parcel_data.global_y;
|
||||
info["global_z"] = parcel_data.global_z;
|
||||
notifyParent(info);
|
||||
|
||||
if (mInfoType == CREATE_LANDMARK)
|
||||
{
|
||||
if (parcel_data.name.empty())
|
||||
|
|
|
|||
|
|
@ -449,6 +449,22 @@ void LLPanelPlaces::setItem(LLInventoryItem* item)
|
|||
}
|
||||
}
|
||||
|
||||
S32 LLPanelPlaces::notifyParent(const LLSD& info)
|
||||
{
|
||||
if(info.has("update_verbs"))
|
||||
{
|
||||
if(mPosGlobal.isExactlyZero())
|
||||
{
|
||||
mPosGlobal.setVec(info["global_x"], info["global_y"], info["global_z"]);
|
||||
}
|
||||
|
||||
updateVerbs();
|
||||
|
||||
return 1;
|
||||
}
|
||||
return LLPanel::notifyParent(info);
|
||||
}
|
||||
|
||||
void LLPanelPlaces::onLandmarkLoaded(LLLandmark* landmark)
|
||||
{
|
||||
if (!mLandmarkInfo)
|
||||
|
|
|
|||
|
|
@ -75,6 +75,8 @@ public:
|
|||
|
||||
std::string getPlaceInfoType() { return mPlaceInfoType; }
|
||||
|
||||
/*virtual*/ S32 notifyParent(const LLSD& info);
|
||||
|
||||
private:
|
||||
void onLandmarkLoaded(LLLandmark* landmark);
|
||||
void onFilterEdit(const std::string& search_string, bool force_filter);
|
||||
|
|
|
|||
|
|
@ -961,6 +961,7 @@ void open_inventory_offer(const std::vector<LLUUID>& items, const std::string& f
|
|||
const BOOL auto_open = gSavedSettings.getBOOL("ShowInInventory") &&
|
||||
(asset_type != LLAssetType::AT_CALLINGCARD) &&
|
||||
(item->getInventoryType() != LLInventoryType::IT_ATTACHMENT) &&
|
||||
(asset_type != LLAssetType::AT_LANDMARK) &&
|
||||
!from_name.empty();
|
||||
LLInventoryPanel *active_panel = LLInventoryPanel::getActiveInventoryPanel(auto_open);
|
||||
if(active_panel)
|
||||
|
|
|
|||
Loading…
Reference in New Issue