Fix support for PRIM_SCULPT_FLAG_INVERT and PRIM_SCULPT_FLAG_MIRROR in the llSetPrimitiveParams series of functions. This makes it possible to mirror a sculpt by script.
parent
c5878b6610
commit
e962c44749
|
@ -7112,13 +7112,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
shapeBlock.PathScaleX = 100;
|
shapeBlock.PathScaleX = 100;
|
||||||
shapeBlock.PathScaleY = 150;
|
shapeBlock.PathScaleY = 150;
|
||||||
|
|
||||||
if (type != (int)ScriptBaseClass.PRIM_SCULPT_TYPE_CYLINDER &&
|
if ((type & (int)ScriptBaseClass.PRIM_SCULPT_TYPE_CYLINDER) == 0 &&
|
||||||
type != (int)ScriptBaseClass.PRIM_SCULPT_TYPE_PLANE &&
|
(type & (int)ScriptBaseClass.PRIM_SCULPT_TYPE_PLANE) == 0 &&
|
||||||
type != (int)ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE &&
|
(type & (int)ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE) == 0 &&
|
||||||
type != (int)ScriptBaseClass.PRIM_SCULPT_TYPE_TORUS)
|
(type & (int)ScriptBaseClass.PRIM_SCULPT_TYPE_TORUS) == 0)
|
||||||
{
|
{
|
||||||
// default
|
// default
|
||||||
type = (int)ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE;
|
type = type | (int)ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// retain pathcurve
|
// retain pathcurve
|
||||||
|
|
Loading…
Reference in New Issue