@@ -45,7 +45,6 @@ var _vertex_cache := PackedVector2Array()
45
45
var _curve := Curve2D .new ()
46
46
var _curve_no_control_points := Curve2D .new ()
47
47
var _tesselation_cache := PackedVector2Array ()
48
- var _tesselation_distinct_cache := PackedVector2Array ()
49
48
var _tess_vertex_mapping := SS2D_TesselationVertexMapping .new ()
50
49
51
50
## Gets called when points were modified.
@@ -608,22 +607,6 @@ func get_tessellated_points() -> PackedVector2Array:
608
607
return _tesselation_cache
609
608
610
609
611
- ## Returns a PackedVector2Array with all distinct points
612
- func get_tessellated_distinct_points () -> PackedVector2Array :
613
- _tesselation_distinct_cache = []
614
-
615
- _update_cache ()
616
-
617
- ## Force update if first use of distinct cache
618
- var _tesselation_cache_size : int = _tesselation_cache .size ()
619
- var _tesselation_distinct_cache_size : int = _tesselation_distinct_cache .size ()
620
-
621
- if _tesselation_distinct_cache_size - 1 < _tesselation_cache_size :
622
- _tesselation_distinct_cache = _tesselation_cache .slice (0 , _tesselation_cache_size - 1 )
623
-
624
- return _tesselation_distinct_cache
625
-
626
-
627
610
func set_tessellation_stages (value : int ) -> void :
628
611
tessellation_stages = value
629
612
_changed ()
@@ -678,9 +661,7 @@ func _update_cache() -> void:
678
661
if _tesselation_cache .size () >= 2 :
679
662
_tesselation_cache [0 ] = _curve .get_point_position (0 )
680
663
_tesselation_cache [- 1 ] = _curve .get_point_position (_curve .get_point_count () - 1 )
681
-
682
- _tesselation_distinct_cache = _tesselation_cache .slice (0 , _tesselation_cache .size () - 1 )
683
-
664
+
684
665
_tess_vertex_mapping .build (_tesselation_cache , _vertex_cache )
685
666
686
667
_point_cache_dirty = false
0 commit comments