Fix for [#24313] Displacement modifier is not respecting animated texture channels.
[blender-staging.git] / source / blender / blenkernel / intern / texture.c
index 77416f4dd129690e14952867cec8ef531deec259..da3dea3722006cb8222d330250fea096807ca397 100644 (file)
@@ -1337,13 +1337,11 @@ int BKE_texture_dependsOnTime(const struct Tex *texture)
        else if(        texture->ima && 
                        ELEM(texture->ima->source, IMA_SRC_SEQUENCE, IMA_SRC_MOVIE)) {
                return 1;
-       } 
-#if 0 // XXX old animation system
-       else if(texture->ipo) {
-               // assume any ipo means the texture is animated
+       }
+       else if(texture->adt) {
+               // assume anything in adt means the texture is animated
                return 1;
        }
-#endif // XXX old animation system
        return 0;
 }