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::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> }