Skip to content

Commit b2b2e02

Browse files
Merge pull request #46 from Elettrotecnica/don-t-destroy-constraint-body-transform
Do not destroy bodyTransform
2 parents ea1630d + f51aec9 commit b2b2e02

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/ammo-constraint.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ module.exports = AFRAME.registerComponent("ammo-constraint", {
166166
throw new Error("[constraint] Unexpected type: " + data.type);
167167
}
168168

169-
Ammo.destroy(bodyTransform);
170169
Ammo.destroy(targetTransform);
171170

172171
return constraint;

0 commit comments

Comments
 (0)