@galacean/effects-threejs 1.3.0-alpha.1 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v1.3.0-alpha.1
6
+ * Version: v1.3.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -708,7 +708,7 @@ function asserts(condition, msg) {
708
708
  * Name: @galacean/effects-specification
709
709
  * Description: Galacean Effects JSON Specification
710
710
  * Author: Ant Group CO., Ltd.
711
- * Version: v1.1.0-alpha.1
711
+ * Version: v1.1.0
712
712
  */
713
713
 
714
714
  /*********************************************/
@@ -21599,7 +21599,7 @@ var filters = {
21599
21599
  * Name: @galacean/effects-specification
21600
21600
  * Description: Galacean Effects JSON Specification
21601
21601
  * Author: Ant Group CO., Ltd.
21602
- * Version: v1.1.0-alpha.1
21602
+ * Version: v1.1.0
21603
21603
  */
21604
21604
 
21605
21605
  /*********************************************/
@@ -23856,8 +23856,8 @@ var AssetManager = /** @class */ (function () {
23856
23856
  return [2 /*return*/, resultImage];
23857
23857
  case 3:
23858
23858
  // 如果是加载图片且是数组,设置变量,视频情况下不需要
23859
- if (background && !Array.isArray(url_1) && variables) {
23860
- variables[background.name] = url_1;
23859
+ if (background && Array.isArray(url_1) && variables) {
23860
+ variables[background.name] = resultImage.src;
23861
23861
  }
23862
23862
  return [4 /*yield*/, combineImageTemplate(resultImage, template, variables, this.options, img.oriY === -1)];
23863
23863
  case 4: return [2 /*return*/, _b.sent()];
@@ -26962,7 +26962,7 @@ Geometry.create = function (engine, options) {
26962
26962
  Mesh.create = function (engine, props) {
26963
26963
  return new ThreeMesh(engine, props);
26964
26964
  };
26965
- var version = "1.3.0-alpha.1";
26965
+ var version = "1.3.1";
26966
26966
  logger.info('THREEJS plugin version: ' + version);
26967
26967
 
26968
26968
  exports.AbstractPlugin = AbstractPlugin;