Skip to content

Commit

Permalink
fix gdlint
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalN8m4r3 committed Mar 11, 2024
1 parent 15c55d8 commit 24a9e5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions addons/godot-xr-tools/objects/viewport_2d_in_3d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const DEFAULT_LAYER := 0b0000_0000_0101_0000_0000_0000_0000_0001
@export_group("Physics")

## ArrayMesh enabled property
@export var isArrayMesh : bool = false
@export var array_mesh : bool = false

## Physical screen size property
@export var screen_size : Vector2 = Vector2(3.0, 2.0): set = set_screen_size
Expand Down Expand Up @@ -127,7 +127,7 @@ func _ready():
$StaticBody3D.connect("pointer_event", _on_pointer_event)

# Apply physics properties
if !isArrayMesh:
if !array_mesh:
_update_screen_size()
_update_enabled()
_update_collision_layer()
Expand Down
6 changes: 3 additions & 3 deletions scenes/pointer_demo/objects/display.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[sub_resource type="ViewportTexture" id="ViewportTexture_kusv1"]
viewport_path = NodePath("Viewport")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0cmcb"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_smcu6"]
cull_mode = 2
shading_mode = 0
albedo_texture = SubResource("ViewportTexture_kusv1")
Expand All @@ -20,7 +20,7 @@ size = Vector3(3, 2, 0.02)

[node name="Display" type="Node3D"]
script = ExtResource("1_y8sny")
isArrayMesh = true
array_mesh = true
screen_size = Vector2(1, 1)
scene = ExtResource("2")
viewport_size = Vector2(280, 190)
Expand All @@ -39,7 +39,7 @@ render_target_update_mode = 1

[node name="Screen" type="MeshInstance3D" parent="."]
mesh = ExtResource("3_v34mr")
surface_material_override/0 = SubResource("StandardMaterial3D_0cmcb")
surface_material_override/0 = SubResource("StandardMaterial3D_smcu6")

[node name="StaticBody3D" type="StaticBody3D" parent="."]
collision_layer = 5242881
Expand Down

0 comments on commit 24a9e5f

Please sign in to comment.