summaryrefslogtreecommitdiffstats
path: root/include/core/NodePath.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/NodePath.hpp')
-rw-r--r--include/core/NodePath.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/NodePath.hpp b/include/core/NodePath.hpp
index 221c5ce..36dda7d 100644
--- a/include/core/NodePath.hpp
+++ b/include/core/NodePath.hpp
@@ -10,6 +10,11 @@ namespace godot {
class NodePath {
godot_node_path _node_path;
+ friend class Variant;
+ inline explicit NodePath(godot_node_path node_path) {
+ _node_path = node_path;
+ }
+
public:
NodePath();