09th / YABEE

Export models from the Blender to Panda3D game engine
MIT License
107 stars 39 forks source link

Use %f explicitly for <UV> to emit float instead of double #14

Closed eswartz closed 9 years ago

eswartz commented 9 years ago

I noticed some .eggs are larger than necessary. Using %f instead of %s emits the float- instead of double-precision UV coordinate. Only a texture of size 2^23 pixels on a side would need the double precision :)

09th commented 9 years ago

Ah. Ok. Some time ago someone ask me to increase UV precision, but at that time UV coords were restricted to 3 digit after decimal point. You're right - double precision is really unnecessary.