You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Fix typo/spelling: "exisiting" -> "existing"
Specifically: "exisiting_script_removable" -> "existing_script_removable"
This commit is contained in:
@@ -2410,7 +2410,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
|
|||||||
menu->clear();
|
menu->clear();
|
||||||
|
|
||||||
Ref<Script> existing_script;
|
Ref<Script> existing_script;
|
||||||
bool exisiting_script_removable = true;
|
bool existing_script_removable = true;
|
||||||
if (selection.size() == 1) {
|
if (selection.size() == 1) {
|
||||||
|
|
||||||
Node *selected = selection[0];
|
Node *selected = selection[0];
|
||||||
@@ -2432,7 +2432,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
|
|||||||
existing_script = selected->get_script();
|
existing_script = selected->get_script();
|
||||||
|
|
||||||
if (EditorNode::get_singleton()->get_object_custom_type_base(selected) == existing_script) {
|
if (EditorNode::get_singleton()->get_object_custom_type_base(selected) == existing_script) {
|
||||||
exisiting_script_removable = false;
|
existing_script_removable = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2446,7 +2446,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
|
|||||||
menu->add_icon_shortcut(get_icon("ScriptExtend", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/extend_script"), TOOL_EXTEND_SCRIPT);
|
menu->add_icon_shortcut(get_icon("ScriptExtend", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/extend_script"), TOOL_EXTEND_SCRIPT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (existing_script.is_valid() && exisiting_script_removable) {
|
if (existing_script.is_valid() && existing_script_removable) {
|
||||||
add_separator = true;
|
add_separator = true;
|
||||||
menu->add_icon_shortcut(get_icon("ScriptRemove", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/clear_script"), TOOL_CLEAR_SCRIPT);
|
menu->add_icon_shortcut(get_icon("ScriptRemove", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/clear_script"), TOOL_CLEAR_SCRIPT);
|
||||||
} else if (full_selection.size() > 1) {
|
} else if (full_selection.size() > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user