u3dreal / molecular-plus

particle solver for Blender 3.0+ / 4.0+
GNU General Public License v3.0
261 stars 19 forks source link

Remove spaces from the version label in the panel UI #48

Closed HeCorr closed 7 months ago

HeCorr commented 7 months ago

Before: image

After: image

Though, a better approach would be to use % formatting like so:

bl_label = "Molecular+     v%d.%d.%d" % (bl_info['version'][0], bl_info['version'][1], bl_info['version'][2])

Please let me know if you want me to do that instead.

u3dreal commented 7 months ago

If it works it works .. you decide

HeCorr commented 7 months ago

I think I'll use the % formatting as that's the "right" way to do it (plus it's more readable IMO).

u3dreal commented 7 months ago

go ahead will merge after that

HeCorr commented 7 months ago

Sorry for the delay.

I went with a slightly cleaner code that's already in use here.

u3dreal commented 7 months ago

perfect !