aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-08-24Fix bad child prim permissions that can make objects change perms after rezzingMelanie1-0/+21
Port from Avination
2012-08-20refactoring out SetFaceColorSignpostMarv1-52/+15
2012-08-20making use of implicit operators and Util.Clip handling of Vector3SignpostMarv1-21/+26
2012-08-20single operation for PRIM_COLORSignpostMarv1-0/+49
2012-08-20fix typoSignpostMarv1-1/+1
2012-08-17fixing bug that get/set the wrong property for prim types other than sphere ↵SignpostMarv1-1/+2
& box
2012-08-17implementedSignpostMarv1-0/+50
2012-08-15Correct an exception report in SceneObjectPart so it outputs the stack.Robert Adams1-1/+1
2012-08-15enables configurable minimum sizes for physical & non-physical primsSignpostMarv1-7/+6
2012-08-03ImprovedTerseObjectUpdate packet does not support shape updates, thus ↵SignpostMarv1-1/+1
scheduling terse updates will not (and does not) update shape information in the viewer
2012-07-11Many explanitory comments added to the link and delink code inRobert Adams1-8/+20
SOG and SOP. Should have no functionality changes.
2012-07-10refactor: move management of SOP.SitTargetAvatar into SOP.AddSittingAvatar() ↵Justin Clark-Casey (justincc)1-0/+6
and SOP.RemoveSittingAvatar()
2012-07-10Revert "refactor: Add SOP.IsSitTargetOccupied to improve readability"Justin Clark-Casey (justincc)1-6/+1
This reverts commit c8f0d476d2f775ba4d7afca12eeff527b46bb8e2. On reconsideration, I think this is less readable since immediately following code still sets SitTargetAvatar directly
2012-07-10refactor: Add SOP.IsSitTargetOccupied to improve readabilityJustin Clark-Casey (justincc)1-1/+6
2012-07-10Move common code to detect whether a part has a valid sit target into a SOP ↵Justin Clark-Casey (justincc)1-0/+15
property rather than being repeated in SP. This also makes the detection in SP.FindNextAvailableSitTarget() and SendSitResponse() identical. Previously they varied slightly (SendSitResponse didn't check for an older type of invalid quaternion) but the practical effect is most probably zero.
2012-07-10Fix recent SOP.GetSittingAvatars() to return null if there are no sitting ↵Justin Clark-Casey (justincc)1-2/+12
avatars rather than throwing an exception. Extends sitting avatar regression tests to test new sitters information
2012-07-09Do not allow a script to attach a prim if its being sat upon.Justin Clark-Casey (justincc)1-7/+91
This prevents a stack overflow where a get position on the avatar will refer to the attachment which will in turn refer back to the avatar. This required recording of all sitting avatars on a prim which is done separately from recording the sit target avatar. Recording HashSet is null if there are no sitting avatars in order to save memory.
2012-06-20refactor: use SOG.HasPrivateAttachmentPoint in SOP.SendTerseUpdateToClient() ↵Justin Clark-Casey (justincc)1-2/+3
instead of attachmentpoint magic numbers.
2012-06-20minor: If logging because mesh/sculpt data isn't present for an object, log ↵Justin Clark-Casey (justincc)1-1/+1
object UUID rather than local id, since UUID doesn't potentially vary between simulator starts.
2012-06-14Add SOG.HasPrivateAttachmentPoint to tell if a SOG has a private attachment ↵Justin Clark-Casey (justincc)1-2/+3
point. HUDs attachment points are private. Change SOP.SendFullUpdateToClient() and SoundModule.PlayAttachedSound() to use this rather than different magic number formulations. This also corrects a bug in PlayAttachedSound() where the code assumed that all attachment points over 30 were HUDs. It appears this is no longer true with Neck and Root (Avatar Center)
2012-05-29Fix collision filtering. The filter should be checked on the receiving part!Melanie1-9/+9
2012-05-15Fix issue where loading OARs could sometimes result in link numbers being ↵Justin Clark-Casey (justincc)1-1/+12
reordered. This was because the parts in scene objects were sometimes not serialized in link order. This is perfectly fine since the parts still have the right link numbers, but an extra fix to adjust for this had not been done in the SerialiserModule methods that OAR loading used. Add regression test for same. Addresses http://opensimulator.org/mantis/view.php?id=5948, http://opensimulator.org/mantis/view.php?id=5749
2012-05-14Add another null check to Melanie's last commit. Seems to eliminate sqlite ↵dahlia1-1/+1
errors in log but no idea if it's working properly
2012-05-15Guard against null root part on SQLite. This really needs to be fixed so SQLiteMelanie1-1/+1
loads roots before children like MySQL does.
2012-05-15Try to fix sqlite breakageMelanie1-0/+3
2012-05-15Port Avination's collision fixes to core.Melanie1-501/+181
2012-05-09Remove physics actor related race conditions in SetVehicleFlags() and ↵Justin Clark-Casey (justincc)1-7/+9
SetPhysicsAxisRotation() sop.PhysActor can currently become null at any time.
2012-04-22Fix bug where setting phantom on a prim would result in a server log message ↵Justin Clark-Casey (justincc)1-3/+6
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 regression test for prim status when root prim in a new linkset is ↵Justin Clark-Casey (justincc)1-1/+1
non-physical
2012-04-21Add TestSetPhysics() to SOP status testsJustin Clark-Casey (justincc)1-3/+6
2012-04-07Rather than having a FromFolderID property on every single prim and only ↵Justin Clark-Casey (justincc)1-2/+0
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)1-2/+0
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-03remove possible PhysActor unexpectedly null race conditions when changing ↵Justin Clark-Casey (justincc)1-57/+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)1-91/+116
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-07Always zero the PhysActor on dupes to prevent side effects on the orignal primMelanie1-4/+1
2012-02-19Fix:OmegaX, OmegaY and OmegaZ not saved for child prims ↵PixelTomsen1-3/+3
http://opensimulator.org/mantis/view.php?id=5893 Signed-off-by: nebadon <michael@osgrid.org>
2012-02-15In ObjectTortureTests, run garbage collector on Teardown and run scene loop ↵Justin Clark-Casey (justincc)1-0/+3
update when scene objects have been deleted. At least on mono 2.6.4, running GC.Collect() is not guaranteed to force gc of all objects when run in the same method where those objects had references. Therefore, GC.Collect() is now being done in the per-script teardown of ObjectTortureTests. In addition, scene loop update is being run after garbage collection in order to clean out the viewer update list of scene objects in the SceneGraph. These measures mean that scene objects/parts are now garbage collected after a test run if deleted from the scene, resulting in a much better memory usage report (though probably still not very accurate). However, deletion takes a very long time - what's really needed is to find out now why the entire scene isn't being GC'd by this measure. This change hasn't yet been applied to the other stress tests.
2012-02-07Remove debug logging if physics actor is null in SOP.ApplyPhysics()Justin Clark-Casey (justincc)1-5/+1
This is not valid in the case of BasicPhysics which can return a null PhysicsActor (though I think it should really return a do-nothing PhysicsActor).
2012-02-03Check for null scene in ScheduleFullUpdate and ScheduleTerseUpdate before ↵Dan Lake1-4/+7
triggering events on a potentially null Scene
2012-02-02Commenting out new event until I can fix OpenSim tests. Currently, testing ↵Dan Lake1-6/+6
objects does not create a Scene or EventManager so triggering events crashes some tests
2012-02-02OpenSim tests do not always create an EventManager so calls to trigger ↵Dan Lake1-2/+6
events during tests must check for null EventManager
2012-01-28Add an overloaded SceneObjectPart.UpdateTextureEntry(Primitive.TextureEntry ↵Justin Clark-Casey (justincc)1-4/+12
texEntry) for region modules
2012-01-19Trigger event when prims are scheduled for an update. This gives modules ↵Dan Lake1-0/+4
early access to changed parameters.
2012-01-19Cleaned up Color and Text parameters in SOP and made LocalFlags public for ↵Dan Lake1-20/+6
module access.
2012-01-13Cleaned up the LookAt code in SOP and SOG. Added support for incrementallyMic Bowman1-39/+30
rotating physical objects. This does not use physics. Currently the rate of change is determined as 1 / (PI * Strength).
2012-01-12HG: normalize all externalized user ULRs to be the Home URL, i.e. the ↵Diva Canto1-2/+2
location of the user's UAS. This corrects an earlier design which had some cases pointing to the profile server. WARNING: CONFIGURATION CHANGES in both the sims (*Common.ini) and the Robust configs (Robust.HG.ini). Please check diff of the example files, but basically all vars that were pointing to profile should point to the UAS instead and should be called HomeURI.
2012-01-05Small fix to GetWorldPosition to get closer to Avination sit behaviorMelanie1-10/+4
2011-12-22rename Scene.m_physicalPrim to PhysicalPrims since its public and access ↵Justin Clark-Casey (justincc)1-1/+1
external as a property