1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

[Editor] Expose more editor settings to documentation

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
This commit is contained in:
A Thousand Ships
2024-06-21 12:47:17 +02:00
parent 83d54ab2ad
commit dd6443193c
40 changed files with 283 additions and 81 deletions

View File

@@ -817,7 +817,10 @@ void Path3DEditorPlugin::_bind_methods() {
Path3DEditorPlugin::Path3DEditorPlugin() {
singleton = this;
disk_size = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size", 0.8);
mirror_handle_angle = true;
mirror_handle_length = true;
disk_size = EDITOR_GET("editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size");
Ref<Path3DGizmoPlugin> gizmo_plugin = memnew(Path3DGizmoPlugin(disk_size));
Node3DEditor::get_singleton()->add_gizmo_plugin(gizmo_plugin);
@@ -1061,7 +1064,7 @@ int Path3DGizmoPlugin::get_priority() const {
Path3DGizmoPlugin::Path3DGizmoPlugin(float p_disk_size) {
Color path_color = SceneTree::get_singleton()->get_debug_paths_color();
Color path_tilt_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/path_tilt", Color(1.0, 1.0, 0.4, 0.9));
Color path_tilt_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/path_tilt");
disk_size = p_disk_size;
create_material("path_material", path_color);