From 0a35055aa0b18fd80eafa95582bae522955e05ed Mon Sep 17 00:00:00 2001 From: Christen Lofland Date: Wed, 10 Apr 2024 16:31:51 -0500 Subject: [PATCH] Undue some formatting changes that were in dispute. --- misc/2.5d/addons/node25d/main_screen/gizmo_25d.gd | 4 +--- misc/2.5d/addons/node25d/node25d_plugin.gd | 11 ++--------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/misc/2.5d/addons/node25d/main_screen/gizmo_25d.gd b/misc/2.5d/addons/node25d/main_screen/gizmo_25d.gd index 5c5a2380..e7d83ad8 100644 --- a/misc/2.5d/addons/node25d/main_screen/gizmo_25d.gd +++ b/misc/2.5d/addons/node25d/main_screen/gizmo_25d.gd @@ -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() diff --git a/misc/2.5d/addons/node25d/node25d_plugin.gd b/misc/2.5d/addons/node25d/node25d_plugin.gd index e5c8ee6e..8ef8892e 100644 --- a/misc/2.5d/addons/node25d/node25d_plugin.gd +++ b/misc/2.5d/addons/node25d/node25d_plugin.gd @@ -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():