فهرست منبع

Adds check complete on shader resource available delegate; resolves issue #6442

Tiago Cardoso 10 سال پیش
والد
کامیت
e510143cdf
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      examples/js/loaders/gltf/glTFLoader.js

+ 1 - 0
examples/js/loaders/gltf/glTFLoader.js

@@ -443,6 +443,7 @@ THREE.glTFLoader.prototype.load = function( url, callback ) {
 	ShaderDelegate.prototype.resourceAvailable = function(data, ctx) {
 		theLoader.shadersLoaded ++;
 		theLoader.shaders[ctx.id] = data;
+		theLoader.checkComplete();
 		return true;
 	};