Skip to content

MeshDatabaseEditor ​

Inherits: VBoxContainer

The editor of the Meshes tab (Assets > Meshes): the equipment, facial and material meshes of the mesh library as a tree, with a search bar, an import button, the settings of the selected mesh (its per-surface materials) and the checks of the library.

Variables ​

Vector3Controlposition_offset_control
Vector3Controlrotation_offset_control
Vector3Controlenchant_start_control
Vector3Controlenchant_end_control
SpinBoxenchant_width_spin
WeaponMeshToolsweapon_tools
FoldableContainermaterials_fold
FoldableContainerweapon_fold
Vector3Controlprojectile_spawn_control
Dictionaryequipment_data{}
Dictionarymaterials_data{}
Dictionaryexpanded_categories{}
Stringselected_mesh_category""
Stringselected_mesh_type""
Stringselected_mesh_tag"" # Tag for body parts/attachments
Stringselected_mesh_name""
Stringselected_mesh_path""
Stringselected_mesh_skin_path"" # Path to skin file if detected
Meshcurrent_meshnull
intcurrent_surface_index0
Dictionarysurface_constraints{} # surface_index -> {allowed: [], preferred: ""}
Stringcurrent_tree_filter"all" # "all", "weapons", or a tag name
FileDialogfile_dialog
AssetThumbnailspicturesAssetThumbnails.new(DatabaseMeshes.THUMBNAILS_PATH)
AssetPreviewHeaderheader
Dictionarycurrent_import_context{}

Methods ​

voidcleanup_remove_global_metadata()
voidrefresh_database()
Stringget_selected_mesh_name()
Stringget_selected_mesh_path()
Meshget_selected_mesh()
intget_current_surface_index()
intget_surface_count()

Constants ​

  • float SAVE_DELAY = 0.4 - A weapon's changed values wait SAVE_DELAY seconds before the file is written: [mesh, path] of the waiting save

Variable descriptions ​

Vector3Control position_offset_control ​

No description yet.

Vector3Control rotation_offset_control ​

No description yet.

Vector3Control enchant_start_control ​

No description yet.

Vector3Control enchant_end_control ​

No description yet.

SpinBox enchant_width_spin ​

No description yet.

WeaponMeshTools weapon_tools ​

(2026-11-14, the user: set the data of a weapon mesh in a 3D view with tools: the weapon in the hand of a skeleton, the grip, the enchant segment and the spawn point dragged or clicked)

FoldableContainer materials_fold ​

The foldable sections of the panel (2026-11-14, the user: the panel grew too tall): the materials of the surfaces, and the six weapon settings under the view

FoldableContainer weapon_fold ​

No description yet.

Vector3Control projectile_spawn_control ​

No description yet.

Dictionary equipment_data = ​

No description yet.

Dictionary materials_data = ​

No description yet.

Dictionary expanded_categories = ​

No description yet.

String selected_mesh_category = "" ​

No description yet.

String selected_mesh_type = "" ​

No description yet.

String selected_mesh_tag = "" # Tag for body parts/attachments ​

No description yet.

String selected_mesh_name = "" ​

No description yet.

String selected_mesh_path = "" ​

No description yet.

String selected_mesh_skin_path = "" # Path to skin file if detected ​

No description yet.

Mesh current_mesh = null ​

No description yet.

int current_surface_index = 0 ​

No description yet.

Dictionary surface_constraints = # surface_index -> allowed: [], preferred: "" ​

No description yet.

String current_tree_filter = "all" # "all", "weapons", or a tag name ​

No description yet.

FileDialog file_dialog ​

No description yet.

AssetThumbnails pictures = AssetThumbnails.new(DatabaseMeshes.THUMBNAILS_PATH) ​

The pictures of the meshes (the same folder and file names as DatabaseMeshes keeps them in), the files that still need one, and the header of the info panel.

AssetPreviewHeader header ​

No description yet.

Dictionary current_import_context = ​

No description yet.

Method descriptions ​

void cleanup_remove_global_metadata() ​

No description yet.

void refresh_database() ​

No description yet.

String get_selected_mesh_name() ​

No description yet.

String get_selected_mesh_path() ​

No description yet.

Mesh get_selected_mesh() ​

No description yet.

int get_current_surface_index() ​

No description yet.

int get_surface_count() ​

No description yet.