Rename instance()->instantiate() when it's a verb
This commit is contained in:
@@ -65,7 +65,7 @@ EditorDebuggerNode::EditorDebuggerNode() {
|
||||
add_child(tabs);
|
||||
|
||||
Ref<StyleBoxEmpty> empty;
|
||||
empty.instance();
|
||||
empty.instantiate();
|
||||
tabs->add_theme_style_override("panel", empty);
|
||||
|
||||
auto_switch_remote_scene_tree = EDITOR_DEF("debugger/auto_switch_to_remote_scene_tree", false);
|
||||
|
||||
@@ -60,7 +60,7 @@ EditorDebuggerServer *EditorDebuggerServerTCP::create(const String &p_protocol)
|
||||
}
|
||||
|
||||
EditorDebuggerServerTCP::EditorDebuggerServerTCP() {
|
||||
server.instance();
|
||||
server.instantiate();
|
||||
}
|
||||
|
||||
Error EditorDebuggerServerTCP::start() {
|
||||
|
||||
@@ -305,12 +305,12 @@ void EditorProfiler::_update_plot() {
|
||||
}
|
||||
|
||||
Ref<Image> img;
|
||||
img.instance();
|
||||
img.instantiate();
|
||||
img->create(w, h, false, Image::FORMAT_RGBA8, graph_image);
|
||||
|
||||
if (reset_texture) {
|
||||
if (graph_texture.is_null()) {
|
||||
graph_texture.instance();
|
||||
graph_texture.instantiate();
|
||||
}
|
||||
graph_texture->create_from_image(img);
|
||||
}
|
||||
|
||||
@@ -299,12 +299,12 @@ void EditorVisualProfiler::_update_plot() {
|
||||
}
|
||||
|
||||
Ref<Image> img;
|
||||
img.instance();
|
||||
img.instantiate();
|
||||
img->create(w, h, false, Image::FORMAT_RGBA8, graph_image);
|
||||
|
||||
if (reset_texture) {
|
||||
if (graph_texture.is_null()) {
|
||||
graph_texture.instance();
|
||||
graph_texture.instantiate();
|
||||
}
|
||||
graph_texture->create_from_image(img);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user