Page MenuHome

Use aliased names for file versioning checks
Open, NormalPublic


System Information
Operating system: Linux-5.0.13-arch1-1-ARCH-x86_64-with-arch 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.74

Blender Version
Broken: version: 2.80 (sub 69), branch: blender2.7, commit date: 2019-05-17 21:54, hash: rB3b8ae2c08f5c
Worked: (optional)

Short description of error
The new angle setting of the Sun light type is not saved with the blend file. It always defaults back to 11.4°.

Exact steps for others to reproduce the error

  • Add Sun lamp
  • change the angle
  • save the file and reopen it.

Event Timeline

Brecht Van Lommel (brecht) triaged this task as Confirmed, Medium priority.

@Campbell Barton (campbellbarton), DNA_struct_elem_find as used in versioning seems to need "Lamp" rather than "Light". Can we change that? There's other old Light versioning code that assumes this.

Brecht Van Lommel (brecht) renamed this task from Change of Sun Angle is not saved. to File versioning not working in some cases due to name aliasing.May 18 2019, 12:47 PM
Brecht Van Lommel (brecht) reopened this task as Open.
Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.Jun 17 2019, 12:24 PM

Added function calls for aliased name lookups rB73f7ed7ffadcae3795910155d52453650d4e97a4

We still need to make use of these in versioning code though so new code that's added doesn't trip up on the same issue.

Campbell Barton (campbellbarton) renamed this task from File versioning not working in some cases due to name aliasing to Use aliased names for file versioning checks.
Campbell Barton (campbellbarton) lowered the priority of this task from Confirmed, High to Normal.

Set as TODO since the internal API's to do aliased checks are done and there is no need to make this change for 2.80 release.

Setting as a 2.81 target, I think this is one of these exceptions where we can do after Bcon1. And if no one does it I can work on it, it seems rather straightforward.