Skip to content

Commit b06917a

Browse files
authored
Fix incorrect class_name declaration in 2D physics tests demo (#1188)
1 parent 9db5266 commit b06917a

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

2d/physics_tests/tests/functional/test_character.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
class_name Test
2-
extends TestCharacter
1+
class_name TestCharacter
2+
extends Test
33

44
enum BodyType {
55
CHARACTER_BODY,

compute/post_shader/post_process_grayscale.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@tool
2-
extends CompositorEffect
32
class_name PostProcessGrayScale
3+
extends CompositorEffect
44

55
var rd: RenderingDevice
66
var shader: RID

compute/post_shader/post_process_shader.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@tool
2-
extends CompositorEffect
32
class_name PostProcessShader
3+
extends CompositorEffect
44

55
const template_shader := """#version 450
66

xr/openxr_hand_tracking_demo/pickup/pickup_able_body.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
extends RigidBody3D
21
class_name PickupAbleBody3D
3-
2+
extends RigidBody3D
43

54
var highlight_material : Material = preload("res://shaders/highlight_material.tres")
65
var picked_up_by : Area3D
@@ -9,6 +8,7 @@ var closest_areas : Array
98
var original_parent : Node3D
109
var tween : Tween
1110

11+
1212
# Called when this object becomes the closest body in an area
1313
func add_is_closest(area : Area3D) -> void:
1414
if not closest_areas.has(area):

xr/openxr_hand_tracking_demo/pickup/pickup_handler.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@tool
2-
extends Area3D
32
class_name PickupHandler3D
3+
extends Area3D
44

55
# This area3D class detects all physics bodys based on
66
# PickupAbleBody3D within range and handles the logic
@@ -24,6 +24,7 @@ var closest_body : PickupAbleBody3D
2424
var picked_up_body: PickupAbleBody3D
2525
var was_pickup_pressed : bool = false
2626

27+
2728
# Update our detection range.
2829
func _update_detect_range() -> void:
2930
var shape : SphereShape3D = $CollisionShape3D.shape

0 commit comments

Comments
 (0)