Page MenuHome

Material tab disappears
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 950M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 452.06

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-09 20:10, hash: rB0721fbb6e1e2

Short description of error
Material tab disappears when adding new object or adding new material on default cube.

Revisions and Commits

Event Timeline

I have this issue aswell on the latest buildbot build (images are missing because of T80327)

This appears to be caused by commit rB8bead3df2ffef1fa249b8c852b03cfcca2400c3d, but I'll have to take another look because the added check seems to be correct at first glance. @Sebastian Parborg (zeddb)

Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.Thu, Sep 10, 12:39 PM

The check is not correct. The return value does not indicate if there is a material, but rather if there could be a material and the material tab needs to be shown.

ma in buttons_context_path_material (buttons_context.c) is NULL e.g. when removing a material from a material slot. The material tab still needs to be displayed in this case. So the check in itself is fine, but the return value is wrong.