You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix typos with codespell
Using codespell 2.2-dev from current git.
This commit is contained in:
@@ -45,7 +45,7 @@ class SpriteFramesEditor : public HSplitContainer {
|
|||||||
|
|
||||||
enum {
|
enum {
|
||||||
PARAM_USE_CURRENT, // Used in callbacks to indicate `dominant_param` should be not updated.
|
PARAM_USE_CURRENT, // Used in callbacks to indicate `dominant_param` should be not updated.
|
||||||
PARAM_FRAME_COUNT, // Keep "Horizontal" & "Vertial" values.
|
PARAM_FRAME_COUNT, // Keep "Horizontal" & "Vertical" values.
|
||||||
PARAM_SIZE, // Keep "Size" values.
|
PARAM_SIZE, // Keep "Size" values.
|
||||||
};
|
};
|
||||||
int dominant_param = PARAM_FRAME_COUNT;
|
int dominant_param = PARAM_FRAME_COUNT;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
SKIP_LIST="./thirdparty,*.gen.*,*.po,*.pot,package-lock.json,./core/string/locales.h,./DONORS.md,./misc/scripts/codespell.sh"
|
SKIP_LIST="./thirdparty,*.gen.*,*.po,*.pot,package-lock.json,./core/string/locales.h,./DONORS.md,./misc/dist/linux/org.godotengine.Godot.desktop,./misc/scripts/codespell.sh"
|
||||||
IGNORE_LIST="ba,childs,curvelinear,doubleclick,expct,fave,findn,gird,inout,leapyear,lod,nd,numer,ois,readded,ro,statics,te,varn"
|
IGNORE_LIST="ba,childs,commiting,complies,curvelinear,doubleclick,expct,fave,findn,gird,inout,leapyear,lod,nd,numer,ois,readded,ro,statics,switchs,te,varius,varn"
|
||||||
|
|
||||||
codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}"
|
codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}"
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||||||
|
|
||||||
if (scr_B) {
|
if (scr_B) {
|
||||||
//if B is a script, the only valid condition is that A has an instance which inherits from the script
|
//if B is a script, the only valid condition is that A has an instance which inherits from the script
|
||||||
//in other situation, this shoul return false.
|
//in other situation, this should return false.
|
||||||
|
|
||||||
if (obj_A->get_script_instance() && obj_A->get_script_instance()->get_language() == GDScriptLanguage::get_singleton()) {
|
if (obj_A->get_script_instance() && obj_A->get_script_instance()->get_language() == GDScriptLanguage::get_singleton()) {
|
||||||
GDScript *cmp = static_cast<GDScript *>(obj_A->get_script_instance()->get_script().ptr());
|
GDScript *cmp = static_cast<GDScript *>(obj_A->get_script_instance()->get_script().ptr());
|
||||||
|
|||||||
@@ -3197,7 +3197,7 @@ void VisualScriptEditor::_graph_connected(const String &p_from, int p_from_slot,
|
|||||||
undo_redo->add_do_method(script.ptr(), "data_connect", func, p_from.to_int(), from_port, p_to.to_int(), to_port);
|
undo_redo->add_do_method(script.ptr(), "data_connect", func, p_from.to_int(), from_port, p_to.to_int(), to_port);
|
||||||
undo_redo->add_undo_method(script.ptr(), "data_disconnect", func, p_from.to_int(), from_port, p_to.to_int(), to_port);
|
undo_redo->add_undo_method(script.ptr(), "data_disconnect", func, p_from.to_int(), from_port, p_to.to_int(), to_port);
|
||||||
} else {
|
} else {
|
||||||
// this is noice
|
// this is nice
|
||||||
undo_redo->add_do_method(script.ptr(), "data_connect", func, p_from.to_int(), from_port, conv_node, 0);
|
undo_redo->add_do_method(script.ptr(), "data_connect", func, p_from.to_int(), from_port, conv_node, 0);
|
||||||
undo_redo->add_do_method(script.ptr(), "data_connect", func, conv_node, 0, p_to.to_int(), to_port);
|
undo_redo->add_do_method(script.ptr(), "data_connect", func, conv_node, 0, p_to.to_int(), to_port);
|
||||||
// I don't think this is needed but gonna leave it here for now... until I need to finalise it all
|
// I don't think this is needed but gonna leave it here for now... until I need to finalise it all
|
||||||
|
|||||||
@@ -2010,7 +2010,7 @@ void TextMesh::_create_mesh_array(Array &p_arr) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (p_size == 0) {
|
if (p_size == 0) {
|
||||||
// If empty, add single trinagle to suppress errors.
|
// If empty, add single triangle to suppress errors.
|
||||||
vertices.push_back(Vector3());
|
vertices.push_back(Vector3());
|
||||||
normals.push_back(Vector3());
|
normals.push_back(Vector3());
|
||||||
uvs.push_back(Vector2());
|
uvs.push_back(Vector2());
|
||||||
|
|||||||
Reference in New Issue
Block a user