UbitUmarov
935510d879
add llGetMaxScaleFactor and llGetMinScaleFactor
2016-11-25 18:35:23 +00:00
UbitUmarov
b82a41d260
change llScaleByFactor (sorry Mandarinka).
2016-11-25 17:34:19 +00:00
UbitUmarov
4e64445c39
replace datetime.now on just timming by faster utcnow
2016-11-22 05:18:06 +00:00
UbitUmarov
586e4cf163
ignore prims with shape type none on max size check for physics
2016-10-17 19:16:07 +01:00
UbitUmarov
6779f41e21
fix linknumbers when unlink the root prim
2016-09-24 22:21:51 +01:00
UbitUmarov
2338d3d2e5
change spinobject math, and a few minor things
2016-09-16 22:10:36 +01:00
UbitUmarov
fb46eb3344
pass touch_end as other touchs, make blockgrab work on nonphysical also
2016-09-16 19:23:56 +01:00
UbitUmarov
ddc2f2ccd3
mantis: 8008 unscripted child prim collisions didn't trigger scripted root prim collision events; collision sounds had incorrect aggregateevents call and default sounds where muted. Future optimization needed and Testing
2016-08-28 08:45:09 +01:00
UbitUmarov
03dba18bb6
let mouse steer work on crossings; some cleanup
2016-08-28 04:43:44 +01:00
UbitUmarov
8f509af1f4
fix the conditions to do parcel objects autoreturn
2016-08-24 04:37:21 +01:00
UbitUmarov
426e8a798f
(re)fix avatar standup from a child prim on object delete
2016-08-22 00:28:54 +01:00
UbitUmarov
d386bfa1b6
on sog unlink loose the reference to the deleted physics actor
2016-08-19 21:21:59 +01:00
UbitUmarov
e734d526fc
on object delete send a direct kill and a delayed one via updates queue, Until we find why some are missing, (if its not by udp nature). also remove redundant avatar stands
2016-08-19 17:57:19 +01:00
UbitUmarov
c04792142f
partially revert commit 42a9afdc43cc.. of 06-12 not allowing more updates to be enqueued on deleted objects. Keep the catch up on deenqueue, so preserving the race condition safe guard. Let Scene sendkillObject work even if object is flaged as deleted. Still not clear how this are related to mantis 7858 or even less to 7990.
2016-08-12 03:58:04 +01:00
UbitUmarov
6f5f6431a4
add a SimpleAngularDistance Updates prioritazition scheme. Results don't look that great so don't use it still.
2016-08-09 21:46:19 +01:00
UbitUmarov
32e30afbcb
actually that was redundante, already done at low level
2016-07-27 21:31:43 +01:00
UbitUmarov
8c46ab02c7
move refresh forces into applyphysics
2016-07-27 21:11:39 +01:00
UbitUmarov
e951f4cc96
a few more changes relative to sits crossing
2016-07-27 14:28:16 +01:00
UbitUmarov
445fb51455
make getBoundsCenter() call GetBoundsRadius() to do the math if needed
2016-07-13 22:35:46 +01:00
UbitUmarov
00687d5b0f
use geometric center and not sog root position in culling
2016-07-13 22:29:09 +01:00
UbitUmarov
bc6c342d01
let radius be radius, not diameter
2016-07-12 17:21:34 +01:00
UbitUmarov
d879e119a8
add object UUID to a debug/warn message
2016-07-12 14:45:20 +01:00
UbitUmarov
11a8a722df
don't auto return objects if they have sitting avatars (not npcs) - mantis 7828 with diferent code
2016-07-08 09:56:59 +01:00
Diva Canto
e38f16d800
Correction of a test introduced in 34b308d5b6
2016-07-07 13:06:37 -07:00
UbitUmarov
0eabfb1e3e
add some needed InvalidBoundsRadius() calls
2016-07-06 16:45:27 +01:00
UbitUmarov
c02fe98b7d
add test option ObjectsCullingByDistance. In future, if true, it may
...
prevent sending objects outside view range to viewers. DO NOT SET TRUE
unless testing it. Code still not completei!!!
2016-07-06 16:13:27 +01:00
Diva Canto
e00603f78a
New config var: DisableObjectTransfer. If set to True, objects never cross; instead they stay in the region, possibly placed outside its borders.
2016-07-03 12:24:31 -07:00
Diva Canto
34b308d5b6
Guard against multiple calls to SetOwnerId on one logical ownership change.
2016-06-20 16:02:37 -07:00
Diva Canto
623a2f859f
Mantis #7929 : objects deeded to the group were loosing some important properties. This makes the "For sale" be visible, but is not the end of the story.
2016-06-20 10:05:17 -07:00
Diva Canto
d0c65d15dc
Still mantis #7858 : send kill object / update to child agents too
2016-06-12 14:29:30 -07:00
Diva Canto
42a9afdc43
Mantis #7858 : DeleteSceneObject done slightly differently. ProcessEntities now checks whether the objects have been deleted and, if so, sends an extra kill object packet, in order to compensate for potential race conditions encountered by the first one.
...
Note: I still cannot reproduce this problem, but I was able to emulate it by adding an artificial delay on ProcessEntities, which did, indeed, result in objects not being deleted. This fix fixed my emulated scenario.
2016-06-12 12:23:52 -07:00
UbitUmarov
b35d3a3134
fix backup control flag, still a bad merge effect
2015-12-11 02:06:32 +00:00
UbitUmarov
6de7da467a
keep SOG reference to root part since two many things depend on deleted SOGs not being deleted
2015-12-10 17:04:39 +00:00
UbitUmarov
62009ba9c0
remove some SOG references on delete to help GC
2015-12-10 14:00:43 +00:00
UbitUmarov
7d8b783d31
send a full update on GroupResize, not a terse
2015-12-05 08:30:30 +00:00
UbitUmarov
e37c4e878c
more changes on lookAt and RotLookAt; do something in attachments
2015-12-01 12:11:48 +00:00
UbitUmarov
a9e58d6175
some changes due to lookAt and RotLookAt
2015-12-01 10:15:38 +00:00
UbitUmarov
72684592ba
Merge branch 'master' into avinationmerge
...
Conflicts:
OpenSim/Framework/AvatarAppearance.cs
OpenSim/Framework/Servers/ServerBase.cs
OpenSim/Framework/VersionInfo.cs
OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs
OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet/Properties/AssemblyInfo.cs
OpenSim/Region/PhysicsModules/Ode/ODEPrim.cs
OpenSim/Region/PhysicsModules/Ode/OdeScene.cs
OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
OpenSim/Services/HypergridService/GatekeeperService.cs
OpenSim/Services/Interfaces/IAvatarService.cs
OpenSim/Services/LLLoginService/LLLoginService.cs
2015-11-01 03:01:59 +00:00
Melanie Thielker
ea56f4f27c
Introduce an EntityTransferContext carrying the version numbers to pass
...
to all interested functions. Should fix the varregion conditional.
Still a testing version, do NOT use in production!
2015-10-31 18:13:02 +01:00
Melanie Thielker
f0fd028ed9
Merge branch 'master' of opensimulator.org:/var/git/opensim
2015-10-31 00:06:34 +01:00
Melanie Thielker
dc6d9eadf3
Testing stage of the new versioning system. Use at own risk. May not
...
work. Will eat your babies. Yada. Yada.
2015-10-31 00:01:35 +01:00
UbitUmarov
dd9b06e3b6
fix mantis 7733, reverting setting of IsAttachment on first call to full check. Replace instead same simple IsAttachment tests by full checks
2015-10-29 22:14:11 +00:00
UbitUmarov
c3532ba876
set SOG.IsAttachment when doing a full check, so future gets see the right value
2015-10-25 19:59:05 +00:00
UbitUmarov
28d4afbe3a
replace objects scale clamp by a more readable clamp. Simplify GroupResize and let rescale factors < 1 also be checked for size limits, Set new scales directly not checking them again.
2015-10-23 01:39:53 +01:00
UbitUmarov
52860a7d15
stop using a Vector3 to store 3bits
2015-10-20 16:55:18 +01:00
UbitUmarov
dfd60d6f71
STATUS_ROTATE are linkset flags and not prim
2015-10-20 15:37:43 +01:00
UbitUmarov
4a2e6db344
add high level code suport for SetHoverHeight() called from a attachment, so in future physics engines can also suport it
2015-09-30 17:34:25 +01:00
UbitUmarov
0fb033e567
fix object crossings to other scene on same instance
2015-09-26 01:31:57 +01:00
UbitUmarov
032958709b
last merging of sog m_linkedAvatars into m_sittingAvatars - untested.
2015-09-21 21:49:51 +01:00
Kevin Cozens
b412db72be
Fix a regression to GetSittingAvatars(). Return List<ScenePresence> once more.
2015-09-21 11:00:34 -04:00
UbitUmarov
5becc16acf
try to improve vehicles crossing with Xengine. Lag seems main issue now, but needs testing, specially the fail cases, that most likelly need more work
2015-09-14 16:40:01 +01:00
Robert Adams
e5367d822b
Merge of ubitworkvarnew with opensim/master as of 20150905.
...
This integrates the OpenSim refactoring to make physics, etc into modules.
AVN physics hasn't been moved to new location.
Does not compile yet.
Merge branch 'osmaster' into mbworknew1
2015-09-08 04:54:16 -07:00
UbitUmarov
a11edceb00
seems to compile ( tests comented out)
2015-09-02 19:54:53 +01:00
UbitUmarov
371c9dd2af
bad merge?
2015-09-01 14:54:35 +01:00
Diva Canto
ce2c67876e
More namespace and dll name changes. Still no functional changes.
2015-08-30 21:05:36 -07:00
Diva Canto
2c0cad6dd3
Renamed the namespaces too
2015-08-30 20:29:31 -07:00
UbitUmarov
d2776ec645
funny bug
2015-08-19 17:14:29 +01:00
AliciaRaven
cb586d1158
Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)
...
This patch fixes permission issues with dragging scripted objects. As on LL grid, scripted prims can not be dragged. Also after dragging, the group was not marked as updated. This meant that after the region was restarted the group would revert to its original position. This version fixes issues where scripts in child prims were not detected and also blocks grab for attachments.
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-05-13 12:16:14 -05:00
BlueWall
e171ae899d
Revert "Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)"
...
We found that linksets can move if the root prim is unscripted. Will revert this until a fix can be implemented.
2015-04-28 17:24:54 -05:00
AliciaRaven
f11720d71f
Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)
...
This patch fixes permission issues with dragging scripted objects. As on LL grid, scripted prims can not be dragged now. Also after dragging, the group was not marked as updated. This meant that after the region was restarted the group would revert to its original position.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2015-04-20 16:38:37 -04:00
Robert Adams
7d699514a5
Revert "Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)"
...
This change sees to enable general moving of objects with touch scripts.
Reverting until the move permissions are understood.
This reverts commit 28ce323802
.
2015-04-19 20:22:55 -07:00
AliciaRaven
28ce323802
Enable grab feature (Ctrl+Drag) for non-physical link-sets and add code to handle spin (Ctrl+Shift+Drag)
...
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
2015-04-17 19:37:18 -05:00
Robert Adams
07dead7dcb
varregion: any conversions of use of Constants.RegionSize converted into
...
Util.cs routines to convert region coords to and from world coords or handles.
2015-03-29 14:25:12 -07:00
Robert Adams
9f18e3ba80
Varregion: first cut at removing Border class checks for region crossings.
...
Added Scene.PositionIsInCurrentRegion(pos) to sense when new position needs some crossing work.
Many changes made to EntityTransferModule to accomodate new crossing sense logic.
2015-03-22 21:53:02 -07:00
Justin Clark-Casey (justincc)
dd6f560c05
If serialized scene object XML has a SavedScriptState with no UUID, then read past the innerXML instead of wrongly continously looping on the same element.
...
Addresses http://opensimulator.org/mantis/view.php?id=7437
2015-02-11 00:53:56 +00:00
Justin Clark-Casey (justincc)
1d2616e7a2
If the owner of an object is taking a copy from the scene (e.g. via the "take copy" option on a viewer) then only require owner copy perms, not copy and transfer.
...
This matches Linden Lab behaviour and what was already possible via shift-copy.
Transfer would not apply here as the owner and copier are the same.
This is the only functional change, all other current take copy logic remains the same.
Adds regression tests around relevant take copy cases.
2015-02-03 23:43:30 +00:00
Justin Clark-Casey (justincc)
d0a2ea0857
Fix regression where the stored state of every second script in an object rezzed from inventory (e.g. attachments) was no longer loaded.
...
Likely a regression since f132f642
(2014-08-28)
Relates to http://opensimulator.org/mantis/view.php?id=7278
2015-01-23 00:27:57 +00:00
Justin Clark-Casey
3247a7cb3e
refactor: capitalize SOP.moveToTarget() and stopMoveToTarget() in accordance with code guidelines and the rest of the methods.
2014-11-19 20:12:28 +00:00
UbitUmarov
6bebb9206c
fix stopMoveToTarget in attachments case ( similar to core fix)
2014-11-19 20:11:16 +00:00
Justin Clark-Casey
7a2c77e7ea
If calling llStopMoveToTarget() on an in-world prim, don't send an unnecessary object update if the prim was not moving to target.
...
This involves making PhysicsActor.PIDActive get as well as set.
On physics components that don't implement this (all characters and some phys engines) we return false.
2014-11-19 20:06:56 +00:00
Justin Clark-Casey
67e56872f3
If llStopMoveToTarget() is called on an attachment, then stop the avatar if it was moving to target.
...
Same behaviour as on Linden Lab grid.
Will probably also address http://opensimulator.org/mantis/view.php?id=7369 by not generating spurious object updates when llStopMoveToTarget() is called in attachments where the avatar is not moving.
2014-11-19 19:08:33 +00:00
UbitUmarov
37a5eab0f5
BUG FIX prevent references to null scene (as happens on mesh uploads)
2014-11-03 00:03:53 +00:00
UbitUmarov
bc4d0179b3
remove debug message
2014-10-26 12:38:22 +00:00
UbitUmarov
b07ea475bf
delete keyframes on temporary backup group
2014-10-26 12:30:11 +00:00
UbitUmarov
b43ce909aa
Debug... ( restored TriggerOnSceneObjectPreSave)
2014-10-26 11:28:24 +00:00
UbitUmarov
cfc8de096b
remove lock that did nothing, DEBUG disable TriggerOnSceneObjectPreSave
2014-10-26 10:48:53 +00:00
UbitUmarov
6600282fe9
another try to prevent double crossing
2014-10-26 10:08:13 +00:00
UbitUmarov
139044fc79
keep intransit flag even if deleted, dont set sog position if in transit
2014-10-26 01:25:28 +00:00
UbitUmarov
639f128d2c
some cleanup, localID coerence fix..
2014-10-26 01:27:43 +01:00
UbitUmarov
16608ffb01
don't backup in transit SOGs
2014-10-24 21:51:38 +01:00
UbitUmarov
4571e5bc3e
try to make SOG crossings full async. Simplify some borders checking....
2014-10-24 18:10:28 +01:00
Justin Clark-Casey (justincc)
cbd428cff3
Add LSL transaction_result event.
...
This is cinderblocks' transaction_result.diff from http://opensimulator.org/mantis/view.php?id=7329 but I have used lsl.parser.cs and lsl.lexer.cs files generated directly from opensim-libs rather than those supplied in the patch.
I also added scriptEvents.transaction_reuslt.
The required parser/lexer generation file changes were made in commit d564f28 in the opensim-libs repo.
Thanks!
2014-10-04 00:16:47 +01:00
Justin Clark-Casey (justincc)
57e75d7c03
Do not add attachments to the region scene object backup list.
...
Attachment persistence is not handled in this way and this just results in a load of busy work until a check in each SOG terminates a backup check for attachments anyway.
2014-10-02 22:30:44 +01:00
UbitUmarov
79e47eb60e
some changes in link/unlink code, bypassing complex variables set methods
2014-09-22 23:32:55 +01:00
UbitUmarov
ea4a526095
a few more changes on link/unlink
2014-09-22 16:09:39 +01:00
UbitUmarov
bcaf202e34
update scenegraph group find by part information in sog link, so script link functions do update that also.
2014-09-22 13:59:23 +01:00
UbitUmarov
51697944b6
dont send fullObjectUpdate on deselect
2014-09-09 00:09:39 +01:00
UbitUmarov
8e15d4ad57
limit number of prims on physical objects. Not all cases covered still
2014-09-08 23:58:49 +01:00
Justin Clark-Casey (justincc)
099212167b
Implement STATUS_BLOCK_GRAB_OBJECT in llSetStatus()/llGetStatus() and correct effect of STATUS_BLOCK_GRAB
...
As per http://wiki.secondlife.com/wiki/LlSetStatus
Setting STATUS_BLOCK_GRAB_OBJECT prevents or allows move of a physical linkset by grab on any prim.
Setting STATUS_BLOCK_GRAB prevents or allows move of a physical linkset by grab on a particular prim.
Previously, setting STATUS_BLOCK_GRAB would prevent drag via all prims of the linkset.
2014-08-29 23:40:21 +01:00
Justin Clark-Casey (justincc)
1b75ec5647
Ignore whitespace when reading serialized XML objects.
...
This was previously effectively being done by XmlDocument in the multiple passes through the XML.
This change tells XmlReader to ignore whitespace. This also means changing arguments to use XmlReader instead of XmlTextReader (a descendent of XmlReader) directly.
XmlReader.Create() has been the recommend way to create XML readers since .NET 2.0 as per MS SDK and is the only way to specific ignore whitespace settings.
2014-08-29 19:08:23 +01:00
Justin Clark-Casey (justincc)
f132f642b2
On code section that rezzes single objects and attachments, reduce CPU use by reading asset XML a single time with a stream reader rather than multiple times.
...
Reading large XML documents (e.g. complex attachments) is CPU expensive - this must be done as few times as possible (preferably just once).
Reading these documents into XmlDocument is also more resource intensive than using XmlTextReader, as per Microsoft's own publication "Improve .NET Application Performance and Scalability"
Optimization of other cases will follow if this change is successful.
2014-08-28 18:15:33 +01:00
UbitUmarov
0295e6822d
some cleanup ( well or not )
2014-08-22 20:01:07 +01:00
UbitUmarov
ad6f942279
add filter sog updates
2014-08-21 06:11:19 +01:00
UbitUmarov
e296f25445
sitting avatars hidding by their position. This is not as SL that uses
...
avatar sitting on root prim. All cases have good and bad situations, this is
simpler. Only SOG position changes triggers checks, rotation alone will
not. ( as happens in other cases ) (UNTESTED, as usual )
2014-08-01 19:52:55 +01:00
UbitUmarov
c3b5a6c2ab
change how sounds work. May be bad.. needs testing
2014-07-27 08:18:27 +01:00
UbitUmarov
43cf184603
clear script controls on crossing (untested)(possible should be done
...
elsewhere/othe way)
2014-07-26 16:56:21 +01:00
UbitUmarov
fe900b28c6
CrossPrimGroupIntoNewRegion does keyframes and physics crossing fails, so
...
revert previus change assuming it didnt. remove a no longer needed else {}
2014-07-22 15:56:20 +01:00
UbitUmarov
ed905418b3
consider that CrossPrimGroupIntoNewRegion removes DIE_AT_EDGE and
...
RETURN_AT_EDGE from simulation
2014-07-22 15:47:42 +01:00
UbitUmarov
f9fdf26ec3
make ResetChildPrimPhysicsPositions only do what it is supposed to do and
...
not what AbsolutePosition does
2014-07-22 15:13:37 +01:00
UbitUmarov
cf132430ae
tell scripts about positions changes after they are actually changed
2014-07-22 14:50:17 +01:00