diff options
| author | yum <yum.food.vr@gmail.com> | 2023-07-25 14:22:14 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2023-07-25 14:29:37 -0700 |
| commit | fcd038681640f64eada9541fd82c1ef182bfed7c (patch) | |
| tree | e2c516a54d38dad6cbbd5eb066d0c4aa2f2554c0 /GUI | |
| parent | 2074749d4263991d835b19257bf1510dcaf55211 (diff) | |
Subsequent calls to `Generate unity assets` don't break textures
Avoid deleting bitmap .meta files so that once the user sets up their
shader, it doesn't break.
Diffstat (limited to 'GUI')
| -rw-r--r-- | GUI/GUI/GUI/PythonWrapper.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/GUI/GUI/GUI/PythonWrapper.cpp b/GUI/GUI/GUI/PythonWrapper.cpp index 6e80744..167fe36 100644 --- a/GUI/GUI/GUI/PythonWrapper.cpp +++ b/GUI/GUI/GUI/PythonWrapper.cpp @@ -688,14 +688,6 @@ bool PythonWrapper::GenerateAnimator( Log(out, "Error removing unicode texture: {} ({})\n", err.message(), err.value()); return false; } - if (i != 0) { - std::filesystem::remove(tastt_fonts_path / ("Bitmaps/font-" + std::to_string(i) + ".png.meta"), err); - if (err.value()) { - Log(out, "failed!\n"); - Log(out, "Error removing unicode texture metadata: {} ({})\n", err.message(), err.value()); - return false; - } - } } std::filesystem::remove(tastt_fonts_path / "Bitmaps/emotes.png", err); if (err.value()) { @@ -705,14 +697,6 @@ bool PythonWrapper::GenerateAnimator( } Log(out, "success!\n"); - } else { - std::error_code err; - if (!std::filesystem::remove(tastt_fonts_path / "Bitmaps/font-ascii.png.meta", err)) { - Log(out, "failed!\n"); - Log(out, "Error: {} ({})\n", err.message(), err.value()); - return false; - } - Log(out, "success!\n"); } { Log(out, "Generating guid.map... "); |
