mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Thank you, HomerHorwitz, for a patch that add PERMISSION_CONTROL_CAMERA
Fixes Mantis #1861
This commit is contained in:
@@ -2559,6 +2559,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
// When attached, certain permissions are implicit if requested from owner
|
||||
int implicitPerms = BuiltIn_Commands_BaseClass.PERMISSION_TAKE_CONTROLS |
|
||||
BuiltIn_Commands_BaseClass.PERMISSION_TRIGGER_ANIMATION |
|
||||
BuiltIn_Commands_BaseClass.PERMISSION_CONTROL_CAMERA |
|
||||
BuiltIn_Commands_BaseClass.PERMISSION_ATTACH;
|
||||
|
||||
if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms
|
||||
@@ -2576,6 +2577,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
{
|
||||
// When agent is sitting, certain permissions are implicit if requested from sitting agent
|
||||
int implicitPerms = BuiltIn_Commands_BaseClass.PERMISSION_TRIGGER_ANIMATION |
|
||||
BuiltIn_Commands_BaseClass.PERMISSION_CONTROL_CAMERA |
|
||||
BuiltIn_Commands_BaseClass.PERMISSION_TRACK_CAMERA;
|
||||
|
||||
if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms
|
||||
|
||||
Reference in New Issue
Block a user