summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Zaporozhan <dzaporozhan@productengine.com>2010-01-19 17:22:13 +0200
committerDmitry Zaporozhan <dzaporozhan@productengine.com>2010-01-19 17:22:13 +0200
commit6fac1bf369f6f0fecd5724f8cff801d3b755cda0 (patch)
treef635f2bdc4a1900bd3f55765ab54080f95b27468
parenta498bf958c935bb8b7a3a27e736721d088ae0c8b (diff)
Fix for normal bug EXT-3749 - Clicking landmark attachment on Group notices doesn't open side panel.
--HG-- branch : product-engine
-rw-r--r--indra/newview/lllandmarklist.cpp6
-rw-r--r--indra/newview/llpanelplaces.cpp2
2 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/lllandmarklist.cpp b/indra/newview/lllandmarklist.cpp
index bd9d22c327..355f048308 100644
--- a/indra/newview/lllandmarklist.cpp
+++ b/indra/newview/lllandmarklist.cpp
@@ -59,6 +59,12 @@ LLLandmark* LLLandmarkList::getAsset(const LLUUID& asset_uuid, loaded_callback_t
LLLandmark* landmark = get_ptr_in_map(mList, asset_uuid);
if(landmark)
{
+ if(cb && !landmark->getGlobalPos(LLVector3d()))
+ {
+ // landmark is not completely loaded yet
+ loaded_callback_map_t::value_type vt(asset_uuid, cb);
+ mLoadedCallbackMap.insert(vt);
+ }
return landmark;
}
else
diff --git a/indra/newview/llpanelplaces.cpp b/indra/newview/llpanelplaces.cpp
index 685104a8b1..59b12c7096 100644
--- a/indra/newview/llpanelplaces.cpp
+++ b/indra/newview/llpanelplaces.cpp
@@ -460,6 +460,8 @@ void LLPanelPlaces::onLandmarkLoaded(LLLandmark* landmark)
mLandmarkInfo->displayParcelInfo(region_id, mPosGlobal);
mSaveBtn->setEnabled(TRUE);
+
+ updateVerbs();
}
void LLPanelPlaces::onFilterEdit(const std::string& search_string, bool force_filter)