diff --git a/applications/cam360/cam360.js b/applications/cam360/cam360.js index fb42aec..4f6c6ac 100644 --- a/applications/cam360/cam360.js +++ b/applications/cam360/cam360.js @@ -63,7 +63,7 @@ "gravity": cameraGravity, "dynamic": true }; - hostType = "local"; + hostType = "avatar"; } else { properties = { "canCastShadow": false, @@ -191,7 +191,7 @@ "name": CAMERA_NAME + "_Flash", "type": "Light", "parentID": camera - }, "local"); + }, "avatar"); } // Take the snapshot! maybeTake360Snapshot(); @@ -277,7 +277,7 @@ // Play a sound at the current camera position Audio.playSound(SOUND_SNAPSHOT, { "position": { "x": currentCameraPosition.x, "y": currentCameraPosition.y, "z": currentCameraPosition.z }, - "localOnly": isThrowMode, + "localOnly": false, "volume": 0.8 }); Window.takeSecondaryCamera360Snapshot(currentCameraPosition); diff --git a/applications/cam360/grabDetection.js b/applications/cam360/grabDetection.js index 4f69709..5d40445 100644 --- a/applications/cam360/grabDetection.js +++ b/applications/cam360/grabDetection.js @@ -38,7 +38,10 @@ releaseGrab: function () { //print("I was released... entity:" + this.entityID); - Entities.editEntity(this.entityID, {"userData": "RELEASED"}); + var ownerID = Entities.getEntityProperties( this.entityID, ["owningAvatarID"] ).owningAvatarID; + if ( ownerID === MyAvatar.sessionUUID) { + Entities.editEntity(this.entityID, {"userData": "RELEASED"}); + } }, preload: function(entityID) {