From 6406cd4708aeec04c23ffdf098e3319a404e7ed9 Mon Sep 17 00:00:00 2001 From: Raffaele Picca Date: Thu, 18 Feb 2021 20:31:25 +0100 Subject: Initial Commit --- src/addons/rmsmartshape/LEGACY_vertex_properties.gd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/addons/rmsmartshape/LEGACY_vertex_properties.gd (limited to 'src/addons/rmsmartshape/LEGACY_vertex_properties.gd') diff --git a/src/addons/rmsmartshape/LEGACY_vertex_properties.gd b/src/addons/rmsmartshape/LEGACY_vertex_properties.gd new file mode 100644 index 0000000..6fd91a2 --- /dev/null +++ b/src/addons/rmsmartshape/LEGACY_vertex_properties.gd @@ -0,0 +1,17 @@ +extends Reference +class_name RMS2D_VertexProperties + +var texture_idx:int = 0 +var flip:bool = false +var width:float = 1.0 + +func duplicate()->RMS2D_VertexProperties: + var _new = __new() + _new.texture_idx = texture_idx + _new.flip = flip + _new.width = width + return _new + +# Workaround (class cannot reference itself) +func __new()->RMS2D_VertexProperties: + return get_script().new() -- cgit v1.2.3