@momo2555/koppeliajs 0.0.112 → 0.0.114
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/scripts/state.js +5 -2
- package/package.json +1 -1
package/dist/scripts/state.js
CHANGED
|
@@ -67,8 +67,10 @@ export class State {
|
|
|
67
67
|
if (!Object.hasOwn(this._previousStateValue, entry)) {
|
|
68
68
|
update[entry] = newState[entry];
|
|
69
69
|
}
|
|
70
|
-
else if (Array.isArray(newState[entry])
|
|
71
|
-
|
|
70
|
+
else if (Array.isArray(newState[entry])) {
|
|
71
|
+
if (JSON.stringify(this._previousStateValue[entry]) != JSON.stringify(newState[entry])) {
|
|
72
|
+
update[entry] = newState[entry];
|
|
73
|
+
}
|
|
72
74
|
}
|
|
73
75
|
else if (this._previousStateValue[entry] != newState[entry]) {
|
|
74
76
|
update[entry] = newState[entry];
|
|
@@ -101,6 +103,7 @@ export class State {
|
|
|
101
103
|
else {
|
|
102
104
|
this._globalState.set(receivedState);
|
|
103
105
|
}
|
|
106
|
+
this._previousStateValue = get(this._globalState);
|
|
104
107
|
this._access = true;
|
|
105
108
|
}
|
|
106
109
|
}
|