summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Haas <Hinsbart@users.noreply.github.com>2017-04-14 03:14:01 +0200
committerGitHub <noreply@github.com>2017-04-14 03:14:01 +0200
commita96e795241aaa512e11b1c2085db2c955200ad40 (patch)
treeaca816b1c82623d79cea6fe3cab5163af75ff923
parent34a85477225b6cb2e4165307acca2d83b445000e (diff)
parent30835f9d371c1b05d3be055b0c6780f0745530a3 (diff)
downloadredot-engine-a96e795241aaa512e11b1c2085db2c955200ad40.tar.gz
Merge pull request #8402 from neikeq/pr-fix-binds
PackedScene: Fix wrong DEFVAL
-rw-r--r--scene/resources/packed_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp
index 7738157330..50fbb6a162 100644
--- a/scene/resources/packed_scene.cpp
+++ b/scene/resources/packed_scene.cpp
@@ -1775,7 +1775,7 @@ void PackedScene::set_path(const String &p_path, bool p_take_over) {
void PackedScene::_bind_methods() {
ClassDB::bind_method(D_METHOD("pack", "path:Node"), &PackedScene::pack);
- ClassDB::bind_method(D_METHOD("instance:Node", "edit_state"), &PackedScene::instance, DEFVAL(false));
+ ClassDB::bind_method(D_METHOD("instance:Node", "edit_state"), &PackedScene::instance, DEFVAL(GEN_EDIT_STATE_DISABLED));
ClassDB::bind_method(D_METHOD("can_instance"), &PackedScene::can_instance);
ClassDB::bind_method(D_METHOD("_set_bundled_scene"), &PackedScene::_set_bundled_scene);
ClassDB::bind_method(D_METHOD("_get_bundled_scene"), &PackedScene::_get_bundled_scene);