@onerjs/core 8.46.8 → 8.46.9
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.
|
@@ -2173,9 +2173,13 @@ export class HavokPlugin {
|
|
|
2173
2173
|
*/
|
|
2174
2174
|
disposeConstraint(constraint) {
|
|
2175
2175
|
for (const jointId of constraint._pluginData) {
|
|
2176
|
+
if (this._constraintToBodyIdPair.has(jointId)) {
|
|
2177
|
+
this._constraintToBodyIdPair.delete(jointId);
|
|
2178
|
+
}
|
|
2176
2179
|
this._hknp.HP_Constraint_SetEnabled(jointId, false);
|
|
2177
2180
|
this._hknp.HP_Constraint_Release(jointId);
|
|
2178
2181
|
}
|
|
2182
|
+
constraint._initOptions = void 0;
|
|
2179
2183
|
constraint._pluginData.length = 0;
|
|
2180
2184
|
}
|
|
2181
2185
|
_populateHitData(hitData, result) {
|