Mantis#1674. Thank you kindly, Matth for a patch that:
This patch fixes an error in llSetPrimitiveParams() that prevents correctly setting the type of the prim to SCULPT_TYPE.0.6.0-stable
parent
55dda82180
commit
f6375fceb4
|
@ -5086,6 +5086,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
shapeBlock.PathCurve = m_host.Shape.PathCurve;
|
shapeBlock.PathCurve = m_host.Shape.PathCurve;
|
||||||
|
|
||||||
m_host.Shape.SetSculptData((byte)type, sculptId);
|
m_host.Shape.SetSculptData((byte)type, sculptId);
|
||||||
|
m_host.Shape.SculptEntry = true;
|
||||||
m_host.UpdateShape(shapeBlock);
|
m_host.UpdateShape(shapeBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5187,7 +5188,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
taper_b = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
taper_b = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
||||||
topshear = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
topshear = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
||||||
m_host.Shape.PathCurve = (byte) Extrusion.Straight;
|
m_host.Shape.PathCurve = (byte) Extrusion.Straight;
|
||||||
SetPrimitiveShapeParams(face, v, hollow, twist, taper_b, topshear, 1);;
|
SetPrimitiveShapeParams(face, v, hollow, twist, taper_b, topshear, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (int)BuiltIn_Commands_BaseClass.PRIM_TYPE_CYLINDER:
|
case (int)BuiltIn_Commands_BaseClass.PRIM_TYPE_CYLINDER:
|
||||||
|
|
|
@ -4896,6 +4896,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
shapeBlock.PathCurve = m_host.Shape.PathCurve;
|
shapeBlock.PathCurve = m_host.Shape.PathCurve;
|
||||||
|
|
||||||
m_host.Shape.SetSculptData((byte)type, sculptId);
|
m_host.Shape.SetSculptData((byte)type, sculptId);
|
||||||
|
m_host.Shape.SculptEntry = true;
|
||||||
m_host.UpdateShape(shapeBlock);
|
m_host.UpdateShape(shapeBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4997,7 +4998,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
taper_b = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
taper_b = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
||||||
topshear = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
topshear = new LSL_Types.Vector3(rules.Data[idx++].ToString());
|
||||||
m_host.Shape.PathCurve = (byte) Extrusion.Straight;
|
m_host.Shape.PathCurve = (byte) Extrusion.Straight;
|
||||||
SetPrimitiveShapeParams(face, v, hollow, twist, taper_b, topshear, 1);;
|
SetPrimitiveShapeParams(face, v, hollow, twist, taper_b, topshear, 1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case (int)ScriptBaseClass.PRIM_TYPE_CYLINDER:
|
case (int)ScriptBaseClass.PRIM_TYPE_CYLINDER:
|
||||||
|
|
Loading…
Reference in New Issue