diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-07-19 21:26:12 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-07-19 21:26:12 -0300 |
commit | 0988970c1fca780f51ba4f2dce6afebdfef7f292 (patch) | |
tree | 60d17bcf2424784f14c8a5f603d828c3053636cb /core | |
parent | 9de33e18f14f78165754e97ed0f7827b2e50d560 (diff) |
Fixed properly not save signals that already exist in their base scenes, closes #5656
Diffstat (limited to 'core')
-rw-r--r-- | core/path_db.cpp | 6 | ||||
-rw-r--r-- | core/path_db.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/path_db.cpp b/core/path_db.cpp index 0956c4cd3f..d0feda5c82 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 63adb42955..3a550fe1d0 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; |