mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
-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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user