Skip to content

Commit 9d7062b

Browse files
committed
[presets] Fix UI update with in-place texture replacement
1 parent e307f2c commit 9d7062b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/plugins/g3d/g3d_material.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ Result<void> ApplyCratePresetToMaterial(riistudio::g3d::Material& mat,
9191

9292
if (auto* x = scene->getTextures().findByName(new_tex.name)) {
9393
static_cast<librii::g3d::TextureData&>(*x) = new_tex;
94+
x->nextGenerationId();
9495
continue;
9596
}
9697
auto& t = scene->getTextures().add();

0 commit comments

Comments
 (0)