From 86a1efbf6998d68a6cc60db8b6800e5466a56699 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Wed, 20 May 2026 11:27:49 +0200 Subject: [PATCH] sculpt: fix mesh import --- paint/sources/make_sculpt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/paint/sources/make_sculpt.c b/paint/sources/make_sculpt.c index b10470de..dcc85de2 100644 --- a/paint/sources/make_sculpt.c +++ b/paint/sources/make_sculpt.c @@ -260,10 +260,6 @@ void sculpt_init_sculpt_texture(slot_layer_t *l, mesh_data_t *md) { } void sculpt_init() { - if (any_map_get(render_path_render_targets, "gbuffer0_undo") != NULL) { - return; - } - mesh_data_t *md = g_context->paint_object->data; i16_array_t *posa = i16_array_create(md->index_array->length * 4); i16_array_t *nora = i16_array_create(md->index_array->length * 2); @@ -302,6 +298,11 @@ void sculpt_init() { make_material_parse_paint_material(true); make_material_parse_mesh_material(); + + if (any_map_get(render_path_render_targets, "gbuffer0_undo") != NULL) { + return; + } + { render_target_t *t = render_target_create(); t->name = "gbuffer0_undo";