Эх сурвалжийг харах

Undue some formatting changes that were in dispute.

Christen Lofland 1 жил өмнө
parent
commit
0a35055aa0

+ 1 - 3
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()

+ 2 - 9
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():