paint: merge sculpt
This commit is contained in:
@@ -77,6 +77,9 @@ static void path_set_camera(f32_array_t *points_camera, i32 num_camera, i32 ci)
|
||||
camera_object_build_proj(scene_camera, points_camera->buffer[ci * 9 + 8]);
|
||||
camera_object_build_mat(scene_camera);
|
||||
render_path_base_draw_gbuffer();
|
||||
if (g_context->layer->texpaint_sculpt != NULL) {
|
||||
render_path_sculpt_snapshot_gbuffer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,6 +294,11 @@ static void path_repaint(slot_layer_t *l) {
|
||||
|
||||
slot_layer_clear(l, 0x00000000, NULL, 1.0, layers_default_rough, 0.0);
|
||||
|
||||
if (l->texpaint_sculpt != NULL) {
|
||||
// Restore the undeformed base mesh
|
||||
sculpt_import_mesh_pack_to_texture(l->texpaint_sculpt);
|
||||
}
|
||||
|
||||
vec4_t _camera_loc = scene_camera->base->transform->loc;
|
||||
quat_t _camera_rot = scene_camera->base->transform->rot;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user