IntelOrca / biohazard-utils

MIT License
6 stars 0 forks source link

Window's Region and Language configuration affect obj import/export options of emdui #3

Open leigiboy opened 2 weeks ago

leigiboy commented 2 weeks ago

I was having trouble importing obj and the "open in blender" options, the models are imported but they end all deformed I realised this is due my language configuration as I use spanish on my computer, this problem was also present on the first version of Leo's tools. The .obj files created by emdui uses commas on the values

`mtllib PL05.02.mtl
usemtl main
o part_00
v 0,051000 -0,487000 -0,238000`

but blender uses dots

# Blender v3.6.0 OBJ File: ''
# www.blender.org
mtllib 05.mtl
o PL05.05
v 0.051000 -0.487000 0.232000

so if I import the obj from blender they end up deformed but if I edit the obj replacing the dots for commas and then import them they work fine.

imagen

then again this only happens in languages that have the commas and dots changed between them and I do can change windows configuration but this ends up messing other stuff like Office's stuff.

IntelOrca commented 2 weeks ago

Thanks, I will need to write this file with InvariantCulture