Skip to content

Commit

Permalink
fix: add missing VR files (#454)
Browse files Browse the repository at this point in the history
* fix: add missing VR files

* fix godot xr plugin name

* use 4.2 docker image
  • Loading branch information
kuruk-mm authored Oct 1, 2024
1 parent 14da6fe commit ec56b11
Show file tree
Hide file tree
Showing 35 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build:
runs-on: bigrunner
container:
image: docker://kuruk/dcl-godot-android-builder:latest
image: docker://kuruk/dcl-godot-android-builder:4.2
volumes:
- /home/user/.cache/devgodot:/github/home/.cache/devgodot
steps:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exports/
.bin/
/.bin/
snapshots/
!tests/snapshots

Expand Down
5 changes: 3 additions & 2 deletions godot/addons/dcl_build_plugin/build.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class_name DclBuildEditorPlugin
extends EditorPlugin

const GODOT_XR_TOOLS_PLUGIN_NAME = "Godot XR Tools"
const GODOT_XR_TOOLS_PLUGIN_NAME = "godot-xr-tools"

static func set_xr_mode(enabled: bool):
if EditorInterface.is_plugin_enabled(GODOT_XR_TOOLS_PLUGIN_NAME) != enabled:
Expand All @@ -18,13 +18,14 @@ class DclBuildPlugin extends EditorExportPlugin:
const include_only_android: PackedStringArray = ["res://addons/GodotAndroidPluginMagicLink/"]

func _export_begin(features, is_debug, path, flags):
prints("Start export, using XR is ", is_xr_export)

is_xr_export = features.has("xr")
is_android_export = features.has("android") and !is_xr_export

if is_xr_export:
DclBuildEditorPlugin.set_xr_mode(true)

prints("Start export, using XR is ", is_xr_export)

func _export_end():
if is_xr_export:
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit ec56b11

Please sign in to comment.