11 lines
365 B
GDScript
11 lines
365 B
GDScript
extends "res://addons/rmsmartshape/actions/action_add_point.gd"
|
|
|
|
## ActionSplitCurve
|
|
|
|
func _init(shape: SS2D_Shape, idx: int, gpoint: Vector2, xform: Transform2D, commit_update: bool = true) -> void:
|
|
super._init(shape, xform.affine_inverse() * gpoint, idx, commit_update)
|
|
|
|
|
|
func get_name() -> String:
|
|
return "Split Curve at (%d, %d)" % [_position.x, _position.y]
|