Skip to content

Commit

Permalink
Added saving project settings to plugin tools (GodotVR#583)
Browse files Browse the repository at this point in the history
This PR fixes issue GodotVR#582 by saving the project settings after running the "Enable OpenXR" or "Set Physics Layers" plugin tools.
  • Loading branch information
Malcolmnixon authored Dec 10, 2023
1 parent c5c7433 commit 3123a3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/godot-xr-tools/plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func _define_project_setting(
func _enable_openxr() -> void:
ProjectSettings.set("xr/openxr/enabled", true)
ProjectSettings.set("xr/shaders/enabled", true)
ProjectSettings.save()


func _set_physics_layers() -> void:
Expand All @@ -55,6 +56,7 @@ func _set_physics_layers() -> void:
ProjectSettings.set("layer_names/3d_physics/layer_21", "Pointable Objects")
ProjectSettings.set("layer_names/3d_physics/layer_22", "Hand Pose Areas")
ProjectSettings.set("layer_names/3d_physics/layer_23", "UI Objects")
ProjectSettings.save()


func _on_xr_tools_menu_pressed(id : int) -> void:
Expand Down

0 comments on commit 3123a3d

Please sign in to comment.