Mantis 6343: Turn a prim to flexy to OFF don't work llSetPrimParams

Correction so that scripts can turn Flexi off as well as on.
0.7.4-extended
Talun 2013-01-26 00:34:42 +00:00 committed by Justin Clark-Casey (justincc)
parent d3bbfcc97b
commit 25a9ad1722
1 changed files with 10 additions and 3 deletions

View File

@ -1674,11 +1674,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
part.Shape.FlexiForceX = (float)Force.x; part.Shape.FlexiForceX = (float)Force.x;
part.Shape.FlexiForceY = (float)Force.y; part.Shape.FlexiForceY = (float)Force.y;
part.Shape.FlexiForceZ = (float)Force.z; part.Shape.FlexiForceZ = (float)Force.z;
part.Shape.PathCurve = 0x80; part.Shape.PathCurve = (byte)Extrusion.Flexible;
}
else
{
// Other values not set, they do not seem to be sent to the viewer
// Setting PathCurve appears to be what actually toggles the check box and turns Flexi on and off
part.Shape.PathCurve = (byte)Extrusion.Straight;
part.Shape.FlexiEntry = false;
}
part.ParentGroup.HasGroupChanged = true; part.ParentGroup.HasGroupChanged = true;
part.ScheduleFullUpdate(); part.ScheduleFullUpdate();
} }
}
/// <summary> /// <summary>
/// Set a light point on a part /// Set a light point on a part