-Rasterizer supports meshes with both skeletons and blend shapes

-Collada exporter supports Blend Shapes (even on actions via set driven keys)
This commit is contained in:
Juan Linietsky
2014-10-09 19:44:27 -03:00
parent 9142d6fc40
commit 01ffe6cf89
10 changed files with 406 additions and 100 deletions

View File

@@ -555,6 +555,42 @@ String String::get_slice(String p_splitter, int p_slice) const {
}
Vector<String> String::split_spaces() const {
Vector<String> ret;
int from=0;
int i=0;
int len = length();
bool inside=false;
while(true) {
bool empty=operator[](i)<33;
if (i==0)
inside=!empty;
if (!empty && !inside) {
inside=true;
from=i;
}
if (empty && inside) {
ret.push_back(substr(from,i-from));
inside=false;
}
if (i==len)
break;
i++;
}
return ret;
}
Vector<String> String::split(const String &p_splitter,bool p_allow_empty) const {
Vector<String> ret;