jrouwe / JoltPhysics

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.
MIT License
6k stars 374 forks source link

indent_size always works even if it is switched to space #1160

Closed frederich closed 2 weeks ago

frederich commented 2 weeks ago

Hi Jorrit,

a very very unimportant fix, I discovered it by chance.

By incorrectly editing the wrong .editorconfig (we always use space) I have noticed that the indentation in Jolt no longer works. By setting indent_size it is always given, because indent_size is evaluated in both cases (tab | space).

Best, Jens

jrouwe commented 2 weeks ago

Thanks, I added tab_width back as I could see it caused problems if the parent .editorconfig contains a different tab_width size.

frederich commented 2 weeks ago

I see, that's right, it's better if it's explicitly stated.