You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Rename instance()->instantiate() when it's a verb
This commit is contained in:
@@ -308,7 +308,7 @@ void AnimationNodeBlendSpace2DEditor::_add_menu_type(int p_index) {
|
||||
} else {
|
||||
String type = menu->get_item_metadata(p_index);
|
||||
|
||||
Object *obj = ClassDB::instance(type);
|
||||
Object *obj = ClassDB::instantiate(type);
|
||||
ERR_FAIL_COND(!obj);
|
||||
AnimationNode *an = Object::cast_to<AnimationNode>(obj);
|
||||
ERR_FAIL_COND(!an);
|
||||
@@ -335,7 +335,7 @@ void AnimationNodeBlendSpace2DEditor::_add_menu_type(int p_index) {
|
||||
|
||||
void AnimationNodeBlendSpace2DEditor::_add_animation_type(int p_index) {
|
||||
Ref<AnimationNodeAnimation> anim;
|
||||
anim.instance();
|
||||
anim.instantiate();
|
||||
|
||||
anim->set_animation(animations_to_add[p_index]);
|
||||
|
||||
@@ -818,7 +818,7 @@ AnimationNodeBlendSpace2DEditor::AnimationNodeBlendSpace2DEditor() {
|
||||
add_child(top_hb);
|
||||
|
||||
Ref<ButtonGroup> bg;
|
||||
bg.instance();
|
||||
bg.instantiate();
|
||||
|
||||
tool_blend = memnew(Button);
|
||||
tool_blend->set_flat(true);
|
||||
|
||||
Reference in New Issue
Block a user