aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorAdam Frisby2007-07-29 12:46:41 +0000
committerAdam Frisby2007-07-29 12:46:41 +0000
commit8b3981f1fd7260a10b1e3ec611934a3b31ef6de1 (patch)
tree720109cc24fa548c770320dcfe804f7ed1d7e53b /OpenSim/Region/Environment
parent* Experimental fix for random walking of resized prims. (diff)
downloadopensim-SC-8b3981f1fd7260a10b1e3ec611934a3b31ef6de1.zip
opensim-SC-8b3981f1fd7260a10b1e3ec611934a3b31ef6de1.tar.gz
opensim-SC-8b3981f1fd7260a10b1e3ec611934a3b31ef6de1.tar.bz2
opensim-SC-8b3981f1fd7260a10b1e3ec611934a3b31ef6de1.tar.xz
* Primitives no longer walk around while being rescaled.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Scenes/Primitive.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Primitive.cs b/OpenSim/Region/Environment/Scenes/Primitive.cs
index 7a87044..ba10893 100644
--- a/OpenSim/Region/Environment/Scenes/Primitive.cs
+++ b/OpenSim/Region/Environment/Scenes/Primitive.cs
@@ -423,25 +423,6 @@ namespace OpenSim.Region.Environment.Scenes
423 /// <param name="scale"></param> 423 /// <param name="scale"></param>
424 public void ResizeGoup(LLVector3 scale) 424 public void ResizeGoup(LLVector3 scale)
425 { 425 {
426 LLVector3 offset = (scale - m_Shape.Scale);
427 offset.X /= 2;
428 offset.Y /= 2;
429 offset.Z /= 2;
430
431 //DODGY HACK TEST
432 offset = new LLVector3();
433 //DODGY HACK TEST
434
435 if (m_isRootPrim)
436 {
437 m_Parent.Pos += offset;
438 }
439 else
440 {
441 m_pos += offset;
442 }
443
444 AddOffsetToChildren(new LLVector3(-offset.X, -offset.Y, -offset.Z));
445 m_Shape.Scale = scale; 426 m_Shape.Scale = scale;
446 427
447 ScheduleFullUpdate(); 428 ScheduleFullUpdate();