diff options
Diffstat (limited to 'source/blender/shader_fx/intern/FX_shader_shadow.c')
-rw-r--r-- | source/blender/shader_fx/intern/FX_shader_shadow.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/shader_fx/intern/FX_shader_shadow.c b/source/blender/shader_fx/intern/FX_shader_shadow.c index 14fd2ed3d28..f84c7ffb7db 100644 --- a/source/blender/shader_fx/intern/FX_shader_shadow.c +++ b/source/blender/shader_fx/intern/FX_shader_shadow.c @@ -89,14 +89,11 @@ static bool isDisabled(ShaderFxData *fx, int UNUSED(userRenderParams)) return (!fxd->object) && (fxd->flag & FX_SHADOW_USE_OBJECT); } -static void foreachObjectLink(ShaderFxData *fx, - Object *ob, - ShaderFxObjectWalkFunc walk, - void *userData) +static void foreachIDLink(ShaderFxData *fx, Object *ob, IDWalkFunc walk, void *userData) { ShadowShaderFxData *fxd = (ShadowShaderFxData *)fx; - walk(userData, ob, &fxd->object, IDWALK_CB_NOP); + walk(userData, ob, (ID **)&fxd->object, IDWALK_CB_NOP); } static void panel_draw(const bContext *UNUSED(C), Panel *panel) @@ -191,7 +188,6 @@ ShaderFxTypeInfo shaderfx_Type_Shadow = { /* isDisabled */ isDisabled, /* updateDepsgraph */ updateDepsgraph, /* dependsOnTime */ NULL, - /* foreachObjectLink */ foreachObjectLink, - /* foreachIDLink */ NULL, + /* foreachIDLink */ foreachIDLink, /* panelRegister */ panelRegister, }; |