Undue some formatting changes that were in dispute.

This commit is contained in:
Christen Lofland 2024-04-10 16:31:51 -05:00
parent 3ef6a15741
commit 0a35055aa0
No known key found for this signature in database
2 changed files with 3 additions and 12 deletions

View File

@ -71,9 +71,7 @@ func _process(_delta):
# Make sure the gizmo is located at the object.
global_position = node_25d.global_position
if ROUGHLY_ROUND_TO_PIXELS:
spatial_node.transform.origin = (
(spatial_node.transform.origin * Node25D.SCALE).round() / Node25D.SCALE
)
spatial_node.transform.origin = (spatial_node.transform.origin * Node25D.SCALE).round() / Node25D.SCALE
# Move the gizmo lines appropriately.
lines_root.global_position = node_25d.global_position
node_25d.property_list_changed_notify()

View File

@ -17,15 +17,8 @@ func _enter_tree():
_make_visible(false)
# When this plugin node enters tree, add the custom types.
add_custom_type("Node25D", "Node2D", preload("node_25d.gd"), preload("icons/node_25d_icon.png"))
add_custom_type(
"YSort25D", "Node", preload("y_sort_25d.gd"), preload("icons/y_sort_25d_icon.png")
)
add_custom_type(
"ShadowMath25D",
"CharacterBody3D",
preload("shadow_math_25d.gd"),
preload("icons/shadow_math_25d_icon.png")
)
add_custom_type("YSort25D", "Node", preload("y_sort_25d.gd"), preload("icons/y_sort_25d_icon.png"))
add_custom_type("ShadowMath25D", "CharacterBody3D", preload("shadow_math_25d.gd"), preload("icons/shadow_math_25d_icon.png"))
func _exit_tree():