fix ossl set ProjectionFocus range

This commit is contained in:
UbitUmarov
2024-02-22 18:16:25 +00:00
parent 76c813c2e4
commit 35a40ada77

View File

@@ -3969,7 +3969,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
obj.Shape.ProjectionEntry = true;
obj.Shape.ProjectionTextureUUID = texID;
obj.Shape.ProjectionFOV = Util.Clamp((float)fov, 0, 3.0f);
obj.Shape.ProjectionFocus = Util.Clamp((float)focus, 0, 20.0f);
obj.Shape.ProjectionFocus = Util.Clamp((float)focus, -20.0f, 20.0f);
obj.Shape.ProjectionAmbiance = Util.Clamp((float)amb, 0, 1.0f);
obj.ParentGroup.HasGroupChanged = true;