fix native spine slot bug (#8859)

This commit is contained in:
mmyduckx
2021-06-22 15:57:49 +08:00
committed by GitHub
parent 2aed436810
commit 4d3418484a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -589,7 +589,7 @@ const cacheManager = require('./jsb-cache-manager');
let paramsBuffer = this._paramsBuffer;
if (!paramsBuffer) return;
if (force || node.hasChangedFlags) {
if (force || node.hasChangedFlags || node._dirtyFlags) {
// sync node world matrix to native
node.updateWorldTransform();
let worldMat = node._mat;
@@ -413,7 +413,7 @@ const cacheManager = require('./jsb-cache-manager');
let paramsBuffer = this._paramsBuffer;
if (!paramsBuffer) return;
if (force || node.hasChangedFlags) {
if (force || node.hasChangedFlags || node._dirtyFlags) {
// sync node world matrix to native
node.updateWorldTransform();
let worldMat = node._mat;