1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

-ability to change scripts in external editor and still have properties reloaded in godot UI, fixes #3003

This commit is contained in:
Juan Linietsky
2015-12-09 09:08:41 -03:00
parent 708ff381d6
commit 6bc6b8fcf2
7 changed files with 119 additions and 21 deletions

View File

@@ -853,6 +853,8 @@ String ResourceInteractiveLoaderBinary::get_unicode_string() {
if (len>str_buf.size()) {
str_buf.resize(len);
}
if (len==0)
return String();
f->get_buffer((uint8_t*)&str_buf[0],len);
String s;
s.parse_utf8(&str_buf[0]);