Hi,
I’d like to know if there’s a proper way to remove a RackType when deleting a Track containing a RackInstance of this one, (actually the only instance of this one)?
For now, I have something like this :
for (auto p : track->pluginList)
if (auto ri = dynamic_cast<te::RackInstance*> (p))
edit.getRackList().removeRackType (ri->type);
edit.deleteTrack(track);
Is there a more elegant way?
Thanks