aboutsummaryrefslogtreecommitdiff
path: root/src/addons/rmsmartshape/LEGACY_vertex_properties.gd
diff options
context:
space:
mode:
authorRaffaele Picca <picster@pixelgod.net>2021-02-18 20:31:25 +0100
committerRaffaele Picca <picster@pixelgod.net>2021-02-18 20:31:25 +0100
commit6406cd4708aeec04c23ffdf098e3319a404e7ed9 (patch)
tree8faedb9b3f733cc6ee901407e3ac4d4ed8ae6012 /src/addons/rmsmartshape/LEGACY_vertex_properties.gd
parentc9b3470e43aed98e2a93a332cfc92c3b9ca05163 (diff)
Initial Commit
Diffstat (limited to 'src/addons/rmsmartshape/LEGACY_vertex_properties.gd')
-rw-r--r--src/addons/rmsmartshape/LEGACY_vertex_properties.gd17
1 files changed, 17 insertions, 0 deletions
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()