diff options
author | Nivesh Rajbhandari | 2012-06-27 17:28:06 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-27 17:28:06 -0700 |
commit | 2da05a4c71bfe9b136384d9e94fbfbef19f24550 (patch) | |
tree | bfa21e77da8722f71fd8d32dc2f768f08a7a7183 /js/panels/Materials/materials-library-panel.reel | |
parent | 978b9049d057d2a0995758275f68da8641193201 (diff) | |
download | ninja-2da05a4c71bfe9b136384d9e94fbfbef19f24550.tar.gz |
Performance fix for WebGL materials playing even when the dialog/file is no longer in view.
Also pausing videos when switching documents.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/panels/Materials/materials-library-panel.reel')
-rwxr-xr-x | js/panels/Materials/materials-library-panel.reel/materials-library-panel.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js b/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js index cd933ea6..8c1aa1dc 100755 --- a/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js +++ b/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js | |||
@@ -129,6 +129,8 @@ exports.MaterialsLibraryPanel = Montage.create(Component, { | |||
129 | enumerable: false, | 129 | enumerable: false, |
130 | value: function (event) { | 130 | value: function (event) { |
131 | if(this._materialPopup){ | 131 | if(this._materialPopup){ |
132 | // console.log("hiding material popup"); | ||
133 | this._materialInfo.destroy(); | ||
132 | this._materialPopup.hide(); | 134 | this._materialPopup.hide(); |
133 | } | 135 | } |
134 | } | 136 | } |