Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008364opensim[REGION] Script Functionspublic2018-09-07 16:392018-10-09 02:44
ReporterSei Lisa 
Assigned To 
PlatformOperating SystemOperating System Version
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008364: Attachment rotation lost for props
DescriptionThere is no attachment rotation separate from non-attached rotation. As a consequence, the rotation when attached is lost for objects that are rezzed by scripts, most notably props, because they don't have access to that rotation (and even if they did, it may be inconvenient to rez them in weird rotations just to match the rotation when attached).

Originally I thought this was a scripting problem, but it is not, as indicated in a latter comment. I've keep the original description after this line.

When 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 (used in Kitely).

Originally reported against AVsitter. The original report thread contains a workaround script: [^]
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
Script Engine
Mono VersionNone
Attached Files

- Relationships

-  Notes
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.
BillBlight (developer)
2018-09-08 09:25

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

FreakyTech (reporter)
2018-09-08 15:50

Actually that does not matter since that is a missing part in the object serialization.
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 BillBlight Note Added: 0032925
2018-09-08 15:50 FreakyTech Note Added: 0032926
2018-09-11 07:15 UbitUmarov Note Added: 0032928
2018-10-09 02:44 Sei Lisa Summary Attachment rotation broken for props => Attachment rotation lost for props
2018-10-09 02:44 Sei Lisa Description Updated View Revisions

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker