Discard changes by restore volume insted of changing history(undo/redo) stack

This commit is contained in:
Filip Sykala - NTB T15p 2022-09-30 18:29:46 +02:00
parent 0e3b7cae12
commit e7fa4fc006
4 changed files with 97 additions and 40 deletions

View file

@ -144,6 +144,18 @@ public:
/// time between finished process and started finalize part.</param>
/// <param name="">unused</param>
void finalize(bool canceled, std::exception_ptr &eptr) override;
/// <summary>
/// Update text volume
/// </summary>
/// <param name="volume">Volume to be updated</param>
/// <param name="mesh">New Triangle mesh for volume</param>
/// <param name="text_configuration">Parametric description of volume</param>
/// <param name="volume_name">Name of volume</param>
static void update_volume(ModelVolume *volume,
TriangleMesh &&mesh,
const TextConfiguration &text_configuration,
const std::string &volume_name);
};
/// <summary>