Skip to content

Commit e4b0a40

Browse files
committed
Updates
1 parent 0565184 commit e4b0a40

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
const fixScalePixel = document.getElementById('fixScalePixel').checked;
103103
const fixFixture = document.getElementById('fixFixture').checked;
104104
const moveUpHalfDepth = document.getElementById('moveUpHalfDepth').checked;
105-
const useRapier2d = document.getElementById('useRapier2d').checked;
105+
const useRapier2d = document.getElementById('useRapier2d').checked;
106106
const reader = new FileReader();
107107

108108
const { fixScale, removeUnwantedProperties, fixFixture: fixFixtureFn } = window.fixes;
@@ -123,9 +123,11 @@
123123
prefixParts.push('fixed_scale(pixel_unit)');
124124
}
125125

126-
if(useRapier2d) {
126+
if (useRapier2d) {
127127
obj.physicsEngine = 'rapier2d';
128-
obj.clientPhysicsEngine = 'rapier2d';
128+
if (obj.clientPhysicsEngine !== '') {
129+
obj.clientPhysicsEngine = 'rapier2d';
130+
}
129131
}
130132

131133
// Apply fixture fix if checked

0 commit comments

Comments
 (0)