From 526be23096671e8916ec2b5644a46020f33479a8 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Wed, 4 Dec 2013 21:46:32 -0700 Subject: fix for SH-4627: "Object out of range" is not detected on teleport. --- indra/newview/llpreviewscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llpreviewscript.cpp') diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 870304a7b8..61a34d0581 100755 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -2101,7 +2101,7 @@ LLLiveLSLSaveData::LLLiveLSLSaveData(const LLUUID& id, void LLLiveLSLEditor::saveIfNeeded(bool sync /*= true*/) { LLViewerObject* object = gObjectList.findObject(mObjectUUID); - if(!object) + if(!object || !object->hasVertexBuffer()) { LLNotificationsUtil::add("SaveScriptFailObjectNotFound"); return; -- cgit v1.2.3