Commit Graph

329 Commits (8acb60df0d6695f17f08e5f4a9fc17247ce45e17)

Author SHA1 Message Date
Justin Clarke Casey f9530eb0c7 * Apply http://opensimulator.org/mantis/view.php?id=2633 to stable branch
* This stops object persistence at shutdown persisting objects that should not be saved.
* Thanks idb.
2008-11-17 20:39:54 +00:00
Jeff Ames bbb8d6fc51 Remove empty OSUUID.cs file. Add copyright headers. Minor formatting cleanup. 2008-11-08 14:28:43 +00:00
Justin Clarke Casey bf9384d594 * Apply http://opensimulator.org/mantis/view.php?id=2582
* Send prim flags as booleans from LLClientView rather than in the native LL array
* Thanks idb
2008-11-07 22:57:32 +00:00
Justin Clarke Casey 4ace67a81d * Fix bug in r7162 where avatars could not move
* Was caused by the lack of a local id.  Local ids are now given from the same sequence as prims, rather than a separate one
* I don't believe this will cause any problems, but please revert to a separate sequence if it does
2008-11-07 22:49:36 +00:00
Justin Clarke Casey fb694fb177 * Rename PrimIDAllocate() to more effectively convey what it does, and put the verb at the front 2008-11-07 21:50:03 +00:00
Justin Clarke Casey 54e10e5b61 * Stop requiring local ids in the SOG constructors.
* These are assigned when the object is attached to the scene
2008-11-07 21:07:14 +00:00
Justin Clarke Casey af35f4cb4a * refactor: stop unnecessary passing of scene to sog copy constructor
* this is now done in AttachToScene()
2008-11-07 19:49:22 +00:00
Justin Clarke Casey f3edbcfa3b * Stop prim attach being signalled twice (it is already been done outside AttachToScene()) 2008-11-07 19:30:20 +00:00
Justin Clarke Casey e34eaec553 * Remove more UpdateParentIDs() calls that are now duplicates 2008-11-07 19:17:24 +00:00
Justin Clarke Casey e08c4376f7 * Apply http://opensimulator.org/mantis/view.php?id=1883
* Fix llSetStatus() and llSetPrimitiveParams()
* Thanks idb
2008-11-07 19:02:55 +00:00
Justin Clarke Casey cd96a33976 * Stop now unnecessary separate local id allocation for restored objects
* remove a debug line I accidentally left in there
2008-11-07 18:52:28 +00:00
Justin Clarke Casey ebd9f22b29 * refactor: allocate local ids to prims only when an object is attached to a scene 2008-11-07 18:46:11 +00:00
Melanie Thielker 48c6d052d9 Attachments, attachments, and, did I say attachments?
Too many fixes to list.
2008-11-07 05:48:44 +00:00
Justin Clarke Casey eec8c6cd6e * Remove SceneObjectPart.AttachToScene() since the remaining instruction can be done by other means 2008-11-06 23:40:58 +00:00
Justin Clarke Casey 0d17ba2a76 * refactor: Attach a scene object to a scene separately from its construction 2008-11-06 22:21:25 +00:00
Adam Frisby 84136c70d8 * Minor cleanup
* Added additional error message when a Object/SOG DB save fails so we can trace why.
2008-11-01 22:20:54 +00:00
Justin Clarke Casey 9366a234cf * refactor: Convert most non SOP methods to use SOG.IsAttachment rather than SOP.IsAttachment 2008-11-01 22:04:35 +00:00
Justin Clarke Casey 7c04d27875 * Introduce an IsAttachment property on the group level (which just returns false if the group is already deleted)
* This is to avoid repetitive null checks - I'm beginning to think that blasting away the root part on object deletion is actually a bad move.  Perhaps we should leave it around 
and let the client ignore any superfluous packets (which it may well do anyway), since we're constantly exposing a race condition
2008-11-01 21:50:07 +00:00
Justin Clarke Casey b03e34dd2d * Fix http://opensimulator.org/mantis/view.php?id=2517
* Don't save attachments on saving oar, which stops them coming back as ghost prims
2008-11-01 21:28:52 +00:00
Jeff Ames 395a0f7977 Minor formatting cleanup. 2008-10-29 03:22:54 +00:00
Dr Scofield 1a06045c98 From: Christopher Yeoh <yeohc@au1.ibm.com>
The attached patch fixes the bug where when linking in a new set of
prims to an already linked set of objects the prims were placed at the
end of the list rather than just after the root prim. ie.  link prim
order result was different on OpenSim compared to an LL server. This
causes a few issues with respect to compatibility of scripts,
especially when using llCreateLink.
2008-10-28 11:26:23 +00:00
Charles Krinke 3c99f027b5 Thank you both Nlin and M.Igarashi for a patch that:
Attached patch protects against a NullReferenceException 
in SceneObjectGroup.stopMoveToTarget (used by LSL function 
llStopMoveToTarget). Thanks to M. Igarashi.
2008-10-22 14:06:07 +00:00
Melanie Thielker 81e220af8d Mantis #2439
MemberwiseClone() also clones the "already backed up" flag, preventing prims
created by drag-copying from being persisted. If such a prim is made the root
prims of a link set, the entire set will not be persisted. Fixed now.
2008-10-20 22:14:24 +00:00
Melanie Thielker 16d8c40a93 A small attempt to make persisting prims more reliable 2008-10-19 00:06:33 +00:00
Melanie Thielker 1bd33aa51a Prevent a null root part from stopping objects from being persisted, also
remove any such objectsd from backup
2008-10-18 15:43:02 +00:00
Melanie Thielker 48890ea349 Guard against a null ref that can prevent objects from being persisted 2008-10-18 15:23:29 +00:00
Melanie Thielker 264eeffd02 Fix thingd so that autoreturn also works when the user is not in the sim.
Also add experimental distance ordering for prims
2008-10-18 07:27:39 +00:00
Melanie Thielker efe3f3eb2a Megapatch. :) Fix skull attachment editing. Streamline Object terse updates.
Add rezzing time to objects. Add Object return and traffic fields to land
database. Add plumbing for auto return. Implement auto return.
Contains a migration. May contain nuts.
2008-10-18 05:51:36 +00:00
Justin Clarke Casey 0d6eb37ac5 * minor: Make it clear that non-scheduled updates can happen outside of the per frame update heartbeat 2008-10-14 15:56:14 +00:00
Justin Clarke Casey 3b9400bcea * refactor: rename SendKiPrimitive to SendKillObject since this appears more descriptive of what it actually does 2008-10-14 14:43:46 +00:00
Homer Horwitz 628e3a9553 - Patching a symptom of the failed WP start. We really need to find the reason
for that...
2008-10-11 16:58:05 +00:00
Melanie Thielker b55c9761b4 Fix a nullref 2008-10-06 04:20:27 +00:00
Melanie Thielker 1f7966d6e8 Fix a privilege escalation with linked sets 2008-10-06 02:29:38 +00:00
Jeff Ames aab6cdd8b0 Update svn properties, minor formatting cleanup. 2008-10-05 14:15:39 +00:00
Melanie Thielker ee4c01f5e6 Tiny performance tweak 2008-10-04 06:57:20 +00:00
Melanie Thielker 439589260c Avoid a gratuitious KillObject storm on region crossing 2008-10-04 05:38:16 +00:00
Melanie Thielker 74f89fb22d Add "Drop" functionality to pie menu 2008-10-04 01:09:22 +00:00
Melanie Thielker ab260b5d23 Fix: Mantis#2326: Fix: privilege escalation through attach from ground
Fix: objects being duplicated inventory on detach. Fix: Mad jumping around of
attachments while editing. Fix: Attachments being persisted to database on
login. Fix: Attachments being persisted when changed by a script like
invisprim refresh. Fix: Attachpoint set, but not reset correctly. Fix: prevent
spurious full updates while editing attachments. Several other fixes
2008-10-03 21:44:33 +00:00
Melanie Thielker 1b2380db84 Cause objects to be removed from the database when they go temp or get
attached. Also make sure that parcel prim counts get updated
2008-10-03 16:18:38 +00:00
Melanie Thielker 3902149e1b Implement temp-on-rez objecte really being temporary 2008-10-03 15:32:44 +00:00
Melanie Thielker 36097a8198 Prevent attachments to be persisted in the destination region when the
avatar is not present there.
2008-10-03 13:45:54 +00:00
Melanie Thielker c9fbc03a18 Attempt to prevent attached prims from being persisted. Attachments with
invisiprim refresh scripts get sent to the database and remain there when
the agent logs out. This tries to prevent that.
2008-10-03 05:23:30 +00:00
Teravus Ovares 16b6738cda * Patch from JHurliman
* Updates to libomv r2243, 
* Remove lots of unnecessary typecasts
* Improves SendWindData()
Thanks jhurliman. 
* Will update OpenSim-libs in 10 minutes..
2008-09-26 17:25:22 +00:00
Homer Horwitz 0f020a7cd2 Fix another reason for #2218 2008-09-21 17:01:58 +00:00
Homer Horwitz f6071c030d Don't attach attachements to child agents. This coincidentially fixes a race
condition that was the reason for mantis #2218.
2008-09-21 16:07:41 +00:00
Melanie Thielker 23c217dd7b Kan-Ed fix series.
Correct a condition where a prim is linked before it has been persisted
for the first time and is then persisted through it's former SOG with
a bad offset position.
2008-09-18 15:24:16 +00:00
Melanie Thielker 7e8320bada Kan-Ed fix series. Fix llTakeControls to behave as documented.
XEngine fixes: prevent queue overruns, prevent spamming when no key
is down. Release controls when conflicting permissions are requested
or permissions are refused later. Release when prim or script are deleted.
Fixes Scene script instance deletion semantics.
2008-09-17 22:00:56 +00:00
Justin Clarke Casey f437c4d8c9 * minor: oops, remove a warning I just inserted myself - naughty boy 2008-09-16 17:35:35 +00:00
Justin Clarke Casey ec4189b722 * If an individual scene object throws an exception while storing, deal with this locally rather than letting it propogate up the stack
* This will allow other scene objects to persist and stop the exception taking down the whole region server
2008-09-16 17:30:30 +00:00
Justin Clarke Casey 90ec9c46d5 * Move the ResetChildPrimPhysics() calls to after physics have been applied to the parts rather than after each individual part
* From looking at the code there shouldn't be any difference, and this appears to speed up prim loading and make a certain failure case (where prims seem to be going out of 
bounds on startup) less of a problem.
* However, if I've been bad please revert this patch
2008-09-12 00:45:24 +00:00