summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2018-10-29 16:36:31 -0300
committerJuan Linietsky <juan@godotengine.org>2018-10-29 16:37:09 -0300
commite647342140d8eb960b2a72d83b4b86e43aef4fc7 (patch)
tree31c57d44ce2c76197114e85e1733ed5d080bd50a /scene
parent786ece2375c607e79c52b71ff82ebb1a3c1af411 (diff)
Moved folding outside the resource files, now saved outside the project.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp2
-rw-r--r--scene/main/node.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 50e94e6db5..9f234f832d 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1835,7 +1835,7 @@ void Node::set_editable_instance(Node *p_node, bool p_editable) {
}
}
-bool Node::is_editable_instance(Node *p_node) const {
+bool Node::is_editable_instance(const Node *p_node) const {
if (!p_node)
return false; //easier, null is never editable :)
diff --git a/scene/main/node.h b/scene/main/node.h
index a7baebc9c2..78db12dda9 100644
--- a/scene/main/node.h
+++ b/scene/main/node.h
@@ -303,7 +303,7 @@ public:
String get_filename() const;
void set_editable_instance(Node *p_node, bool p_editable);
- bool is_editable_instance(Node *p_node) const;
+ bool is_editable_instance(const Node *p_node) const;
void set_editable_instances(const HashMap<NodePath, int> &p_editable_instances);
HashMap<NodePath, int> get_editable_instances() const;