Skip to content

TaoSetType: Do not destroy gradient and stepdirection vectors

Stefano Zampini requested to merge stefanozampini/fix-tao-destroy into main

This fixes the case

Vec G;
Tao tao;
TaoSetGradient(tao,G...);
TaoSetType(tao,...);

Merge request reports