Hubs-Foundation / hubs-blender-exporter

The Hubs Blender Add-on enables artists to export their creations to the immersive web with Hubs
Mozilla Public License 2.0
165 stars 51 forks source link

Fix Open Image Relative Path failing - New Try #269

Closed Spiderguy-F closed 6 months ago

Spiderguy-F commented 7 months ago

We cleaned up the chaos by creating a new branch. The behaviour should match the previous behaviour now, let's call it "intuitive". class OpenImage(Operator) fails when using the default 'relative_path' property (True) on Windows. Python os.path.join on Windows does not recognize '//' to be the beginning of a directory and treats it like a filename. We fixed that error and made the file browser start where the previous image was located. We also modified the dedfault location of the File Viewer to either: a) Start where a file was selected the last time the File View was used or: b) if an image had been previously assigned to the target_property, the File View will start with that image selected. This is Blender's default behaviour grafik

It probably failed when selecting an image for a reflection probe as well and should be working everywhere now.

keianhzo commented 6 months ago

Thanks perfect, thanks!