Fixed a bug in Polaroid canRez listener

This commit is contained in:
seefo 2017-06-02 13:47:58 -07:00
parent 7ade5b07a6
commit fa726f43a6

View file

@ -717,8 +717,6 @@ function processRezPermissionChange(canRez) {
action = 'setPrintButtonDisabled';
}
print(action);
tablet.emitScriptEvent(JSON.stringify({
type: "snapshot",
action : action
@ -733,8 +731,8 @@ tablet.screenChanged.connect(onTabletScreenChanged);
GlobalServices.myUsernameChanged.connect(onUsernameChanged);
Snapshot.snapshotLocationSet.connect(snapshotLocationSet);
Entities.canRezChanged.connect(processRezPermissionChange);
Entities.canRezTmpChanged.connect(processRezPermissionChange);
Entities.canRezChanged.connect(updatePrintPermissions);
Entities.canRezTmpChanged.connect(updatePrintPermissions);
Script.scriptEnding.connect(function () {
if (buttonConnected) {