From 0988970c1fca780f51ba4f2dce6afebdfef7f292 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 19 Jul 2016 21:26:12 -0300 Subject: Fixed properly not save signals that already exist in their base scenes, closes #5656 --- core/path_db.cpp | 6 ++++++ core/path_db.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'core') diff --git a/core/path_db.cpp b/core/path_db.cpp index 0956c4cd3..d0feda5c8 100644 --- a/core/path_db.cpp +++ b/core/path_db.cpp @@ -53,6 +53,12 @@ uint32_t NodePath::hash() const { } +void NodePath::prepend_period() { + + if (data->path.size() && data->path[0].operator String()!=".") { + data->path.insert(0,"."); + } +} bool NodePath::is_absolute() const { diff --git a/core/path_db.h b/core/path_db.h index 63adb4295..3a550fe1d 100644 --- a/core/path_db.h +++ b/core/path_db.h @@ -72,6 +72,8 @@ public: NodePath rel_path_to(const NodePath& p_np) const; + void prepend_period(); + StringName get_property() const; NodePath get_parent() const; -- cgit v1.2.3-70-g09d2