mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Changing prim color generates event CHANGED_COLOR.
Signed-off-by: Melanie <melanie@t-data.com>
This commit is contained in:
@@ -3313,6 +3313,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||||||
texcolor.B = Util.Clip((float)color.Z, 0.0f, 1.0f);
|
texcolor.B = Util.Clip((float)color.Z, 0.0f, 1.0f);
|
||||||
tex.FaceTextures[face].RGBA = texcolor;
|
tex.FaceTextures[face].RGBA = texcolor;
|
||||||
UpdateTexture(tex);
|
UpdateTexture(tex);
|
||||||
|
TriggerScriptChangedEvent(Changed.COLOR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (face == ALL_SIDES)
|
else if (face == ALL_SIDES)
|
||||||
@@ -3334,6 +3335,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||||||
tex.DefaultTexture.RGBA = texcolor;
|
tex.DefaultTexture.RGBA = texcolor;
|
||||||
}
|
}
|
||||||
UpdateTexture(tex);
|
UpdateTexture(tex);
|
||||||
|
TriggerScriptChangedEvent(Changed.COLOR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user