Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#21749] Missing material icon

Date:
2010-03-25 04:21
Priority:
3
State:
Closed
Submitted by:
Yannick DuchĂȘne (hibou57)
Assigned to:
Ton Roosendaal (ton)
Category:
Interface
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Missing material icon
Detailed description
Hello,

I'm not sure of weither or not it's a bug or a design change, but I'm pretty sure it's a bug (because I do not see a reason a design change this way).

In the attached "test.blend" file, the object name "Mesh" has two materials linked to it : "Material 1" and "Material 2". But in "Properties/Material" when "Mesh" is selected, only "Material 1" has an icon, and "Material 2" has none.

Followup

Message
  • Date: 2010-03-25 04:42
  • Sender: Yannick DuchĂȘne
  • I've just found a trick : for "Material 2", "Cast buffer shadows" is checked. If I uncheck it, the icon appears, if I re-check it, the icon is still there.

    This may be a refresh trouble as the one of the ones there was with Alpha 0.
  • Date: 2010-04-07 09:33
  • Sender: Matt Ebb
  • I've looked into this, and I think it's an issue with the threaded jobs? It seems that the jobs system blocks any other jobs of the same type (same owner), when one is running. The icon preview render and the shader preview render are using the same job type, so when the refresh is triggered, the icon preview gets blocked, and never happens.

    I *think* that's what's happening.. not sure of a solution.
  • Date: 2010-04-08 03:28
  • Sender: Yannick DuchĂȘne
  • I'm not a Blender developer, so won't say so much, however this seems possible to me.

    I've noticed some other UI refresh troubles looking a bit like the same. An other example : in the material node editor, if two materials uses nodes, if you switch from one to another using the list box in the node editor header, then the node editor is not refreshed (and still show the nodes for the previous material) until you click anywhere on its area.
  • Date: 2010-11-11 18:14
  • Sender: Ton Roosendaal
  • Icon previews for materials are rendered (using rendering engine), only one render engine can run at a time. The preview render (or F12 render) will kill other jobs then. We have a basic design conflict here... there's also not a "job queue" for cases like this.

    Andrea: do you have an idea for how to re-enter a icon job in the queue on this case?
  • Date: 2010-12-07 19:13
  • Sender: Ton Roosendaal
  • Will assign to self, finding out if job manager can store icon jobs in a way they can run after being postponed.
  • Date: 2010-12-12 15:06
  • Sender: Ton Roosendaal
  • On each material change a new preview is being rendered. However, on assigning a (new or any) material this didn't happen, which caused this problem. I fixed that in svn.
    For each icon a complete render job is being started, which has some overhead, so I prefer to be a bit conservative starting such renders for each draw.
 

Attached Files:

Name Date Download
test.blend 2010-03-25 04:21 Download

Changes:

Field Old Value Date By
status_idOpen2010-12-12 15:06ton
close_dateNone2010-12-12 15:06ton
StatusInvestigate2010-12-12 15:06ton
assigned_toelubie2010-12-07 19:13ton
ResolutionNone2010-11-11 18:14ton
assigned_tonone2010-11-11 18:14ton
CategoryNone2010-07-10 03:33letterrip
File Added10495: test.blend2010-03-25 04:21hibou57