diff options
author | dahlia | 2009-12-24 11:00:08 -0800 |
---|---|---|
committer | dahlia | 2009-12-24 11:00:08 -0800 |
commit | 7a06ab834d6d6404c2bfdbf9c71d5f34bfc0fae2 (patch) | |
tree | 29ab8b0730430c604aed1cd040620613c1e5cf7e | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-7a06ab834d6d6404c2bfdbf9c71d5f34bfc0fae2.zip opensim-SC_OLD-7a06ab834d6d6404c2bfdbf9c71d5f34bfc0fae2.tar.gz opensim-SC_OLD-7a06ab834d6d6404c2bfdbf9c71d5f34bfc0fae2.tar.bz2 opensim-SC_OLD-7a06ab834d6d6404c2bfdbf9c71d5f34bfc0fae2.tar.xz |
Clear Shape.SculptEntry if prim type is not a sculptie in llSetPrimitiveParams() - addresses Mantis #4462
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index cf3a1a0..2b6d9bd 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6502,6 +6502,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6502 | // retain pathcurve | 6502 | // retain pathcurve |
6503 | shapeBlock.PathCurve = part.Shape.PathCurve; | 6503 | shapeBlock.PathCurve = part.Shape.PathCurve; |
6504 | 6504 | ||
6505 | part.Shape.SculptEntry = false; | ||
6505 | return shapeBlock; | 6506 | return shapeBlock; |
6506 | } | 6507 | } |
6507 | 6508 | ||
@@ -6550,6 +6551,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6550 | shapeBlock.PathShearX = (byte)(100 * topshear.x); | 6551 | shapeBlock.PathShearX = (byte)(100 * topshear.x); |
6551 | shapeBlock.PathShearY = (byte)(100 * topshear.y); | 6552 | shapeBlock.PathShearY = (byte)(100 * topshear.y); |
6552 | 6553 | ||
6554 | part.Shape.SculptEntry = false; | ||
6553 | part.UpdateShape(shapeBlock); | 6555 | part.UpdateShape(shapeBlock); |
6554 | } | 6556 | } |
6555 | 6557 | ||
@@ -6591,6 +6593,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6591 | shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x); | 6593 | shapeBlock.ProfileBegin = (ushort)(50000 * dimple.x); |
6592 | shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y)); | 6594 | shapeBlock.ProfileEnd = (ushort)(50000 * (1 - dimple.y)); |
6593 | 6595 | ||
6596 | part.Shape.SculptEntry = false; | ||
6594 | part.UpdateShape(shapeBlock); | 6597 | part.UpdateShape(shapeBlock); |
6595 | } | 6598 | } |
6596 | 6599 | ||
@@ -6711,6 +6714,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6711 | } | 6714 | } |
6712 | shapeBlock.PathSkew = (sbyte)(100 * skew); | 6715 | shapeBlock.PathSkew = (sbyte)(100 * skew); |
6713 | 6716 | ||
6717 | part.Shape.SculptEntry = false; | ||
6714 | part.UpdateShape(shapeBlock); | 6718 | part.UpdateShape(shapeBlock); |
6715 | } | 6719 | } |
6716 | 6720 | ||