2025-12-01

This commit is contained in:
2026-03-17 14:58:51 -06:00
parent 183e865f8b
commit 4b82b57113
6846 changed files with 954887 additions and 162606 deletions
+18
View File
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2025 Blender Studio Tools Authors
#
# SPDX-License-Identifier: GPL-3.0-or-later
import bpy
from pathlib import Path
from .prefs import get_addon_prefs
def save_images():
prefs = get_addon_prefs()
user_path = Path(prefs.save_images_path)
default_path = Path(bpy.data.filepath).parent.joinpath("images")
save_path = default_path if prefs.save_images_path == "" else user_path
for img in bpy.data.images:
if img.is_dirty:
filepath = save_path.joinpath(img.name).__str__() + ".png"
img.save(filepath=filepath)