You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user