Skip to content

Commit 266589e

Browse files
committed
make sure applyProps to checkUpdate current instance key
1 parent 6762c5b commit 266589e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/core/src/lib/utils/apply-props.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export function applyProps(instance: NgtInstanceNode, props: NgtAnyRecord) {
103103
currentInstance[key].type === THREE.UnsignedByteType
104104
) {
105105
const texture = currentInstance[key] as THREE.Texture;
106+
106107
if (rootState?.gl) {
107108
if (is.colorSpaceExist(texture) && is.colorSpaceExist(rootState.gl))
108109
texture.colorSpace = rootState.gl.outputColorSpace;
@@ -111,6 +112,7 @@ export function applyProps(instance: NgtInstanceNode, props: NgtAnyRecord) {
111112
}
112113
}
113114

115+
checkUpdate(currentInstance[key]);
114116
checkUpdate(targetProp);
115117
invalidateInstance(instance);
116118
}

0 commit comments

Comments
 (0)