2024-11-10 16:53:36 +01:00
|
|
|
|
|
|
|
|
function context_ext_init(c: context_t) {
|
2025-08-07 19:43:11 +02:00
|
|
|
c.tool = tool_type_t.ERASER;
|
|
|
|
|
c.color_picker_previous_tool = tool_type_t.ERASER;
|
2024-11-10 16:53:36 +01:00
|
|
|
c.brush_radius = 0.25;
|
|
|
|
|
c.brush_radius_handle.value = 0.25;
|
|
|
|
|
c.brush_hardness = 0.8;
|
|
|
|
|
|
|
|
|
|
c.coords = vec4_create();
|
|
|
|
|
c.start_x = 0.0;
|
|
|
|
|
c.start_y = 0.0;
|
|
|
|
|
|
|
|
|
|
c.lock_begin = false;
|
|
|
|
|
c.lock_x = false;
|
|
|
|
|
c.lock_y = false;
|
|
|
|
|
c.lock_start_x = 0.0;
|
|
|
|
|
c.lock_start_y = 0.0;
|
|
|
|
|
c.registered = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function context_ext_select_paint_object(o: mesh_object_t) {
|
|
|
|
|
context_raw.paint_object = o;
|
|
|
|
|
}
|