mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix invalid temp-dir for image-project on unsaved files
The preferences tempdir being used instead of bpy.app.tempdir.
This commit is contained in:
parent
9b602a8020
commit
cacd84a318
1 changed files with 1 additions and 2 deletions
|
|
@ -156,8 +156,7 @@ class ProjectEdit(Operator):
|
|||
if bpy.data.is_saved:
|
||||
filepath = "//" + filepath
|
||||
else:
|
||||
tmpdir = context.preferences.filepaths.temporary_directory
|
||||
filepath = os.path.join(tmpdir, "project_edit")
|
||||
filepath = os.path.join(bpy.app.tempdir, "project_edit")
|
||||
|
||||
obj = context.object
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue