ios: fix path-traced viewport capture

This commit is contained in:
luboslenco
2026-04-14 15:10:04 +02:00
parent ff142def7e
commit 968e1176ff
4 changed files with 7 additions and 6 deletions
+4 -1
View File
@@ -351,7 +351,10 @@ void camera_update(void *_) {
if (camera_redraws > 0) {
camera_redraws--;
g_context->ddirty = 2;
if (!ui_menu_show) {
g_context->ddirty = 2;
}
if (g_context->camera_type == CAMERA_TYPE_ORTHOGRAPHIC) {
viewport_update_camera_type(g_context->camera_type);
-1
View File
@@ -414,7 +414,6 @@ gpu_texture_t *util_uv_uvislandmap = NULL;
bool util_uv_uvislandmap_cached = false;
i32 render_path_raytrace_frame = 0;
bool render_path_raytrace_ready = false;
i32 render_path_raytrace_dirty = 0;
bool render_path_raytrace_init_shader = true;
f32_array_t *render_path_raytrace_f32a;
mat4_t render_path_raytrace_help_mat;
+1 -2
View File
@@ -84,8 +84,7 @@ void make_material_parse_mesh_material() {
}
g_context->ddirty = 2;
render_path_raytrace_dirty = 1;
g_context->pdirty = 1;
}
void make_material_parse_mesh_preview_material(material_data_t *md) {
+2 -2
View File
@@ -48,7 +48,7 @@ void render_path_raytrace_commands(bool use_live_layer) {
}
////
if (g_context->pdirty > 0 || render_path_raytrace_dirty > 0) {
if (g_context->pdirty > 0) {
layers_flatten(true, NULL);
}
@@ -191,7 +191,7 @@ void render_path_raytrace_draw(bool use_live_layer) {
#ifdef IRON_METAL
// Delay path tracing additional samples while painting
bool down = mouse_down("left") || pen_down("tip");
if (context_in_3d_view() && down) {
if (context_in_3d_view() && down && !ui_menu_show) {
render_path_raytrace_frame = 0;
}
#endif