summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/godot/godot_node_path.cpp
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-05-20 15:52:56 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-06-08 07:21:53 +0200
commit8ecdbfc417409c9c8080580f3963e2397f8bdb78 (patch)
treee18f5e3bf44de3db54c765b514a05e10828b431e /modules/gdnative/godot/godot_node_path.cpp
parentb21e68c8bc0168120ded326259d021d394a9d7bf (diff)
downloadredot-engine-8ecdbfc417409c9c8080580f3963e2397f8bdb78.tar.gz
[GDnative] API consistency + missing properties
Diffstat (limited to 'modules/gdnative/godot/godot_node_path.cpp')
-rw-r--r--modules/gdnative/godot/godot_node_path.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdnative/godot/godot_node_path.cpp b/modules/gdnative/godot/godot_node_path.cpp
index 165688a340..c8eacd05af 100644
--- a/modules/gdnative/godot/godot_node_path.cpp
+++ b/modules/gdnative/godot/godot_node_path.cpp
@@ -44,6 +44,12 @@ void GDAPI godot_node_path_new(godot_node_path *r_dest, const godot_string *p_fr
memnew_placement(dest, NodePath(*from));
}
+void GDAPI godot_node_path_new_copy(godot_node_path *r_dest, const godot_node_path *p_src) {
+ NodePath *dest = (NodePath *)r_dest;
+ const NodePath *src = (const NodePath *)p_src;
+ memnew_placement(dest, NodePath(*src));
+}
+
void GDAPI godot_node_path_destroy(godot_node_path *p_self) {
NodePath *self = (NodePath *)p_self;
self->~NodePath();