Skip to content
Snippets Groups Projects
Commit 5d91968c authored by Andrey Lihatskiy's avatar Andrey Lihatskiy
Browse files

Merged in default (pull request #2)

SL-12156 FIXED [Project Copy/Paste] The prim's shape can be changed by pasting mesh parameters

Approved-by: Andrey Lihatskiy
parents 5310f215 d3178573
No related branches found
No related tags found
1 merge request!83Merge Linden 6.6.7
......@@ -2158,7 +2158,10 @@ void LLPanelObject::onCopyParams()
mParamsClipboard["is_physical"] = objectp->flagUsePhysics();
// Parametrics
getVolumeParams(mClipboardVolumeParams);
if (!objectp->isMesh())
{
getVolumeParams(mClipboardVolumeParams);
}
LLVOVolume *volobjp = NULL;
if (objectp && (objectp->getPCode() == LL_PCODE_VOLUME))
......@@ -2188,19 +2191,22 @@ void LLPanelObject::onCopyParams()
if (objectp->getParameterEntryInUse(LLNetworkData::PARAMS_SCULPT))
{
LLSculptParams *sculpt_params = (LLSculptParams *)objectp->getParameterEntry(LLNetworkData::PARAMS_SCULPT);
LLUUID texture_id = sculpt_params->getSculptTexture();
if (canCopyTexture(texture_id))
{
LL_INFOS() << "copu texture " << LL_ENDL;
mParamsClipboard["sculpt"]["id"] = texture_id;
}
else
if (!objectp->isMesh())
{
mParamsClipboard["sculpt"]["id"] = LLUUID(SCULPT_DEFAULT_TEXTURE);
}
LLUUID texture_id = sculpt_params->getSculptTexture();
if (canCopyTexture(texture_id))
{
LL_INFOS() << "copy texture " << LL_ENDL;
mParamsClipboard["sculpt"]["id"] = texture_id;
}
else
{
mParamsClipboard["sculpt"]["id"] = LLUUID(SCULPT_DEFAULT_TEXTURE);
}
mParamsClipboard["sculpt"]["type"] = sculpt_params->getSculptType();
mParamsClipboard["sculpt"]["type"] = sculpt_params->getSculptType();
}
}
// Light Source
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment