Fix #27120: Bake to image used for rendering glitch (bake feedback loop)
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 20 Jan 2012 07:43:46 +0000 (07:43 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 20 Jan 2012 07:43:46 +0000 (07:43 +0000)
commitf0fc8c22bb9f8fa4cab232fd88b9aed27ca6637f
tree1f2f7f723a0fda93742cf3a3519c39c05752ed75
parent8817aaef3ed730760416d5f5801175d54e1149fa
Fix #27120: Bake to image used for rendering glitch (bake feedback loop)

Detect feedback loop and do not bake to images detected in this loop and show
nice warning message in such cases.

It's a way which wouldn't overcomplicate code trying to duplicate images and so
without real benefit.
source/blender/editors/object/object_bake.c
source/blender/makesdna/DNA_image_types.h
source/blender/render/extern/include/RE_shader_ext.h
source/blender/render/intern/source/imagetexture.c
source/blender/render/intern/source/rendercore.c