File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ;
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
You can’t perform that action at this time.
0 commit comments