diff options
| author | Juan Linietsky | 2015-06-22 00:03:19 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-06-22 00:04:15 -0300 |
| commit | e9bbb97acccc08ae03fde41e4cc6d2dc6722021a (patch) | |
| tree | 008459da8cb1c9343919e67482700e5704e0d1e6 /core/resource.cpp | |
| parent | 37af8b413674936518a2ebe180f9e7bfcd5795bb (diff) | |
| download | godot-e9bbb97acccc08ae03fde41e4cc6d2dc6722021a.tar.gz godot-e9bbb97acccc08ae03fde41e4cc6d2dc6722021a.tar.zst godot-e9bbb97acccc08ae03fde41e4cc6d2dc6722021a.zip | |
Diffstat (limited to 'core/resource.cpp')
| -rw-r--r-- | core/resource.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/resource.cpp b/core/resource.cpp index 6e6569335..6967599f9 100644 --- a/core/resource.cpp +++ b/core/resource.cpp @@ -195,6 +195,17 @@ String Resource::get_path() const { return path_cache; } +void Resource::set_subindex(int p_sub_index) { + + subindex=p_sub_index; +} + +int Resource::get_subindex() const{ + + return subindex; +} + + void Resource::set_name(const String& p_name) { name=p_name; @@ -326,6 +337,7 @@ Resource::Resource() { last_modified_time=0; #endif + subindex=0; } |
