paint: cleanup

This commit is contained in:
luboslenco
2026-08-22 17:53:39 +02:00
parent d6f142e0a0
commit 32239b27cc
+71 -130
View File
@@ -239,18 +239,12 @@ void plugins_init();
void _kickstart() {
_render_path_cached_shader_contexts = any_map_create();
ui_children = any_map_create();
ui_nodes_custom_buttons = any_map_create();
g_operators = any_map_create();
box_export_htab = ui_handle_create();
box_export_mesh_handle = ui_handle_create();
box_export_hpreset = ui_handle_create();
ui_children = any_map_create();
ui_nodes_custom_buttons = any_map_create();
g_operators = any_map_create();
box_export_htab = ui_handle_create();
box_export_mesh_handle = ui_handle_create();
box_export_hpreset = ui_handle_create();
box_export_channels = any_array_create_from_raw(
(void *[]){
@@ -267,30 +261,18 @@ void _kickstart() {
2);
box_export_h_export_player_target = ui_handle_create();
import_texture_importers = any_map_create();
import_text_importers = any_map_create();
ui_files_path = ui_files_default_path;
base_res_handle = ui_handle_create();
base_res_x_handle = ui_handle_create();
base_res_y_handle = ui_handle_create();
base_bits_handle = ui_handle_create();
base_drop_paths = any_array_create_from_raw((void *[]){}, 0);
ui_base_hwnds = ui_base_init_hwnds();
ui_base_htabs = ui_base_init_htabs();
ui_base_hwnd_tabs = ui_base_init_hwnd_tabs();
ui_toolbar_handle = ui_handle_create();
import_texture_importers = any_map_create();
import_text_importers = any_map_create();
ui_files_path = ui_files_default_path;
base_res_handle = ui_handle_create();
base_res_x_handle = ui_handle_create();
base_res_y_handle = ui_handle_create();
base_bits_handle = ui_handle_create();
base_drop_paths = any_array_create_from_raw((void *[]){}, 0);
ui_base_hwnds = ui_base_init_hwnds();
ui_base_htabs = ui_base_init_htabs();
ui_base_hwnd_tabs = ui_base_init_hwnd_tabs();
ui_toolbar_handle = ui_handle_create();
ui_toolbar_tool_names = any_array_create_from_raw(
(void *[]){
@@ -329,88 +311,54 @@ void _kickstart() {
"",
},
13);
uniforms_ext_ortho_p = mat4_ortho(-0.5, 0.5, -0.5, 0.5, -0.5, 0.5);
box_projects_htab = ui_handle_create();
box_projects_hsearch = ui_handle_create();
tab_scripts_hscript = ui_handle_create();
import_mesh_importers = any_map_create();
ui_menubar_hwnd = ui_handle_create();
ui_menubar_menu_handle = ui_handle_create();
ui_menubar_tab = ui_handle_create();
ui_menubar_w = ui_menubar_default_w;
uniforms_ext_ortho_p = mat4_ortho(-0.5, 0.5, -0.5, 0.5, -0.5, 0.5);
box_projects_htab = ui_handle_create();
box_projects_hsearch = ui_handle_create();
tab_scripts_hscript = ui_handle_create();
import_mesh_importers = any_map_create();
ui_menubar_hwnd = ui_handle_create();
ui_menubar_menu_handle = ui_handle_create();
ui_menubar_tab = ui_handle_create();
ui_menubar_w = ui_menubar_default_w;
translator_translations = any_map_create();
g_project = ALLOC_INIT(project_t, {0});
g_project->_ = calloc(1, sizeof(project_runtime_t));
g_project->_->filepath = "";
g_project->_->assets = any_array_create_from_raw((void *[]){}, 0);
g_project->mesh_assets = any_array_create_from_raw((void *[]){}, 0);
g_project = ALLOC_INIT(project_t, {0});
g_project->_ = calloc(1, sizeof(project_runtime_t));
g_project->_->filepath = "";
g_project->_->assets = any_array_create_from_raw((void *[]){}, 0);
g_project->mesh_assets = any_array_create_from_raw((void *[]){}, 0);
g_project->_->material_groups = any_array_create_from_raw((void *[]){}, 0);
g_project->_->materials = any_array_create_from_raw((void *[]){}, 0);
g_project->_->brushes = any_array_create_from_raw((void *[]){}, 0);
g_project->_->layers = any_array_create_from_raw((void *[]){}, 0);
g_project->_->fonts = any_array_create_from_raw((void *[]){}, 0);
g_project->_->sounds = any_array_create_from_raw((void *[]){}, 0);
g_project->_->materials = any_array_create_from_raw((void *[]){}, 0);
g_project->_->brushes = any_array_create_from_raw((void *[]){}, 0);
g_project->_->layers = any_array_create_from_raw((void *[]){}, 0);
g_project->_->fonts = any_array_create_from_raw((void *[]){}, 0);
g_project->_->sounds = any_array_create_from_raw((void *[]){}, 0);
ui_view2d_hwnd = ui_handle_create();
ui_view2d_htab = ui_handle_create();
parser_material_node_values = any_map_create();
ui_view2d_hwnd = ui_handle_create();
ui_view2d_htab = ui_handle_create();
parser_material_node_values = any_map_create();
parser_material_node_vectors = any_map_create();
parser_material_custom_nodes = any_map_create();
tab_browser_hpath = ui_handle_create();
tab_browser_hsearch = ui_handle_create();
util_mesh_unwrappers = any_map_create();
ui_header_h = ui_header_default_h;
ui_header_handle = ui_handle_create();
g_plugins = any_map_create();
parser_logic_custom_nodes = any_map_create();
resource_bundled = any_map_create();
ui_nodes_hwnd = ui_handle_create();
ui_nodes_group_stack = any_array_create_from_raw((void *[]){}, 0);
ui_nodes_htab = ui_handle_create();
_ui_nodes_htype = ui_handle_create();
_ui_nodes_hname = ui_handle_create();
_ui_nodes_hmin = ui_handle_create();
_ui_nodes_hmax = ui_handle_create();
_ui_nodes_hval0 = ui_handle_create();
_ui_nodes_hval1 = ui_handle_create();
_ui_nodes_hval2 = ui_handle_create();
_ui_nodes_hval3 = ui_handle_create();
tab_browser_hpath = ui_handle_create();
tab_browser_hsearch = ui_handle_create();
util_mesh_unwrappers = any_map_create();
ui_header_h = ui_header_default_h;
ui_header_handle = ui_handle_create();
g_plugins = any_map_create();
parser_logic_custom_nodes = any_map_create();
resource_bundled = any_map_create();
ui_nodes_hwnd = ui_handle_create();
ui_nodes_group_stack = any_array_create_from_raw((void *[]){}, 0);
ui_nodes_htab = ui_handle_create();
_ui_nodes_htype = ui_handle_create();
_ui_nodes_hname = ui_handle_create();
_ui_nodes_hmin = ui_handle_create();
_ui_nodes_hmax = ui_handle_create();
_ui_nodes_hval0 = ui_handle_create();
_ui_nodes_hval1 = ui_handle_create();
_ui_nodes_hval2 = ui_handle_create();
_ui_nodes_hval3 = ui_handle_create();
nodes_brush_categories = any_array_create_from_raw(
(void *[]){
@@ -447,23 +395,16 @@ void _kickstart() {
ui_sidebar_default_w = ui_sidebar_default_w_full;
#endif
ui_sidebar_hminimized = ui_handle_create();
ui_sidebar_w_mini = ui_sidebar_default_w_mini;
console_last_traces = any_array_create(0);
box_preferences_htab = ui_handle_create();
ui_box_hwnd = ui_handle_create();
tab_layers_layer_name_handle = ui_handle_create();
tab_meshes_mesh_name_handle = ui_handle_create();
ui_sidebar_hminimized = ui_handle_create();
ui_sidebar_w_mini = ui_sidebar_default_w_mini;
console_last_traces = any_array_create(0);
box_preferences_htab = ui_handle_create();
ui_box_hwnd = ui_handle_create();
tab_layers_layer_name_handle = ui_handle_create();
tab_meshes_mesh_name_handle = ui_handle_create();
render_path_raytrace_f32a = f32_array_create(24);
render_path_raytrace_help_mat = mat4_identity();
neural_node_results = any_imap_create();
neural_node_results = any_imap_create();
sys_on_resize = base_on_resize;
sys_on_w = base_w;
@@ -502,14 +443,14 @@ void _kickstart() {
render_path_commands = render_path_deferred_commands;
}
#ifdef WITH_PLUGINS
plugins_init();
#endif
if (!string_equals(g_config->lut_path, "") && iron_file_exists(g_config->lut_path)) {
import_lut_run(g_config->lut_path);
}
#ifdef WITH_PLUGINS
plugins_init();
#endif
base_init();
#ifdef is_debug