Skip to content

Commit

Permalink
Merge branch 'master' of github.com:playcanvas/engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksims Mihejevs committed Dec 1, 2015
2 parents c12b920 + fe7f4ca commit 0803e49
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.177.0-dev
0.178.1-dev
6 changes: 4 additions & 2 deletions src/framework/components/audiosource/audiosource_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,15 @@ pc.extend(pc, function () {
// load assets that haven't been loaded yet
var assets = this.data.assets;
if (assets) {
var registry = this.system.app.assets;

for (var i = 0, len = assets.length; i < len; i++) {
var asset = assets[i];
if (! (asset instanceof pc.Asset))
asset = this.system.app.assets.get(asset);
asset = registry.get(asset);

if (asset && !asset.resource) {
this.system.app.assets.load(asset);
registry.load(asset);
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/resources/resources_texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ pc.extend(pc, function () {

// Call error callback with details.
image.onerror = function (event) {
var element = event.srcElement;
callback(pc.string.format("Error loading Texture from: '{0}'", element.src));
callback(pc.string.format("Error loading Texture from: '{0}'", url));
};

image.src = url;
Expand Down
2 changes: 1 addition & 1 deletion src/scene/scene_forwardrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ pc.extend(pc, function () {

for (i = 0; i < drawCallsCount; i++) {
drawCall = drawCalls[i];
if (!drawCall.command && drawCall.drawToDepth) {
if (!drawCall.command && drawCall.drawToDepth && meshInstance.material.blendType===pc.BLEND_NONE) {
meshInstance = drawCall;
mesh = meshInstance.mesh;

Expand Down

0 comments on commit 0803e49

Please sign in to comment.