Browse Source

fix gdscript path parse error

sanikoyes 11 years ago
parent
commit
cde48d0c9c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/gdscript/gd_parser.cpp

+ 1 - 0
modules/gdscript/gd_parser.cpp

@@ -215,6 +215,7 @@ GDParser::Node* GDParser::_parse_expression(Node *p_parent,bool p_static,bool p_
 			String path = tokenizer->get_token_constant();
 			String path = tokenizer->get_token_constant();
 			if (!path.is_abs_path() && base_path!="")
 			if (!path.is_abs_path() && base_path!="")
 				path=base_path+"/"+path;
 				path=base_path+"/"+path;
+            path = path.replace("///","//");
 
 
 			Ref<Resource> res = ResourceLoader::load(path);
 			Ref<Resource> res = ResourceLoader::load(path);
 			if (!res.is_valid()) {
 			if (!res.is_valid()) {