@galacean/effects-plugin-spine 2.4.4 → 2.4.5
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/alipay.js +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +21 -2
- package/dist/index.mjs.map +1 -1
- package/dist/spine-component.d.ts +3 -2
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects player spine plugin
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 十弦
|
|
6
|
-
* Version: v2.4.
|
|
6
|
+
* Version: v2.4.5
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -11152,6 +11152,25 @@ var SpineComponent = /*#__PURE__*/ function(RendererComponent) {
|
|
|
11152
11152
|
this.maskManager.drawStencilMask(renderer);
|
|
11153
11153
|
(_this_content = this.content) == null ? void 0 : _this_content.render(renderer);
|
|
11154
11154
|
};
|
|
11155
|
+
_proto.drawStencilMask = function drawStencilMask(renderer) {
|
|
11156
|
+
if (!this.isActiveAndEnabled) {
|
|
11157
|
+
return;
|
|
11158
|
+
}
|
|
11159
|
+
if (!this.content) {
|
|
11160
|
+
return;
|
|
11161
|
+
}
|
|
11162
|
+
var previousColorMasks = [];
|
|
11163
|
+
for(var i = 0; i < this.content.meshGroups.length; i++){
|
|
11164
|
+
var material = this.content.meshGroups[i].mesh.material;
|
|
11165
|
+
previousColorMasks.push(material.colorMask);
|
|
11166
|
+
material.colorMask = false;
|
|
11167
|
+
}
|
|
11168
|
+
this.content.render(renderer);
|
|
11169
|
+
for(var i1 = 0; i1 < this.content.meshGroups.length; i1++){
|
|
11170
|
+
var material1 = this.content.meshGroups[i1].mesh.material;
|
|
11171
|
+
material1.colorMask = previousColorMasks[i1];
|
|
11172
|
+
}
|
|
11173
|
+
};
|
|
11155
11174
|
_proto.onDestroy = function onDestroy() {
|
|
11156
11175
|
if (this.item.endBehavior === spec.EndBehavior.destroy && this.state) {
|
|
11157
11176
|
this.state.clearListeners();
|
|
@@ -11505,7 +11524,7 @@ registerPlugin("spine", /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
11505
11524
|
}(AbstractPlugin), VFXItem);
|
|
11506
11525
|
/**
|
|
11507
11526
|
* 插件版本号
|
|
11508
|
-
*/ var version = "2.4.
|
|
11527
|
+
*/ var version = "2.4.5";
|
|
11509
11528
|
logger.info("Plugin spine version: " + version + ".");
|
|
11510
11529
|
if (version !== EFFECTS.version) {
|
|
11511
11530
|
console.error("注意:请统一 Spine 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Spine plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");
|