Skip to content

Commit

Permalink
[presets] Fix UI update with in-place texture replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
riidefi committed Oct 20, 2024
1 parent e307f2c commit 9d7062b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/plugins/g3d/g3d_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Result<void> ApplyCratePresetToMaterial(riistudio::g3d::Material& mat,

if (auto* x = scene->getTextures().findByName(new_tex.name)) {
static_cast<librii::g3d::TextureData&>(*x) = new_tex;
x->nextGenerationId();
continue;
}
auto& t = scene->getTextures().add();
Expand Down

0 comments on commit 9d7062b

Please sign in to comment.