diff options
author | volzhs <volzhs@gmail.com> | 2015-06-28 22:28:02 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2015-06-28 22:28:02 +0900 |
commit | 584dd4db878d0a9ebf44dc529dad35bf8dd4796b (patch) | |
tree | c601222ba20cacc80fba7ff43b5de425db13519c /core/resource.cpp | |
parent | 81a1f32f0c1e4f64bb102c6aa46bcbb4e18bcd55 (diff) | |
parent | 2b64f73b0459190d20b2f6de39275ee7979317c4 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
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 6e65693350..6967599f96 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; } |