From 2bbedd35ddfa0eb4872003383c5ea91b887427ac Mon Sep 17 00:00:00 2001 From: Geequlim Date: Tue, 31 May 2016 15:06:24 +0800 Subject: Expose ResourceImportMetadata::set_source_md5 for script --- core/resource.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/resource.cpp b/core/resource.cpp index b7a5bad4b8..97dee3e1d7 100644 --- a/core/resource.cpp +++ b/core/resource.cpp @@ -133,6 +133,7 @@ void ResourceImportMetadata::_bind_methods() { ObjectTypeDB::bind_method(_MD("add_source","path","md5"),&ResourceImportMetadata::add_source, ""); ObjectTypeDB::bind_method(_MD("get_source_path","idx"),&ResourceImportMetadata::get_source_path); ObjectTypeDB::bind_method(_MD("get_source_md5","idx"),&ResourceImportMetadata::get_source_md5); + ObjectTypeDB::bind_method(_MD("set_source_md5","idx", "md5"),&ResourceImportMetadata::set_source_md5); ObjectTypeDB::bind_method(_MD("remove_source","idx"),&ResourceImportMetadata::remove_source); ObjectTypeDB::bind_method(_MD("get_source_count"),&ResourceImportMetadata::get_source_count); ObjectTypeDB::bind_method(_MD("set_option","key","value"),&ResourceImportMetadata::set_option); -- cgit v1.2.3