feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -42,10 +42,8 @@ bool AnimationLibrary::is_valid_library_name(const String &p_name) {
|
|||
|
||||
String AnimationLibrary::validate_library_name(const String &p_name) {
|
||||
String name = p_name;
|
||||
const char *characters = "/:,[";
|
||||
for (const char *p = characters; *p; p++) {
|
||||
name = name.replace(String::chr(*p), "_");
|
||||
}
|
||||
static const char *characters = "/:,[";
|
||||
name.replace_chars(characters, '_');
|
||||
return name;
|
||||
}
|
||||
|
||||
|
|
@ -134,10 +132,8 @@ void AnimationLibrary::_set_data(const Dictionary &p_data) {
|
|||
K.value->disconnect_changed(callable_mp(this, &AnimationLibrary::_animation_changed));
|
||||
}
|
||||
animations.clear();
|
||||
List<Variant> keys;
|
||||
p_data.get_key_list(&keys);
|
||||
for (const Variant &K : keys) {
|
||||
add_animation(K, p_data[K]);
|
||||
for (const KeyValue<Variant, Variant> &kv : p_data) {
|
||||
add_animation(kv.key, kv.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue