void LLPreview::onOpen(const LLSD& key) { if (!getFloaterHost() && !getHost() && getAssetStatus() == PREVIEW_ASSET_UNLOADED) { loadAsset(); } }
void LLPreview::open() /*Flawfinder: ignore*/ { if (!getFloaterHost() && !getHost() && getAssetStatus() == PREVIEW_ASSET_UNLOADED) { loadAsset(); } LLFloater::open(); /*Flawfinder: ignore*/ }
void LLPreview::setItem( LLInventoryItem* item ) { mItem = item; if (mItem && getAssetStatus() == PREVIEW_ASSET_UNLOADED) { loadAsset(); } }
void LLPreview::setObjectID(const LLUUID& object_id) { mObjectUUID = object_id; if (getAssetStatus() == PREVIEW_ASSET_UNLOADED) { loadAsset(); } }
void LLPreview::onOpen(const LLSD& key) { if (!getFloaterHost() && !getHost() && getAssetStatus() == PREVIEW_ASSET_UNLOADED) { loadAsset(); } // <FS:Ansariel> Multi preview layout fix; Anim, gesture and sound previews can't be resized if (getHost() && (dynamic_cast<LLPreviewAnim*>(this) || dynamic_cast<LLPreviewGesture*>(this) || dynamic_cast<LLPreviewSound*>(this))) { getHost()->setCanResize(FALSE); } // </FS:Ansariel> }