From 7ade5b07a6ec40a5a3964d549f843dd0314d90c8 Mon Sep 17 00:00:00 2001 From: seefo Date: Fri, 2 Jun 2017 11:35:56 -0700 Subject: [PATCH] Final touches to Polaroids --- scripts/system/snapshot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index 4667893949..bda18b75e9 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -278,8 +278,8 @@ function onMessage(message) { } } -var polaroid_print_sound = SoundCache.getSound(Script.resolvePath("assets/sounds/sound-print-photo.wav")); -var model_url = 'http://hifi-content.s3.amazonaws.com/alan/dev/Test/snapshot.fbx'; +var POLAROID_PRINT_SOUND = SoundCache.getSound(Script.resolvePath("assets/sounds/sound-print-photo.wav")); +var POLAROID_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/alan/dev/Test/snapshot.fbx'; function printToPolaroid(image_url) { var polaroid_url = image_url; @@ -296,7 +296,7 @@ function printToPolaroid(image_url) { "name": "New Snapshot", "description": "Printed from Snaps", - "modelURL": model_url, + "modelURL": POLAROID_MODEL_URL, "position": model_pos, "rotation": model_rot, @@ -319,7 +319,7 @@ function printToPolaroid(image_url) { }; var polaroid = Entities.addEntity(properties); - Audio.playSound(polaroid_print_sound, { + Audio.playSound(POLAROID_PRINT_SOUND, { position: model_pos, localOnly: false, volume: 0.2