From 596d3cfb6018789e3ffca5bf3ae9fa4e1e8a707a Mon Sep 17 00:00:00 2001
From: Dave Parks <davep@lindenlab.com>
Date: Thu, 12 Nov 2009 13:23:48 -0600
Subject: [PATCH] CTS-15 Force loading of high LOD when opening model import
 floater. CTS-9 Auto-fill description field with

---
 indra/newview/llviewermenufile.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp
index 505d2afb69a..2ce37612b28 100644
--- a/indra/newview/llviewermenufile.cpp
+++ b/indra/newview/llviewermenufile.cpp
@@ -281,7 +281,11 @@ class LLFileUploadModel : public view_listener_t
 {
 	bool handleEvent(const LLSD& userdata)
 	{
-		LLFloaterReg::showInstance("upload_model");
+		LLFloaterModelPreview* fmp = (LLFloaterModelPreview*) LLFloaterReg::showInstance("upload_model");
+		if (fmp)
+		{
+			fmp->loadModel(3);
+		}
 		
 		return TRUE;
 	}
-- 
GitLab