summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Lihatskiy <andreylproductengine@lindenlab.com>2019-10-21 17:00:47 +0000
committerAndrey Lihatskiy <andreylproductengine@lindenlab.com>2019-10-21 17:00:47 +0000
commit5d91968cafa8221d45b5e054e88e8b844b0e507e (patch)
tree3ee76ff24f91c27968ef5dd38ecbf409c976c669 /indra/newview
parent5310f215323aee7caec188ccc9d871e920385113 (diff)
parentd3178573bb57a7c5cc997bde90a62e8d6a1affa4 (diff)
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
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelobject.cpp30
1 files changed, 18 insertions, 12 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp
index a382813de6..56aea7db5e 100644
--- a/indra/newview/llpanelobject.cpp
+++ b/indra/newview/llpanelobject.cpp
@@ -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