paint: cleanup
This commit is contained in:
@@ -197,7 +197,6 @@ bool ui_view2d_tiled_show = false;
|
||||
bool ui_view2d_grid_redraw = true;
|
||||
ui_handle_t *ui_view2d_htab;
|
||||
bool sim_running = false;
|
||||
any_map_t *sim_object_script_map;
|
||||
bool sim_record = false;
|
||||
bool viewport_recording = false;
|
||||
bool node_shader_dump_to_script = false;
|
||||
|
||||
@@ -395,9 +395,6 @@ void _kickstart() {
|
||||
ui_view2d_htab = ui_handle_create();
|
||||
gc_root(ui_view2d_htab);
|
||||
|
||||
sim_object_script_map = any_map_create();
|
||||
gc_root(sim_object_script_map);
|
||||
|
||||
parser_material_node_values = any_map_create();
|
||||
gc_root(parser_material_node_values);
|
||||
|
||||
|
||||
@@ -21,15 +21,6 @@ void sim_update() {
|
||||
// return;
|
||||
// }
|
||||
|
||||
object_t_array_t *objects = map_keys(sim_object_script_map);
|
||||
for (i32 i = 0; i < objects->length; ++i) {
|
||||
object_t *o = objects->buffer[i];
|
||||
char *s = any_map_get(sim_object_script_map, o);
|
||||
char *addr = i64_to_string((i64)(o->transform));
|
||||
s = string("{let transform=%s;%s}", addr, s);
|
||||
// minic_eval(s);
|
||||
}
|
||||
|
||||
physics_world_t *world = physics_world_active;
|
||||
physics_world_update(world);
|
||||
|
||||
|
||||
@@ -355,33 +355,6 @@ void tab_meshes_draw_context_menu() {
|
||||
// }
|
||||
// }
|
||||
|
||||
// ui_text("Script", UI_ALIGN_LEFT, g_theme->SEPARATOR_COL);
|
||||
|
||||
// char *script = any_map_get(sim_object_script_map, g_context->selected_object);
|
||||
// if (script == NULL) {
|
||||
// script = "";
|
||||
// }
|
||||
|
||||
// ui_handle_t *hscript = ui_handle(__ID__);
|
||||
// hscript->text = string_copy(script);
|
||||
|
||||
// draw_font_t *_font = g_font;
|
||||
// i32 _font_size = g_ui->font_size;
|
||||
// draw_font_t *fmono = data_get_font("font_mono.ttf");
|
||||
// ui_set_font(g_ui, fmono);
|
||||
// g_ui->font_size = math_floor(15 * UI_SCALE());
|
||||
// gc_unroot(ui_text_area_coloring);
|
||||
// ui_text_area_coloring = tab_scripts_get_text_coloring();
|
||||
// gc_root(ui_text_area_coloring);
|
||||
// ui_text_area(hscript, UI_ALIGN_LEFT, true, "", false);
|
||||
// gc_unroot(ui_text_area_coloring);
|
||||
// ui_text_area_coloring = NULL;
|
||||
// ui_set_font(g_ui, _font);
|
||||
// g_ui->font_size = _font_size;
|
||||
|
||||
// script = string_copy(hscript->text);
|
||||
// any_map_set(sim_object_script_map, g_context->selected_object, script);
|
||||
|
||||
// Material override
|
||||
string_array_t *mat_combo = string_array_create(0);
|
||||
string_array_push(mat_combo, ""); // Empty = use painted layers
|
||||
|
||||
Reference in New Issue
Block a user