From 7f83977f37f5f13024bee4f29ead87a992a072b6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 23 Jul 2021 12:10:32 +0200 Subject: Expose an ImportOrder enum in ResourceImporter This avoids using magic numbers in code. --- core/io/resource_importer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/io/resource_importer.cpp') 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); +} -- cgit v1.2.3