Crash fix copy texture params

This commit is contained in:
Siana Gearz
2012-07-22 21:44:41 +02:00
parent 15086833a3
commit db5a7578c9

View File

@@ -1246,7 +1246,7 @@ void LLPanelFace::onClickPaste(void* userdata)
LLPrimitive obj;
obj.setNumTEs(U8(textures.size()));
for (int i = 0; i < textures.size(); i++)
for (int i = 0; i < textures.size() && i < objectp->getNumTEs(); i++)
{
llinfos << "Pasting params on face " << i << "." << llendl;
LLSD cur_tex = objectp->getTE(i)->asLLSD();