2025-12-01
This commit is contained in:
@@ -177,8 +177,6 @@ def img_to_preview(img: bpy.types.Image, copy_original: bool = False) -> None:
|
||||
if img.preview.image_size != img.size:
|
||||
img.preview.image_size = (img.size[0], img.size[1])
|
||||
img.preview.image_pixels_float = img.pixels[:]
|
||||
# for _idx in range(3, len(img.preview.image_pixels_float), 4):
|
||||
# img.preview.image_pixels_float[_idx] = 0.0
|
||||
|
||||
|
||||
def remove_alpha(img: bpy.types.Image, color_bg: List[float]) -> None:
|
||||
@@ -221,7 +219,7 @@ def load_image(
|
||||
exists.
|
||||
"""
|
||||
|
||||
if hidden:
|
||||
if hidden and not name.startswith("."):
|
||||
name = f".{name}" # hidden
|
||||
img = bpy.data.images.get(name)
|
||||
if img is not None and not force:
|
||||
|
||||
Reference in New Issue
Block a user