mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Preserve attachment point & position when attachment is rezzed in world
Patch taken from
http://opensimulator.org/mantis/view.php?id=4905
originally by Greg C.
Fixed to apply to r/23314 commit
ba9daf849e
(cherry picked from commit 4ff9fbca441110cc2b93edc7286e0e9339e61cbe)
This commit is contained in:
committed by
teravus
parent
a37c59b43e
commit
2dc92e7de1
@@ -105,6 +105,7 @@ namespace OpenSim.Framework
|
||||
private ushort _profileHollow;
|
||||
private Vector3 _scale;
|
||||
private byte _state;
|
||||
private byte _lastattach;
|
||||
private ProfileShape _profileShape;
|
||||
private HollowShape _hollowShape;
|
||||
|
||||
@@ -207,6 +208,7 @@ namespace OpenSim.Framework
|
||||
PCode = (byte)prim.PrimData.PCode;
|
||||
|
||||
State = prim.PrimData.State;
|
||||
LastAttachPoint = prim.PrimData.State;
|
||||
PathBegin = Primitive.PackBeginCut(prim.PrimData.PathBegin);
|
||||
PathEnd = Primitive.PackEndCut(prim.PrimData.PathEnd);
|
||||
PathScaleX = Primitive.PackPathScale(prim.PrimData.PathScaleX);
|
||||
@@ -583,6 +585,15 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
public byte LastAttachPoint {
|
||||
get {
|
||||
return _lastattach;
|
||||
}
|
||||
set {
|
||||
_lastattach = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ProfileShape ProfileShape {
|
||||
get {
|
||||
return _profileShape;
|
||||
|
||||
Reference in New Issue
Block a user