Cycles material preview: fix for generated/packed/movie files
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 30 Jan 2013 13:42:12 +0000 (13:42 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 30 Jan 2013 13:42:12 +0000 (13:42 +0000)
commit452a52575cbc33551017d940ba86dda7a2c8c30b
tree741538f4ed22dff243600017940958507fda3f98
parent54223ed05b7e2840865b5e46ed6d43573ff2b4ae
Cycles material preview: fix for generated/packed/movie files

Issue was caused by cycles trying to find builtin images in a main
database and in case of preview render images are not in database,
they're just referenced by shader node tree.

Now builtin images in cycles have got void* pointer to store data
needed to load builtin images.

In case ob blender session, this pointer will store pointer from
PointerRNA for image datablock and used later to construct Image
class based on this pointer.

This also saves database lookup for final render which is nice :)

Reviewed by Brecht.
intern/cycles/blender/blender_session.cpp
intern/cycles/blender/blender_session.h
intern/cycles/blender/blender_shader.cpp
intern/cycles/render/image.cpp
intern/cycles/render/image.h
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h