summaryrefslogtreecommitdiff
path: root/core/resource.cpp
diff options
context:
space:
mode:
authorJames McLean <jrimclean@gmail.com>2015-06-22 00:33:52 -0400
committerJames McLean <jrimclean@gmail.com>2015-06-22 00:33:52 -0400
commit8edf4a56f1055c1c08ee3d485e0b857dbac5dc93 (patch)
tree1f6f63534ff8ac60ba6e49a79a70de783149c23f /core/resource.cpp
parent4e3ec18f7e0794900974f70de4e293838d48c9fe (diff)
parente9bbb97acccc08ae03fde41e4cc6d2dc6722021a (diff)
Merge branch 'master' of github.com:okamstudio/godot into development
Diffstat (limited to 'core/resource.cpp')
-rw-r--r--core/resource.cpp12
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;
}