prime31/UIToolkit — pull request #156 by pjezek (2013-12-15 18:25:21+00:00)
Title: Duplicated material will not be assigned to the mesh renderer.

Fixing: assign the duplicate material back to the mesh renderer as it was done before in the awake (pre #150) on Line 78/71.

The bug happens that if an empty Material (valid shader without a texture) is assigned to the UIToolkit, the material gets duplicated, but the shader still has no texture assigned.

This patch does assign the duplicate back to the renderers material.
before patch: http://screencast.com/t/7VFQwFmbKPAV
after patch: http://screencast.com/t/XExJ9KdnQB