diff options
author | Adam Frisby | 2007-04-22 18:48:45 +0000 |
---|---|---|
committer | Adam Frisby | 2007-04-22 18:48:45 +0000 |
commit | 2194b744734bc21f9d9285d18d47164eef4baffa (patch) | |
tree | 44c2d61934540e14b3aceec68b8db39be0f65335 /OpenSim.RegionServer/world/Primitive.cs | |
parent | Added lock around World.Update to prevent multiple updates occuring simultane... (diff) | |
download | opensim-SC-2194b744734bc21f9d9285d18d47164eef4baffa.zip opensim-SC-2194b744734bc21f9d9285d18d47164eef4baffa.tar.gz opensim-SC-2194b744734bc21f9d9285d18d47164eef4baffa.tar.bz2 opensim-SC-2194b744734bc21f9d9285d18d47164eef4baffa.tar.xz |
Needs testing.
1. Fixed Update Lock (should now compile)
2. Added support for rescaling a primitive without it jerking to the side.
Diffstat (limited to 'OpenSim.RegionServer/world/Primitive.cs')
-rw-r--r-- | OpenSim.RegionServer/world/Primitive.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim.RegionServer/world/Primitive.cs b/OpenSim.RegionServer/world/Primitive.cs index 8ff66f9..6fb5d72 100644 --- a/OpenSim.RegionServer/world/Primitive.cs +++ b/OpenSim.RegionServer/world/Primitive.cs | |||
@@ -52,7 +52,14 @@ namespace OpenSim.world | |||
52 | { | 52 | { |
53 | set | 53 | set |
54 | { | 54 | { |
55 | LLVector3 offset = (value - primData.Scale); | ||
56 | offset.X /= 2; | ||
57 | offset.Y /= 2; | ||
58 | offset.Z /= 2; | ||
59 | |||
60 | this.primData.Position += offset; | ||
55 | this.primData.Scale = value; | 61 | this.primData.Scale = value; |
62 | |||
56 | this.dirtyFlag = true; | 63 | this.dirtyFlag = true; |
57 | } | 64 | } |
58 | get | 65 | get |