Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008364opensim[REGION] Script Functionspublic2018-09-07 16:392018-09-11 07:15
ReporterSei Lisa 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008364: Attachment rotation broken for props
DescriptionWhen a prop is rezzed via llRezObject or llRezAtRoot, the stored attachment position is preserved, but the stored attachment rotation is lost. This affects attaching manually by taking the object, as well as llAttachToAvatar / llAttachToAvatarTemp.
Steps To Reproduce- Create a torus.
- Attach it to your hand.
- Adjust it so it looks roughly like a bracelet. This requires a 90° rotation, scaling and some movement.
- Detach it, and put it inside another container object.
- Put the following script inside the container object: default{touch_start(integer n){llRezObject(llGetInventoryName(INVENTORY_OBJECT,0),llGetPos()+<0,0,1>,<0,0,0>,<0,0,0,1>,1);}}
- Touch the object. The torus will be rezzed.
- Take the new torus.
- Attach it. Observe the position is right, but the rotation is wrong.
- Take the torus that is still in the container's inventory and attach it. Observe the position and the rotation are both right, meaning that it's llRezObject that broke it.
Additional InformationUsing llAttachToAvatar or llAttachToAvatarTemp to attach the object, makes no difference. This breaks stored rotations in props.

This affects all versions at least back to 0.8.2.1 (used in Kitely).

Originally reported against AVsitter. The original report thread contains a workaround script: https://github.com/AVsitter/AVsitter/issues/74 [^]
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBulletSim
EnvironmentUnknown
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0032924)
Sei Lisa (reporter)
2018-09-08 07:38

After investigating this a little more, it seems to attach with the rotation used in llRezObject. Since the rezzer script in the repro steps uses zero rotation, that's the rotation that the attachment gets.

The same problem is reproducible by rezzing the object manually, rotating it and taking it back, then attaching. It seems that the object does not store a rotation specific to attachments, but just remembers the last rotation it was at, be it attached or rezzed. These should be independent.

That also means that I reported this in the wrong category, as this is not a scripting issue. Sorry about that.
(0032925)
watcher64 (reporter)
2018-09-08 09:25

Have you tried the ossl functions to see if they suffer from the same issue ..

osForceAttachToAvatar
osForceAttachToAvatarFromInventory
osForceAttachToOtherAvatarFromInventory
(0032926)
FreakyTech (reporter)
2018-09-08 15:50

Actually that does not matter since that is a missing part in the object serialization.
(0032928)
UbitUmarov (administrator)
2018-09-11 07:15

yes so far there is no independent attachment rotation
lets keep this open as a reminder future revision

- Issue History
Date Modified Username Field Change
2018-09-07 16:39 Sei Lisa New Issue
2018-09-08 07:38 Sei Lisa Note Added: 0032924
2018-09-08 09:25 watcher64 Note Added: 0032925
2018-09-08 15:50 FreakyTech Note Added: 0032926
2018-09-11 07:15 UbitUmarov Note Added: 0032928


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker