specoolar / Blender-BakeLab2

Blender addon for baking images
GNU General Public License v3.0
304 stars 44 forks source link

Make 'save_path' compatible for UNIX-like systems #4

Closed form-follows-function closed 3 years ago

form-follows-function commented 3 years ago

Also adds an UX-friendly behaviour for saved or unsaved files

form-follows-function commented 3 years ago

@Shahzod114 Somehow Github interprets this as two seperated commits, but it's just one.

Would be glad if you could test this on a Windows Environment.

form-follows-function commented 3 years ago

Also adds an UX-friendly behaviour for saved or unsaved files

Which means it fallbacks to the user's home directory if the file wasn't saved yet.

specoolar commented 3 years ago

Thanks, tested on windows and works fine. But, it doesn't let me select a path if blend file is not saved. I think line 65 should be: if bpy.data.is_saved:

form-follows-function commented 3 years ago

Thanks, tested on windows and works fine. But, it doesn't let me select a path if blend file is not saved. I think line 65 should be: if bpy.data.is_saved:

You are right. I've fixed the commit