Browse Source

Merge pull request #23116 from Xrayez/fix-23106

Bind missing subresource flag in ResourceSaver
Rémi Verschelde 6 years ago
parent
commit
c1779b19a6
2 changed files with 2 additions and 0 deletions
  1. 1 0
      core/bind/core_bind.cpp
  2. 1 0
      core/bind/core_bind.h

+ 1 - 0
core/bind/core_bind.cpp

@@ -180,6 +180,7 @@ void _ResourceSaver::_bind_methods() {
 	BIND_ENUM_CONSTANT(FLAG_OMIT_EDITOR_PROPERTIES);
 	BIND_ENUM_CONSTANT(FLAG_SAVE_BIG_ENDIAN);
 	BIND_ENUM_CONSTANT(FLAG_COMPRESS);
+	BIND_ENUM_CONSTANT(FLAG_REPLACE_SUBRESOURCE_PATHS);
 }
 
 _ResourceSaver::_ResourceSaver() {

+ 1 - 0
core/bind/core_bind.h

@@ -80,6 +80,7 @@ public:
 		FLAG_OMIT_EDITOR_PROPERTIES = 8,
 		FLAG_SAVE_BIG_ENDIAN = 16,
 		FLAG_COMPRESS = 32,
+		FLAG_REPLACE_SUBRESOURCE_PATHS = 64,
 	};
 
 	static _ResourceSaver *get_singleton() { return singleton; }