aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-04-27Fixed: custom walking animations didn't stop when the avatar stopped walking.Oren Hurvitz2-20/+32
This happened because the scripts were notified about control changes (e.g., the user stopped pressing the Forward key) when the animation was still WALK, so the script didn't stop the walking animation. Fixing this required: a) Update the movement animation *before* notifying the script; b) Add locking to prevent clashes with the Heartbeat thread (which also updates the animations); c) Handle the case of a user who stops walking just as the avatar is in the air: the avatar should STAND in that case, not WALK. This reverts commit feef1dd73243cfdd5322632fb67e64cabc1ad4bc.
2012-04-27If a Grid God teleports then include the Godlike teleport flag. This can ↵Oren Hurvitz1-0/+17
affect the starting position in the destination region.
2012-04-27Add regression test for teleporting an agent between separated regions on ↵Justin Clark-Casey (justincc)20-173/+92
the same simulator. This involves a large amount of change in test scene setup code to allow test scenes to share shared modules SetupScene is now an instance method that requires an instantiation of SceneHelpers, though other SceneHelpers methods are still static May split these out into separate classes in the future.
2012-04-26Tweak log messages on local region to region teleport path to help with ↵Justin Clark-Casey (justincc)1-1/+4
problem resolution.
2012-04-26Comment out old Scene.HandleLogOffUserFromGrid() to reduce client closing ↵Justin Clark-Casey (justincc)1-35/+35
analysis complexity
2012-04-26minor: Add avatar name to removing agent log messageJustin Clark-Casey (justincc)1-2/+2
2012-04-25Comment out avatar move to target message for now.Justin Clark-Casey (justincc)1-3/+3
2012-04-25Add a configuration switch to turn on/off the use of the trashMic Bowman2-1/+3
folder when deleting objects from a scene. The use of the trash folder causes assets to be created and stored everytime you delete an object from the scene (slows down the delete and adds mostly useless assets to your database). Default is on (use the trash folder) which is the standard behavior.
2012-04-25Port Avination link order to make OpenSim behave like SL. Make Primstar ↵Melanie1-2/+40
scripts work. Fixes Mantis #5990
2012-04-25Commit the avination Teleport() methods (adaptedto justincc's changes)Melanie1-1/+12
2012-04-25refactor: Combine ScenePresence.Teleport() and TeleportWithMomentum()Justin Clark-Casey (justincc)1-16/+0
These are identical apart from setting Velocity = zero, which has no practical effect anyway since this is zeroed when the avatar is added back to the physics scene.
2012-04-25Add regression test TestSameRegionTeleport()Justin Clark-Casey (justincc)2-0/+42
2012-04-23Mantis 5977 Corrections to llRegionSayToTalun1-3/+23
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2012-04-22Make TestSetPhysicsSinglePrim() actually add the object to the scene in ↵Justin Clark-Casey (justincc)1-0/+2
order to test more code paths.
2012-04-22Fix bug where setting phantom on a prim would result in a server log message ↵Justin Clark-Casey (justincc)3-12/+13
rather than setting phantom. This was an oversight when removing some race conditions from PhysicsActor setting recently. Regression tests extended to probe this code path. Extending regression tests required implementation of a BasicPhysicsPrim (there was none before). However, BasicPhysics plugin is still of no current practical use other than to fill in as a component for other parts of regression testing.
2012-04-21Add test for setting physics in a linksetJustin Clark-Casey (justincc)1-2/+28
2012-04-21Add regression test for prim status when root prim in a new linkset is ↵Justin Clark-Casey (justincc)2-1/+20
non-physical
2012-04-21Fix a bug where linking a non-physical prim with a physical prim as root ↵Justin Clark-Casey (justincc)2-0/+22
would make the non-physical prim phantom rather than part of the physics object. On region restart, the whole object would become physical as expected. Observed behaviour from elsewhere is that all prims in a new linkset should take on the status of the root prim. Add regression test for this behaviour.
2012-04-21Add test for correct physics status on linking two physics objectsJustin Clark-Casey (justincc)1-2/+26
Also fixes last build break.
2012-04-21refactor: extract common setup code in SceneObjectStatusTestsJustin Clark-Casey (justincc)1-10/+16
2012-04-21Add TestSetPhysics() to SOP status testsJustin Clark-Casey (justincc)2-3/+26
2012-04-17minor: Add some method doc. Add warnings since calling SOG link/delink ↵Justin Clark-Casey (justincc)2-0/+22
methods directly rather than through Scene may allow race conditions.
2012-04-17Add TestGetChildPartPositionAfterObjectRotation()Justin Clark-Casey (justincc)1-1/+37
2012-04-17Add test TestGetChildPartPosition()Justin Clark-Casey (justincc)1-0/+28
2012-04-17refactor: Rename EstateSettings.IsEstateManager() to ↵Justin Clark-Casey (justincc)1-3/+3
EstateSettings.IsEstateManagerOrOwner() to reflect what it actually does. This makes it consistent with other parts of OpenSimulator that are treating ESTATE_MANAGER and ESTATE_OWNER as different entities. As per opensim-dev mailing list.
2012-04-14Add GroupPosition and GetWorldPosition() checks to TestGetRootPartPosition()Justin Clark-Casey (justincc)1-1/+3
2012-04-14minor: make test names consistentJustin Clark-Casey (justincc)1-1/+1
2012-04-14refactor: move common init code into SetUp() in SceneObjectSpatialTestsJustin Clark-Casey (justincc)1-8/+13
2012-04-14refactor: put SOG position test in a separate TestSceneObjectGroupPosition()Justin Clark-Casey (justincc)1-1/+17
2012-04-14Add simple RelativePosition and OffsetPosition checks to TestGetRootPartPositionJustin Clark-Casey (justincc)1-0/+2
2012-04-14Add very basic TestGetRootPartPosition() testJustin Clark-Casey (justincc)1-0/+65
2012-04-12Mantis 55025 Implement script time.Talun3-7/+65
Signed-off-by: nebadon <michael@osgrid.org>
2012-04-09Mantis5502 implementation of some of the new constantsTalun3-2/+115
Signed-off-by: Melanie <melanie@t-data.com>
2012-04-08Addresses mantis #5846Diva Canto1-1/+3
2012-04-06Moved the inventory manipulation from HGEntityTransferModule to ↵Diva Canto1-0/+49
HGInventoryAccessModule where it belongs. They need to exchange some events, so added those to EventManager. Those events (TeleportStart and TeleportFail) are nice to have anyway.
2012-04-07Rather than having a FromFolderID property on every single prim and only ↵Justin Clark-Casey (justincc)2-6/+15
ever using the root prim one, store on SOG instead. This reduces pointless memory usage.
2012-04-07Store FromItemID for attachments once on SOG instead of on every SOP and ↵Justin Clark-Casey (justincc)3-19/+13
only ever using the root part entry. This eliminates some pointless memory use.
2012-04-06refactor: Eliminate unnecessary SOP.m_physActorJustin Clark-Casey (justincc)1-10/+1
2012-04-06Fix llGetLinkPrimParams for PRIM_POS_LOCAL for child prims whether in scene ↵Justin Clark-Casey (justincc)1-3/+13
or attachments. Return relative position to root prim rather than 0,0,0. Should fix same issue with llGetLocalPos() http://opensimulator.org/mantis/view.php?id=5951
2012-04-06For llGetMass(), return the mass of the avatar is the object is attached.Justin Clark-Casey (justincc)1-0/+16
As per http://lslwiki.net/lslwiki/wakka.php?wakka=llGetMass This is the mass as used by the physics engine (ODE or Bullet).
2012-04-06If an AddItem fails, try adding it to the right folder type.Diva Canto1-20/+63
2012-04-03remove possible PhysActor unexpectedly null race conditions when changing ↵Justin Clark-Casey (justincc)2-63/+74
prim collision status factor out common SOP physics scene adding code into a common SOP.AddToPhysics() that is the counterpart to the existing RemoveFromPhysics()
2012-04-03Eliminate race condition where many callers would check SOP.PhysicsActor != ↵Justin Clark-Casey (justincc)4-150/+204
null then assume it was still not null in later code. Another thread could come and turn off physics for a part (null PhysicsActor) at any point. Had to turn off localCopy on warp3D CoreModules section in prebuild.xml since on current nant this copies all DLLs in bin/ which can be a very large number with compiled DLLs No obvious reason for doing that copy - nothing else does it.
2012-03-31refactor: Rename SOG.GetChildPart() to GetPart() since it can also return ↵Justin Clark-Casey (justincc)5-29/+29
the 'root' part.
2012-03-31Rename SOG.HasChildPrim(uint) to SOG.ContainsPart(uint) to match existing ↵Justin Clark-Casey (justincc)2-32/+21
ContainsPart method and remove method duplication. HasChildPrim is also misleading since the 'root' prim can also be returned.
2012-03-31minor: small message adjustment and unnecessary code elimination when ↵Justin Clark-Casey (justincc)1-1/+1
notifying client of no build permission
2012-03-31fix Infinite loading on No Rez http://opensimulator.org/mantis/view.php?id=5932PixelTomsen1-1/+7
2012-03-29Add back parts of reverted changes that were not concerned with child agent ↵Justin Clark-Casey (justincc)2-1/+6
caching. This adds ScenePresence to IClientAPI.SceneAgent earlier on in the add client process so that its information is available to EventManager.OnNewClient() and OnClientLogin() Also add a code comment as to why we're caching friend information for child agents.
2012-03-29Revert "Simplify friends caching by only doing this for root agents - no ↵Justin Clark-Casey (justincc)2-3/+1
functions require caching for child agents." We need to cache child agents so that friends object edit/delete permissions will work across boarders on regions hosted by different simulators. This reverts commit d9f7b8549b3cb9699eb8bd54242d31aac0f8241a.
2012-03-29Revert "Add comment about setting client.SceneAgent in AddNewClient()"Justin Clark-Casey (justincc)1-3/+0
This reverts commit 964cae4f37120db34d0d3e2f08ab998215237dfd.