aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-08-31minor: seal up another instance of using the appearance list without lockingJustin Clark-Casey (justincc)1-1/+2
2011-08-31Make SP.Attachments available as sp.GetAttachments() instead.Justin Clark-Casey (justincc)1-13/+38
The approach here, as in other parts of OpenSim, is to return a copy of the list rather than the attachments list itself This prevents callers from forgetting to lock the list when they read it, as was happening in various parts of the codebase. It also improves liveness. This might improve attachment anomolies when performing region crossings.
2011-08-30minor: remove already processed avatar null check in Scene.RemoveClient()Justin Clark-Casey (justincc)1-4/+0
remove some now duplicated method doc
2011-08-30refactor: move SP.SaveChangedAttachments() fully into AttachmentsModuleJustin Clark-Casey (justincc)1-24/+1
2011-08-30refactor: Move ScenePresence.RezAttachments() into AttachmentsModuleJustin Clark-Casey (justincc)1-45/+1
This adds an incomplete IScenePresence to match ISceneEntity
2011-08-30Fix bug in persisting saved appearances for npcsJustin Clark-Casey (justincc)1-3/+3
Assets have to be marked non-local as well as non-temporary to persist. This is now done. Hopefully addresses http://opensimulator.org/mantis/view.php?id=5660
2011-08-27Stop avatars returning from neighbouring regions from stalling on the border ↵Justin Clark-Casey (justincc)1-3/+22
crossing. On making a root agent, we need to reset the ScenePresence.m_movement_flag so that it doesn't remember the movement registered to the client when it exited the initial region. If this is remember, then the client avatar movement isn't updated and it appears to stall in mid-air, though this is resolved with a prod/release of any other direction key. This bug was probably introduced a few weeks ago. Surprised that nobody brought it up.
2011-08-27refactor: move SOP.IsAttachment and AttachmentPoint up into SOG to avoid ↵Justin Clark-Casey (justincc)1-4/+4
pointless duplication of identical values
2011-08-24remove pointless IsDeleted check on SP.RezAttachments()Justin Clark-Casey (justincc)1-3/+0
IsDeleted is never set for an SP, even though it's on EntityBase. It might be an idea to set it in the future
2011-08-24refactor: simplify EntityBase.IsDeleted propertyJustin Clark-Casey (justincc)1-1/+1
2011-08-23Remove pointless contains check in ScenePresence.RemoveAttachment()Justin Clark-Casey (justincc)1-6/+1
2011-08-22If an attachment fails, then start logging the exception for now, in order ↵Justin Clark-Casey (justincc)1-1/+1
to help with the inconsistent state bug. This also refactors AttachmentsModules to stop pointlessly refetching the ScenePresence in various methods. However, more of this is required.
2011-08-22Add warning log message to say which attachment fails validation in order to ↵Justin Clark-Casey (justincc)1-0/+10
pin down problems with "Inconsistent Attachment State"
2011-08-18refactor: fold CreateSceneViewer() back into ScenePresence constructorJustin Clark-Casey (justincc)1-6/+1
2011-08-18refactor: Fold 3 ScenePresence() constructors into one since only one is called.Justin Clark-Casey (justincc)1-9/+2
2011-08-18Don't try to save changed attachment states when an NPC with attachments is ↵Justin Clark-Casey (justincc)1-3/+9
removed from the scene. This is done by introducing a PresenceType enum into ScenePresence which currently has two values, User and Npc. This seems better than a SaveAttachments flag in terms of code comprehension, though I'm still slightly uneasy about introducing these semantics to core objects
2011-08-16get rid of logged warnings about lack of some modules - afaik these never ↵Justin Clark-Casey (justincc)1-10/+0
occur in real life and just clutter up tests
2011-08-11eliminate redundant ground sitting checks since these are already done in ↵Justin Clark-Casey (justincc)1-4/+1
enclosing control structures
2011-08-11eliminate the rotation parameter from SP.HandleMoveToTargetUpdate(). This ↵Justin Clark-Casey (justincc)1-5/+4
can just use the currently set Rotation looks like I spoke to soon about eliminating jerkiness on "go here"/autopilot. It's still there.
2011-08-11instead of setting avatar rotation twice in SP.HandleAgentUpdate(), ↵Justin Clark-Casey (justincc)1-16/+14
eliminate the second setting in AddNewMovement()
2011-08-11get rid of intermediate local store of body rotation in ScenePresence, this ↵Justin Clark-Casey (justincc)1-5/+4
is not used.
2011-08-11Get NPCs to revert to the correct 'resting' animation (e.g. stand or hover) ↵Justin Clark-Casey (justincc)1-0/+6
after finishing their movement. This also fixes judder after an avatar has finished "go here"/autopilot movement in a viewer. This meant reseting the SP.AgentControlFlags since the Animator uses these to determine the correct default animation.
2011-08-11If SP.MoveToTarget has been called with a force walk, begin by landing the ↵Justin Clark-Casey (justincc)1-1/+3
avatar. There is a bug here - once an avatar has landed it glides to its new position instead of performing a walk animation
2011-08-10early code to allow scripts to force npcs not to fly when moving to targetJustin Clark-Casey (justincc)1-2/+7
this is to allow walking on prims. it will be up to the script writer to be sure that there is a continuous path. currently implemented in osNpcMoveToTarget(), but none of this is final.
2011-08-10Stop trying to deregister caps or close child agents when an NPC is removedJustin Clark-Casey (justincc)1-3/+3
2011-08-09When an NPC is created, stop telling neighbouring regions to expect a child ↵Justin Clark-Casey (justincc)1-4/+8
agent
2011-08-06get rid of bogus log messageJustin Clark-Casey (justincc)1-7/+0
2011-08-05remove the largely unused copy/pasted HandleAgentRequestSit() methodJustin Clark-Casey (justincc)1-40/+11
2011-08-04if an NPC target is set to a ground location, then automatically land them ↵Justin Clark-Casey (justincc)1-5/+4
when they get there. This doesn't help where the target is a prim surface. In these situations, it might be better to provide manual overrides so the script can control whethre an avatar flys there/lands, etc.
2011-08-04if an NPC move to target is above the terrain then make it fly to destinationJustin Clark-Casey (justincc)1-7/+19
2011-08-04if a move to target is set underground, constrain it to the terrain heightJustin Clark-Casey (justincc)1-1/+3
2011-08-04move bAllowUpdateMoveToPosition switch outside of HandleMoveToTargetUpdate()Justin Clark-Casey (justincc)1-8/+5
2011-08-04only call move target code in SP.HandleAgentUpdate() if we're actually in ↵Justin Clark-Casey (justincc)1-9/+12
the process of moving to a position
2011-08-04move reset code out of HandleMoveToTargetUpdate() so that we only call it ↵Justin Clark-Casey (justincc)1-16/+12
where needed instead of passing in a flag
2011-08-04Make SIGNIFICANT_MOVEMENT SP constant a top-level property so that other ↵Justin Clark-Casey (justincc)1-5/+7
classes can use it.
2011-08-04When the NPC reaches within the SIGNIFICANT_CLIENT_MOVEMENT distance of the ↵Justin Clark-Casey (justincc)1-1/+2
target, move it directly to the target. This makes the movement exact. Regression test changed to check avatar reaches exact target. Also has the nice side effect of making NPC animations continue to work after the first movement (which wasn't working). However, avatar still pauses in mid-stride
2011-08-04extend npc move test to check a second movementJustin Clark-Casey (justincc)1-1/+1
2011-08-04eliminate pre-existing unused SP.StopMovement()Justin Clark-Casey (justincc)1-8/+1
2011-08-04Rename HandleMoveToPositionUpdate() to HandleMoveToTargetUpdate() for ↵Justin Clark-Casey (justincc)1-6/+6
consistency. Improve method doc.
2011-08-04eliminate a reset position flag by using functionally equivalent ↵Justin Clark-Casey (justincc)1-3/+4
DCFlagKeyPressed
2011-08-03Stop calling the SP.ResetMoveToTarget() code if a target is not actually setJustin Clark-Casey (justincc)1-6/+16
2011-08-03remove move to duck walk compensation - no longer required.Justin Clark-Casey (justincc)1-12/+12
extends npc move to regression test to check stop after sufficient sim updates
2011-08-03refactor: rename the move to position methods to move to target to be ↵Justin Clark-Casey (justincc)1-35/+11
consistent with terminology used by scene object part and elsewhere
2011-08-03get rid of vestigal move to parametersJustin Clark-Casey (justincc)1-2/+5
2011-08-03Do a partial fix/implementation of OSSL osNpcMoveTo()Justin Clark-Casey (justincc)1-13/+24
Avatar moves and stops. However, will stop in mid stride. And if the move to position is in the air, avatar will continue to make vain and quite hilarious attempts to take off (but never doing so). Clearly more work is needed.
2011-08-03Improve z axis move to/autopilot so the avatar does alternative ↵Justin Clark-Casey (justincc)1-11/+23
crouch/huzzah when walking along the ground Moving a flying avatar to a ground point doesn't yet land the avatar. This may or may not be the best thing
2011-08-03Implement move to/autopilot for z axis movement as well.Justin Clark-Casey (justincc)1-15/+38
This is jerky (an artifact of the way it's being done, I think), but it's better than on implementation.
2011-08-03get autopilot/go here to work immediately.Justin Clark-Casey (justincc)1-3/+7
This works with viewer 1.23.5 and so in theory should work with libopenmetaverse.
2011-08-03refactor: Move update_movement_flag and the final check inside the ↵Justin Clark-Casey (justincc)1-5/+5
m_allowMovement if in HandleAgentUpdate() since it's logically only ever used there
2011-08-03refactor: move out code from HandleAgentUpdate() which processes updates to ↵Justin Clark-Casey (justincc)1-98/+116
move to a set position Also comment out the really spammy log message I accidentally left in on the last commit.