Commit: acab6f717504a1e9c6d3010ca5c09e608d3c6312
Author: Brecht Van Lommel
Date:   Fri May 31 18:01:51 2019 +0200
Branches: master
https://developer.blender.org/rBacab6f717504a1e9c6d3010ca5c09e608d3c6312

Fix T65317: crash applying wave modifier with texture

===================================================================

M       source/blender/modifiers/intern/MOD_wave.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_wave.c 
b/source/blender/modifiers/intern/MOD_wave.c
index d480f3416b1..908abeb6f76 100644
--- a/source/blender/modifiers/intern/MOD_wave.c
+++ b/source/blender/modifiers/intern/MOD_wave.c
@@ -265,7 +265,7 @@ static void waveModifier_do(WaveModifierData *md,
         amplit = (float)(1.0f / expf(amplit * amplit) - minfac);
 
         /*apply texture*/
-        if (tex_target) {
+        if (tex_co) {
           Scene *scene = DEG_get_evaluated_scene(ctx->depsgraph);
           TexResult texres;
           texres.nor = NULL;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to