We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb8fe7 commit 9952553Copy full SHA for 9952553
js/src/_base/Preview.js
@@ -113,9 +113,7 @@ var PreviewView = RenderableView.extend({
113
114
clearScene: function() {
115
// this.controls.reset();
116
- this.scene.children.forEach(function(child) {
117
- this.scene.remove(child);
118
- }, this);
+ this.scene.remove.apply(this.scene, this.scene.children.slice());
119
},
120
121
setupControls: function() {
js/src/textures/ImageTexture.js
@@ -20,7 +20,7 @@ var ImageTextureModel = ImageTextureBase.ImageTextureModel.extend({
20
21
function(xhr) {
22
console.log('Error loading texture: ' + imageUri);
23
- return reject(texture);
+ return reject(xhr);
24
}
25
);
26
});
0 commit comments