|
Blender V4.3
|
#include "DNA_view3d_enums.h"Go to the source code of this file.
Macros | |
| #define | ED_IMAGE_UNDO_TILE_BITS 6 |
| #define | ED_IMAGE_UNDO_TILE_SIZE (1 << ED_IMAGE_UNDO_TILE_BITS) |
| #define | ED_IMAGE_UNDO_TILE_NUMBER(size) (((size) + ED_IMAGE_UNDO_TILE_SIZE - 1) >> ED_IMAGE_UNDO_TILE_BITS) |
| #define ED_IMAGE_UNDO_TILE_BITS 6 |
Definition at line 106 of file ED_paint.hh.
Referenced by image_undosys_step_encode(), imapaint_region_tiles(), project_paint_uvpixel_init(), ubuf_from_image_all_tiles(), uhandle_restore_list(), and blender::ed::sculpt_paint::paint::image::undo_region_tiles().
| #define ED_IMAGE_UNDO_TILE_NUMBER | ( | size | ) | (((size) + ED_IMAGE_UNDO_TILE_SIZE - 1) >> ED_IMAGE_UNDO_TILE_BITS) |
Definition at line 108 of file ED_paint.hh.
Referenced by project_paint_build_proj_ima(), project_paint_face_init(), project_paint_uvpixel_init(), and ubuf_from_image_no_tiles().
| #define ED_IMAGE_UNDO_TILE_SIZE (1 << ED_IMAGE_UNDO_TILE_BITS) |
Definition at line 107 of file ED_paint.hh.
Referenced by ED_image_paint_tile_find(), ED_image_paint_tile_push(), imbuf_alloc_temp_tile(), paint_2d_do_making_brush(), project_paint_uvpixel_init(), ptile_restore_runtime_map(), utile_alloc(), utile_init_from_imbuf(), and utile_restore().
Store the last used tool in the sculpt session.
Definition at line 65 of file editors/sculpt_paint/paint_canvas.cc.
References bToolRef::idname, image_paint_brush_type_shading_color_follows_last_used(), image_paint_brush_uses_canvas(), image_paint_tool_uses_canvas(), Object::sculpt, SculptSession::sticky_shading_color, and WM_toolsystem_ref_from_context().
Referenced by brush_stroke_init(), and blender::ed::sculpt_paint::color::sculpt_color_filter_invoke().
Does the given tool use a paint canvas.
When #tref isn't given the active tool from the context is used.
Definition at line 98 of file editors/sculpt_paint/paint_canvas.cc.
References bToolRef::idname, image_paint_brush_uses_canvas(), image_paint_tool_uses_canvas(), and WM_toolsystem_ref_from_context().
Referenced by ED_paint_shading_color_override().
| void * ED_image_paint_tile_find | ( | PaintTileMap * | paint_tile_map, |
| Image * | image, | ||
| ImBuf * | ibuf, | ||
| ImageUser * | iuser, | ||
| int | x_tile, | ||
| int | y_tile, | ||
| unsigned short ** | r_mask, | ||
| bool | validate ) |
Definition at line 159 of file image_undo.cc.
References ED_IMAGE_UNDO_TILE_SIZE, PaintTileKey::ibuf, image(), PaintTileKey::image, PaintTileKey::iuser_tile, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), PaintTileMap::map, PaintTile::mask, MEM_callocN, PaintTile::pt, PaintTile::rect, square_i(), ImageUser::tile, PaintTile::valid, PaintTileKey::x_tile, and PaintTileKey::y_tile.
Referenced by ED_image_paint_tile_push(), and paint_2d_do_making_brush().
| void ED_image_paint_tile_lock_end | ( | ) |
Definition at line 70 of file image_undo.cc.
References BLI_spin_end(), and paint_tiles_lock.
Referenced by project_paint_end().
| void ED_image_paint_tile_lock_init | ( | ) |
Definition at line 65 of file image_undo.cc.
References BLI_spin_init(), and paint_tiles_lock.
Referenced by proj_paint_state_thread_init().
| PaintTileMap * ED_image_paint_tile_map_get | ( | ) |
Definition at line 1085 of file image_undo.cc.
References BKE_undosys_stack_init_or_active_with_type(), BKE_UNDOSYS_TYPE_IMAGE, BLI_assert, ED_undo_stack_get(), ImageUndoStep::paint_mode, ImageUndoStep::paint_tile_map, UndoStack::step_init, and Texture2D.
Referenced by ED_imapaint_dirty_region(), paint_2d_do_making_brush(), project_paint_undo_subtiles(), and blender::ed::sculpt_paint::paint::image::push_undo().
| void * ED_image_paint_tile_push | ( | PaintTileMap * | paint_tile_map, |
| Image * | image, | ||
| ImBuf * | ibuf, | ||
| ImBuf ** | tmpibuf, | ||
| ImageUser * | iuser, | ||
| int | x_tile, | ||
| int | y_tile, | ||
| unsigned short ** | r_mask, | ||
| bool ** | r_valid, | ||
| bool | use_thread_lock, | ||
| bool | find_prev ) |
Definition at line 208 of file image_undo.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_or_modify(), BLI_spin_lock(), BLI_spin_unlock(), PaintTile::byte_ptr, data, ImBufFloatBuffer::data, ED_image_paint_tile_find(), ED_IMAGE_UNDO_TILE_SIZE, ImBuf::float_buffer, PaintTile::fp, PaintTile::ibuf, PaintTileKey::ibuf, image(), PaintTile::image, PaintTileKey::image, image_undo_steal_and_assign_byte_buffer(), image_undo_steal_and_assign_float_buffer(), IMB_rectcpy(), imbuf_alloc_temp_tile(), PaintTile::iuser, PaintTileKey::iuser_tile, PaintTileMap::map, PaintTile::mask, MEM_callocN, paint_tiles_lock, PaintTile::pt, ptile_free(), PaintTile::rect, ImageUser::scene, square_i(), ImageUser::tile, PaintTile::use_float, PaintTile::valid, PaintTile::x_tile, PaintTileKey::x_tile, PaintTile::y_tile, and PaintTileKey::y_tile.
Referenced by ED_imapaint_dirty_region(), project_paint_undo_subtiles(), and blender::ed::sculpt_paint::paint::image::push_undo().
| void ED_image_undo_push_begin | ( | const char * | name, |
| PaintMode | paint_mode ) |
The caller is responsible for running ED_image_undo_push_end, failure to do so causes an invalid state for the undo system.
Definition at line 1119 of file image_undo.cc.
References image_undo_push_begin().
Referenced by ED_imapaint_bucket_fill(), stroke_undo_begin(), texture_paint_camera_project_exec(), and blender::ed::sculpt_paint::image::ops::paint::texture_paint_init().
| void ED_image_undo_push_begin_with_image | ( | const char * | name, |
| Image * | image, | ||
| ImBuf * | ibuf, | ||
| ImageUser * | iuser ) |
Definition at line 1124 of file image_undo.cc.
References BKE_image_get_tile, BKE_UNDOSYS_TYPE_IMAGE, BLI_assert, ED_undo_stack_get(), ImageUndoStep::handles, image_undo_push_begin(), UndoImageBuf::post, UndoStep::prev, ImageUndoStep::step, UndoStack::step_active, Texture2D, ImageUser::tile, UndoImageBuf::tiles, UndoImageBuf::tiles_len, UndoStep::type, ubuf_from_image_all_tiles(), ubuf_lookup_from_reference(), uhandle_ensure(), uhandle_ensure_ubuf(), and UndoImageTile::users.
Referenced by image_flip_exec(), image_invert_exec(), image_rotate_orthogonal_exec(), and image_scale_exec().
| void ED_image_undo_push_end | ( | ) |
Definition at line 1157 of file image_undo.cc.
References BKE_undosys_stack_limit_steps_and_memory_defaults, BKE_undosys_step_push(), ED_undo_stack_get(), and WM_file_tag_modified().
Referenced by ED_imapaint_bucket_fill(), image_flip_exec(), image_invert_exec(), image_rotate_orthogonal_exec(), image_scale_exec(), blender::ed::sculpt_paint::image::ops::paint::paint_stroke_done(), stroke_undo_end(), and texture_paint_camera_project_exec().
| void ED_image_undo_restore | ( | UndoStep * | us | ) |
Restore painting image to previous state. Used for anchored and drag-dot style brushes.
Definition at line 1101 of file image_undo.cc.
References ptile_invalidate_map(), and ptile_restore_runtime_map().
Referenced by blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step().
| void ED_image_undosys_type | ( | UndoType * | ut | ) |
Export for ED_undo_sys.
Definition at line 1051 of file image_undo.cc.
References UndoType::flags, image_undosys_foreach_ID_ref(), image_undosys_poll(), image_undosys_step_decode(), image_undosys_step_encode(), image_undosys_step_encode_init(), image_undosys_step_free(), UndoType::name, UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_encode_init, UndoType::step_foreach_ID_ref, UndoType::step_free, UndoType::step_size, and UNDOTYPE_FLAG_DECODE_ACTIVE_STEP.
Referenced by ED_undosys_type_init().
| void ED_imapaint_bucket_fill | ( | bContext * | C, |
| const float | color[3], | ||
| wmOperator * | op, | ||
| const int | mouse[2] ) |
Definition at line 1100 of file paint_image.cc.
References CTX_wm_space_image(), DEG_id_tag_update(), ED_image_undo_push_begin(), ED_image_undo_push_end(), float, Image::id, SpaceImage::image, wmOperatorType::name, paint_2d_bucket_fill(), Texture2D, and wmOperator::type.
Referenced by drop_color_invoke().
| void ED_imapaint_clear_partial_redraw | ( | ) |
Definition at line 96 of file paint_image.cc.
References BLI_rcti_init_minmax(), ImagePaintPartialRedraw::dirty_region, and imapaintpartial.
Referenced by image_flip_exec(), image_invert_exec(), image_rotate_orthogonal_exec(), image_scale_exec(), paint_2d_bucket_fill(), paint_2d_gradient_fill(), and paint_2d_redraw().
| void ED_imapaint_dirty_region | ( | Image * | ima, |
| ImBuf * | ibuf, | ||
| ImageUser * | iuser, | ||
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| bool | find_old ) |
Definition at line 114 of file paint_image.cc.
References BKE_image_mark_dirty(), BLI_rcti_do_minmax_rcti(), BLI_rcti_init(), ImagePaintPartialRedraw::dirty_region, ED_image_paint_tile_map_get(), ED_image_paint_tile_push(), imapaint_region_tiles(), imapaintpartial, IMB_freeImBuf(), IMB_rectclip(), and w().
Referenced by paint_2d_bucket_fill(), paint_2d_gradient_fill(), and paint_2d_op().
| void ED_keymap_paint | ( | wmKeyConfig * | keyconf | ) |
Definition at line 1081 of file paint_ops.cc.
References facemask_paint_poll(), image_texture_paint_poll(), paint_curve_poll(), wmKeyMap::poll, RGN_TYPE_WINDOW, SCULPT_mode_poll(), SPACE_EMPTY, vert_paint_poll(), vertex_paint_mode_poll(), weight_paint_mode_poll(), WM_keymap_ensure(), and WM_modalkeymap_assign().
Referenced by ED_spacetypes_keymap().
| void ED_object_texture_paint_mode_enter | ( | bContext * | C | ) |
Definition at line 932 of file paint_image.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), depsgraph, and ED_object_texture_paint_mode_enter_ex().
| void ED_object_texture_paint_mode_enter_ex | ( | Main & | bmain, |
| Scene & | scene, | ||
| Depsgraph & | depsgraph, | ||
| Object & | ob ) |
Definition at line 874 of file paint_image.cc.
References Object::actcol, BKE_image_free_all_gputextures(), BKE_image_paint_set_mipmap(), BKE_mesh_from_object(), BKE_object_material_get(), BKE_paint_brushes_validate(), BKE_paint_init(), BKE_scene_graph_evaluated_ensure(), BKE_texpaint_slots_refresh_object(), BLI_assert, ImagePaintSettings::canvas, DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, ED_paint_proj_mesh_data_check(), ED_space_image_sync(), ID_RECALC_SYNC_TO_EVAL, TexPaintSlot::ima, IMAGEPAINT_MODE_IMAGE, IMAGEPAINT_MODE_MATERIAL, ImagePaintSettings::mode, Object::mode, NC_SCENE, ND_MODE, OB_MODE_TEXTURE_PAINT, ImagePaintSettings::paint, Material::paint_active_slot, PAINT_CURSOR_TEXTURE_PAINT, paint_init_pivot(), scene, Material::texpaintslot, Texture3D, toggle_paint_cursor(), and WM_main_add_notifier().
Referenced by ED_object_texture_paint_mode_enter(), and texture_paint_toggle_exec().
| void ED_object_texture_paint_mode_exit | ( | bContext * | C | ) |
Definition at line 958 of file paint_image.cc.
References CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), and ED_object_texture_paint_mode_exit_ex().
Definition at line 942 of file paint_image.cc.
References BKE_image_free_all_gputextures(), BKE_image_paint_set_mipmap(), BKE_mesh_from_object(), BLI_assert, DEG_id_tag_update(), ID_RECALC_SYNC_TO_EVAL, Object::mode, NC_SCENE, ND_MODE, toggle_paint_cursor(), and WM_main_add_notifier().
Referenced by blender::ed::object::ed_object_mode_generic_exit_ex(), ED_object_texture_paint_mode_exit(), and texture_paint_toggle_exec().
| void ED_object_vpaintmode_enter | ( | bContext * | C, |
| Depsgraph & | depsgraph ) |
Definition at line 765 of file paint_vertex.cc.
References CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), depsgraph, and ED_object_vpaintmode_enter_ex().
| void ED_object_vpaintmode_enter_ex | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob ) |
Definition at line 761 of file paint_vertex.cc.
References depsgraph, blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), and OB_MODE_VERTEX_PAINT.
Referenced by ED_editors_init(), ED_object_vpaintmode_enter(), and vpaint_mode_toggle_exec().
| void ED_object_vpaintmode_exit | ( | bContext * | C | ) |
Definition at line 783 of file paint_vertex.cc.
References CTX_data_active_object(), and ED_object_vpaintmode_exit_ex().
| void ED_object_vpaintmode_exit_ex | ( | Object & | ob | ) |
Definition at line 779 of file paint_vertex.cc.
References blender::ed::sculpt_paint::vwpaint::mode_exit_generic(), and OB_MODE_VERTEX_PAINT.
Referenced by blender::ed::object::ed_object_mode_generic_exit_ex(), ED_object_vpaintmode_exit(), and vpaint_mode_toggle_exec().
| void ED_object_wpaintmode_enter | ( | bContext * | C, |
| Depsgraph & | depsgraph ) |
Definition at line 1557 of file paint_weight.cc.
References CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), depsgraph, and ED_object_wpaintmode_enter_ex().
| void ED_object_wpaintmode_enter_ex | ( | Main & | bmain, |
| Depsgraph & | depsgraph, | ||
| Scene & | scene, | ||
| Object & | ob ) |
Definition at line 1553 of file paint_weight.cc.
References depsgraph, blender::ed::sculpt_paint::vwpaint::mode_enter_generic(), and OB_MODE_WEIGHT_PAINT.
Referenced by ED_editors_init(), ED_object_wpaintmode_enter(), and wpaint_mode_toggle_exec().
| void ED_object_wpaintmode_exit | ( | bContext * | C | ) |
Definition at line 1574 of file paint_weight.cc.
References CTX_data_active_object(), and ED_object_wpaintmode_exit_ex().
| void ED_object_wpaintmode_exit_ex | ( | Object & | ob | ) |
Definition at line 1570 of file paint_weight.cc.
References blender::ed::sculpt_paint::vwpaint::mode_exit_generic(), and OB_MODE_WEIGHT_PAINT.
Referenced by blender::ed::object::ed_object_mode_generic_exit_ex(), ED_object_wpaintmode_exit(), and wpaint_mode_toggle_exec().
| void ED_operatormacros_paint | ( | ) |
Definition at line 953 of file paint_ops.cc.
References wmOperatorType::description, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
| void ED_operatortypes_paint | ( | ) |
Definition at line 969 of file paint_ops.cc.
References BRUSH_OT_curve_preset(), BRUSH_OT_scale_size(), BRUSH_OT_sculpt_curves_falloff_preset(), BRUSH_OT_stencil_control(), BRUSH_OT_stencil_fit_image_aspect(), BRUSH_OT_stencil_reset_transform(), PAINT_OT_add_simple_uvs(), PAINT_OT_add_texture_paint_slot(), PAINT_OT_brush_colors_flip(), PAINT_OT_face_select_all(), PAINT_OT_face_select_hide(), PAINT_OT_face_select_less(), PAINT_OT_face_select_linked(), PAINT_OT_face_select_linked_pick(), PAINT_OT_face_select_loop(), PAINT_OT_face_select_more(), PAINT_OT_face_vert_reveal(), PAINT_OT_grab_clone(), PAINT_OT_image_from_view(), PAINT_OT_image_paint(), PAINT_OT_project_image(), PAINT_OT_sample_color(), PAINT_OT_texture_paint_toggle(), PAINT_OT_vert_select_all(), PAINT_OT_vert_select_hide(), PAINT_OT_vert_select_less(), PAINT_OT_vert_select_linked(), PAINT_OT_vert_select_linked_pick(), PAINT_OT_vert_select_more(), PAINT_OT_vert_select_ungrouped(), PAINT_OT_vertex_color_brightness_contrast(), PAINT_OT_vertex_color_from_weight(), PAINT_OT_vertex_color_hsv(), PAINT_OT_vertex_color_invert(), PAINT_OT_vertex_color_levels(), PAINT_OT_vertex_color_set(), PAINT_OT_vertex_color_smooth(), PAINT_OT_vertex_paint(), PAINT_OT_vertex_paint_toggle(), PAINT_OT_weight_from_bones(), PAINT_OT_weight_gradient(), PAINT_OT_weight_paint(), PAINT_OT_weight_paint_toggle(), PAINT_OT_weight_sample(), PAINT_OT_weight_sample_group(), PAINT_OT_weight_set(), PAINTCURVE_OT_add_point(), PAINTCURVE_OT_cursor(), PAINTCURVE_OT_delete_point(), PAINTCURVE_OT_draw(), PAINTCURVE_OT_new(), PAINTCURVE_OT_select(), PAINTCURVE_OT_slide(), PALETTE_OT_color_add(), PALETTE_OT_color_delete(), PALETTE_OT_color_move(), PALETTE_OT_extract_from_image(), PALETTE_OT_join(), PALETTE_OT_new(), PALETTE_OT_sort(), SCULPT_OT_uv_sculpt_grab(), SCULPT_OT_uv_sculpt_pinch(), SCULPT_OT_uv_sculpt_relax(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| void ED_paint_data_warning | ( | ReportList * | reports, |
| bool | has_uvs, | ||
| bool | has_mat, | ||
| bool | has_tex, | ||
| bool | has_stencil ) |
Definition at line 6374 of file paint_image_proj.cc.
References BKE_reportf(), RPT_, and RPT_WARNING.
Referenced by texture_paint_camera_project_exec(), and blender::ed::sculpt_paint::image::ops::paint::texture_paint_init().
| bool ED_paint_proj_mesh_data_check | ( | Scene & | scene, |
| Object & | ob, | ||
| bool * | r_has_uvs, | ||
| bool * | r_has_mat, | ||
| bool * | r_has_tex, | ||
| bool * | r_has_stencil ) |
Make sure that active object has a material, and assign UVs and image layers if they do not exist.
Definition at line 6386 of file paint_image_proj.cc.
References BKE_mesh_from_object(), BKE_object_material_get(), BKE_paint_brush(), BKE_texpaint_slot_refresh_cache(), BLI_assert, ImagePaintSettings::canvas, CD_PROP_FLOAT2, CustomData_number_of_layers(), ImagePaintSettings::flag, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, TexPaintSlot::ima, Brush::image_brush_type, IMAGE_PAINT_BRUSH_TYPE_MASK, IMAGEPAINT_MISSING_MATERIAL, IMAGEPAINT_MISSING_STENCIL, IMAGEPAINT_MISSING_TEX, IMAGEPAINT_MISSING_UVS, IMAGEPAINT_MODE_IMAGE, IMAGEPAINT_MODE_MATERIAL, IMAGEPAINT_PROJECT_LAYER_STENCIL, ImagePaintSettings::missing_data, ImagePaintSettings::mode, OB_MESH, ImagePaintSettings::paint, Material::paint_active_slot, ImagePaintSettings::stencil, Material::texpaintslot, Object::totcol, and Object::type.
Referenced by add_simple_uvs_exec(), ED_editors_init_for_undo(), ED_object_texture_paint_mode_enter_ex(), material_slot_add_exec(), material_slot_remove_exec(), material_slot_remove_unused_exec(), mesh_uv_texture_add_exec(), mesh_uv_texture_remove_exec(), proj_paint_add_slot(), scene_changed(), texture_paint_camera_project_exec(), and blender::ed::sculpt_paint::image::ops::paint::texture_paint_init().
| eV3DShadingColorType ED_paint_shading_color_override | ( | bContext * | C, |
| const PaintModeSettings * | settings, | ||
| Object & | ob, | ||
| eV3DShadingColorType | orig_color_type ) |
Color type of an object can be overridden in sculpt/paint mode.
Definition at line 110 of file editors/sculpt_paint/paint_canvas.cc.
References TexPaintSlot::attribute_name, ED_image_paint_brush_type_use_canvas(), blender::ed::sculpt_paint::canvas::get_active_slot(), TexPaintSlot::ima, image_paint_brush_type_shading_color_follows_last_used_tool(), PAINT_CANVAS_SOURCE_COLOR_ATTRIBUTE, PAINT_CANVAS_SOURCE_IMAGE, PAINT_CANVAS_SOURCE_MATERIAL, Object::sculpt, SculptSession::sticky_shading_color, V3D_SHADING_TEXTURE_COLOR, and V3D_SHADING_VERTEX_COLOR.
Referenced by blender::workbench::ObjectState::ObjectState().
| void ED_paintcurve_undo_push_begin | ( | const char * | name | ) |
Definition at line 160 of file paint_curve_undo.cc.
References BKE_undosys_step_push_init_with_type(), BKE_UNDOSYS_TYPE_PAINTCURVE, and ED_undo_stack_get().
Referenced by paintcurve_delete_point_exec(), paintcurve_point_add(), paintcurve_point_select(), and paintcurve_slide_modal().
| void ED_paintcurve_undo_push_end | ( | bContext * | C | ) |
Definition at line 167 of file paint_curve_undo.cc.
References BKE_undosys_stack_limit_steps_and_memory_defaults, BKE_undosys_step_push(), ED_undo_stack_get(), and WM_file_tag_modified().
Referenced by paintcurve_delete_point_exec(), paintcurve_point_add(), paintcurve_point_select(), and paintcurve_slide_modal().
| void ED_paintcurve_undosys_type | ( | UndoType * | ut | ) |
Export for ED_undo_sys.
Definition at line 138 of file paint_curve_undo.cc.
References UndoType::flags, UndoType::name, paintcurve_undosys_foreach_ID_ref(), paintcurve_undosys_poll(), paintcurve_undosys_step_decode(), paintcurve_undosys_step_encode(), paintcurve_undosys_step_encode_init(), paintcurve_undosys_step_free(), UndoType::poll, UndoType::step_decode, UndoType::step_encode, UndoType::step_encode_init, UndoType::step_foreach_ID_ref, UndoType::step_free, and UndoType::step_size.
Referenced by ED_undosys_type_init().