Skip to content

Commit

Permalink
Update Matrix Transform demo to Godot 4.1 (godotengine#978)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
  • Loading branch information
Alex2782 and Calinou authored Oct 18, 2023
1 parent 647002a commit e2abd0e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
4 changes: 3 additions & 1 deletion misc/matrix_transform/marker/AxisMarker2D.gd
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@tool
class_name AxisMarker2D, "res://marker/AxisMarker2D.svg"
@icon("res://marker/AxisMarker2D.svg")
class_name AxisMarker2D
extends Node2D


func _process(_delta):
var line: Line2D = get_child(0).get_child(0)
var marker_parent = get_parent()
Expand Down
2 changes: 1 addition & 1 deletion misc/matrix_transform/marker/AxisMarker2D.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/AxisMarker2D.svg-a52a23070c2ca9dcdd860a47183c
[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
Expand Down
4 changes: 2 additions & 2 deletions misc/matrix_transform/marker/AxisMarker3D.gd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@tool
extends Node3D
class_name AxisMarker3D
@icon("res://marker/AxisMarker3D.svg")
class_name AxisMarker3D
extends Node3D


func _process(_delta):
Expand Down
2 changes: 1 addition & 1 deletion misc/matrix_transform/marker/AxisMarker3D.svg.import
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ dest_files=["res://.godot/imported/AxisMarker3D.svg-613a31ba426aca266949d2735333
[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
Expand Down
14 changes: 2 additions & 12 deletions misc/matrix_transform/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@

config_version=5

_global_script_classes=[{
"base": "Node3D",
"class": &"AxisMarker3D",
"language": &"GDScript",
"path": "res://marker/AxisMarker3D.gd"
}]
_global_script_class_icons={
"AxisMarker3D": "res://marker/AxisMarker3D.svg"
}

[application]

config/name="Matrix Transform3D"
Expand All @@ -26,10 +16,10 @@ config/description="This demo project is a playground where you can visualize ho
Do not 'run' this project. You are only meant to use it within the Godot editor.
For more information, see the Matrices and Transforms article."
config/tags=PackedStringArray("3d", "demo", "editor", "official")
run/main_scene="res://3D.tscn"
config/features=PackedStringArray("4.0")
config/features=PackedStringArray("4.1")
config/icon="res://icon.webp"
config/tags=PackedStringArray("3d", "demo", "editor", "official")

[rendering]

Expand Down

0 comments on commit e2abd0e

Please sign in to comment.