From fc664b94f8218e8b42c55c019f6e75b37a2201ec Mon Sep 17 00:00:00 2001 From: Malcolm Nixon Date: Thu, 25 Jul 2024 21:47:27 -0400 Subject: [PATCH] Add XRToolsViewport2DIn3D script name. (#661) --- addons/godot-xr-tools/objects/viewport_2d_in_3d.gd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd b/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd index ccc2118d..638bc1ee 100644 --- a/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd +++ b/addons/godot-xr-tools/objects/viewport_2d_in_3d.gd @@ -1,4 +1,5 @@ @tool +class_name XRToolsViewport2DIn3D extends Node3D @@ -121,6 +122,11 @@ var _screen_material : StandardMaterial3D var _dirty := _DIRTY_ALL +# Add support for is_xr_class on XRTools classes +func is_xr_class(p_name : String) -> bool: + return p_name == "XRToolsViewport2DIn3D" + + # Called when the node enters the scene tree for the first time. func _ready(): is_ready = true