summaryrefslogtreecommitdiff
path: root/editor/scene_tree_dock.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-27 10:08:26 +0200
committerGitHub <noreply@github.com>2022-04-27 10:08:26 +0200
commit8dfa12cae729258155fbad51ed41f1bb3ad1006a (patch)
tree15a556638bbff71f35e8b42879ccd6570e1f64fb /editor/scene_tree_dock.cpp
parentf8cfff2aa6adcb2665f237d487611f8b2a63099f (diff)
parentde4c97758af117af97fad58e4a80ffeba0154ba8 (diff)
Merge pull request #59979 from bruvzg/cpp_check2
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r--editor/scene_tree_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index c63471720b..3e8eb6b4ee 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -2999,7 +2999,7 @@ void SceneTreeDock::attach_shader_to_selected(int p_preferred_mode) {
shader_create_dialog->popup_centered();
}
-void SceneTreeDock::open_shader_dialog(Ref<ShaderMaterial> &p_for_material, int p_preferred_mode) {
+void SceneTreeDock::open_shader_dialog(const Ref<ShaderMaterial> &p_for_material, int p_preferred_mode) {
selected_shader_material = p_for_material;
attach_shader_to_selected(p_preferred_mode);
}