diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-23 12:10:32 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-23 12:12:25 +0200 |
commit | 7f83977f37f5f13024bee4f29ead87a992a072b6 (patch) | |
tree | ed99e787e70e87949c32decfb923c8610c036a1e /core/io/resource_importer.cpp | |
parent | 515670351a5b8d13eef475df9d602e846f53884d (diff) |
Expose an ImportOrder enum in ResourceImporter
This avoids using magic numbers in code.
Diffstat (limited to 'core/io/resource_importer.cpp')
-rw-r--r-- | core/io/resource_importer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/io/resource_importer.cpp b/core/io/resource_importer.cpp index b503655edd..f612b84404 100644 --- a/core/io/resource_importer.cpp +++ b/core/io/resource_importer.cpp @@ -445,3 +445,8 @@ ResourceFormatImporter *ResourceFormatImporter::singleton = nullptr; ResourceFormatImporter::ResourceFormatImporter() { singleton = this; } + +void ResourceImporter::_bind_methods() { + BIND_ENUM_CONSTANT(IMPORT_ORDER_DEFAULT); + BIND_ENUM_CONSTANT(IMPORT_ORDER_SCENE); +} |