Skip to content

Commit

Permalink
Allow sounds to be reset on frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luxapodular committed Sep 28, 2020
1 parent f9c460c commit faf1781
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
7 changes: 6 additions & 1 deletion engine/dist/emptyproject.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- The Wick Engine build is injected here during the engine build step (see gulpfile.js) -->
<script>
/*Wick Engine https://github.com/Wicklets/wick-engine*/
var WICK_ENGINE_BUILD_VERSION = "2020.9.18.12.32.16";
var WICK_ENGINE_BUILD_VERSION = "2020.9.28.15.26.35";
/*!
* Paper.js v0.12.4 - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
Expand Down Expand Up @@ -55662,6 +55662,11 @@
}

set sound(soundAsset) {
if (!soundAsset) {
this.removeSound();
return;
}

this._soundAssetUUID = soundAsset.uuid;
}
/**
Expand Down
7 changes: 6 additions & 1 deletion engine/dist/wickengine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*Wick Engine https://github.com/Wicklets/wick-engine*/
var WICK_ENGINE_BUILD_VERSION = "2020.9.18.12.32.16";
var WICK_ENGINE_BUILD_VERSION = "2020.9.28.15.26.35";
/*!
* Paper.js v0.12.4 - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
Expand Down Expand Up @@ -55647,6 +55647,11 @@ Wick.Frame = class extends Wick.Tickable {
}

set sound(soundAsset) {
if (!soundAsset) {
this.removeSound();
return;
}

this._soundAssetUUID = soundAsset.uuid;
}
/**
Expand Down
5 changes: 5 additions & 0 deletions engine/src/base/Frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ Wick.Frame = class extends Wick.Tickable {
}

set sound(soundAsset) {
if (!soundAsset) {
this.removeSound();
return;
}

this._soundAssetUUID = soundAsset.uuid;
}

Expand Down
7 changes: 6 additions & 1 deletion public/corelibs/wick-engine/emptyproject.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- The Wick Engine build is injected here during the engine build step (see gulpfile.js) -->
<script>
/*Wick Engine https://github.com/Wicklets/wick-engine*/
var WICK_ENGINE_BUILD_VERSION = "2020.9.18.12.32.16";
var WICK_ENGINE_BUILD_VERSION = "2020.9.28.15.26.35";
/*!
* Paper.js v0.12.4 - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
Expand Down Expand Up @@ -55662,6 +55662,11 @@
}

set sound(soundAsset) {
if (!soundAsset) {
this.removeSound();
return;
}

this._soundAssetUUID = soundAsset.uuid;
}
/**
Expand Down
7 changes: 6 additions & 1 deletion public/corelibs/wick-engine/wickengine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*Wick Engine https://github.com/Wicklets/wick-engine*/
var WICK_ENGINE_BUILD_VERSION = "2020.9.18.12.32.16";
var WICK_ENGINE_BUILD_VERSION = "2020.9.28.15.26.35";
/*!
* Paper.js v0.12.4 - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
Expand Down Expand Up @@ -55647,6 +55647,11 @@ Wick.Frame = class extends Wick.Tickable {
}

set sound(soundAsset) {
if (!soundAsset) {
this.removeSound();
return;
}

this._soundAssetUUID = soundAsset.uuid;
}
/**
Expand Down
1 change: 0 additions & 1 deletion src/Editor/Modals/BuiltinLibrary/BuiltinLibrary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class BuiltinLibrary extends Component {
importForPreview = (asset, callback) => {
var path = BuiltinLibrary.ROOT_ASSET_PATH + asset.file;

console.log(asset, callback, path);
fetch (path)
.then((response) => response.blob())
.then((blob) => {
Expand Down

0 comments on commit faf1781

Please sign in to comment.