Maniphest T93871

img.has_data Always returns True since version 3.0
Closed, Resolved

Assigned To
Brecht Van Lommel (brecht)
Authored By
Andrea (Andrew_D)
Dec 8 2021, 6:06 PM
Tags
  • BF Blender
  • Images & Movies
  • Python API
Subscribers
Andrea (Andrew_D)
Macreen Smith (MacSmitty)

Description

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: rBf1cca3055776
Worked: (newest version of Blender that worked as expected)

img.has_data True in any case
img.has_data, worked fine until the previous version. Now img.has_data, always returns True, even when the image no longer exists on disk. This case for a non-Packed image

Exact steps for others to reproduce the error

  1. - Add Image into Texture node (Without packed it)
  2. - Save Blender Project
  3. - Delete the image file from HardDisk
  4. - Restart Blender
  5. - Check with D.image['my_image'].has_data

Revisions and Commits

rB Blender

Event Timeline

Andrea (Andrew_D) created this task.Dec 8 2021, 6:06 PM
Macreen Smith (MacSmitty) added a subscriber: Macreen Smith (MacSmitty).Dec 8 2021, 11:18 PM
This comment was removed by Macreen Smith (MacSmitty).
Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Dec 9 2021, 12:14 AM
Richard Antalik (ISS) added projects: Images & Movies, Python API.
Brecht Van Lommel (brecht) closed this task as Resolved by committing rBe427e4dbb125: Fix T93871: Image.has_data returns True for images that failed to load.Dec 9 2021, 5:41 PM
Brecht Van Lommel (brecht) claimed this task.
Brecht Van Lommel (brecht) added a commit: rBe427e4dbb125: Fix T93871: Image.has_data returns True for images that failed to load.
Philipp Oeser (lichtwerk) added a commit: rB5beadc31d645: Fix T93871: Image.has_data returns True for images that failed to load.Jan 11 2022, 9:00 AM