mirror of https://github.com/godotengine/godot
Fix typos with codespell
Using codespell 2.2-dev from current git. Added `misc/scripts/codespell.sh` to make it easier to run it once in a while and update the skip and ignore lists.
This commit is contained in:
parent
f21a62b620
commit
1bdb82c64e
|
|
@ -1030,7 +1030,7 @@ static void _encode_string(const String &p_string, uint8_t *&buf, int &r_len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bool p_full_objects, int p_depth) {
|
Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bool p_full_objects, int p_depth) {
|
||||||
ERR_FAIL_COND_V_MSG(p_depth > Variant::MAX_RECURSION_DEPTH, ERR_OUT_OF_MEMORY, "Potential inifite recursion detected. Bailing.");
|
ERR_FAIL_COND_V_MSG(p_depth > Variant::MAX_RECURSION_DEPTH, ERR_OUT_OF_MEMORY, "Potential infinite recursion detected. Bailing.");
|
||||||
uint8_t *buf = r_buffer;
|
uint8_t *buf = r_buffer;
|
||||||
|
|
||||||
r_len = 0;
|
r_len = 0;
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ StringName _scs_create(const char *p_chr, bool p_static = false);
|
||||||
* - Control::get_theme_*(<name> and Window::get_theme_*(<name> functions.
|
* - Control::get_theme_*(<name> and Window::get_theme_*(<name> functions.
|
||||||
* - emit_signal(<name>,..) function
|
* - emit_signal(<name>,..) function
|
||||||
* - call_deferred(<name>,..) function
|
* - call_deferred(<name>,..) function
|
||||||
* - Comparisons to a StringName in overriden _set and _get methods.
|
* - Comparisons to a StringName in overridden _set and _get methods.
|
||||||
*
|
*
|
||||||
* Use in places that can be called hundreds of times per frame (or more) is recommended, but this situation is very rare. If in doubt, do not use.
|
* Use in places that can be called hundreds of times per frame (or more) is recommended, but this situation is very rare. If in doubt, do not use.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
<argument index="0" name="name" type="StringName" />
|
<argument index="0" name="name" type="StringName" />
|
||||||
<argument index="1" name="profiler" type="EngineProfiler" />
|
<argument index="1" name="profiler" type="EngineProfiler" />
|
||||||
<description>
|
<description>
|
||||||
Registers a profiler with the given [code]name[/code]. See [EngineProfiler] for more informations.
|
Registers a profiler with the given [code]name[/code]. See [EngineProfiler] for more information.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="send_message">
|
<method name="send_message">
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
This class can be used to implement custom profilers that are able to interact with the engine and editor debugger.
|
This class can be used to implement custom profilers that are able to interact with the engine and editor debugger.
|
||||||
See [EngineDebugger] and [EditorDebuggerPlugin] for more informations.
|
See [EngineDebugger] and [EditorDebuggerPlugin] for more information.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
<argument index="2" name="physics_time" type="float" />
|
<argument index="2" name="physics_time" type="float" />
|
||||||
<argument index="3" name="physics_frame_time" type="float" />
|
<argument index="3" name="physics_frame_time" type="float" />
|
||||||
<description>
|
<description>
|
||||||
Called once every engine iteration when the profiler is active with informations about the current frame.
|
Called once every engine iteration when the profiler is active with information about the current frame.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_toggle" qualifiers="virtual">
|
<method name="_toggle" qualifiers="virtual">
|
||||||
|
|
|
||||||
|
|
@ -577,7 +577,7 @@
|
||||||
Font style flags, see [enum TextServer.FontStyle].
|
Font style flags, see [enum TextServer.FontStyle].
|
||||||
</member>
|
</member>
|
||||||
<member name="force_autohinter" type="bool" setter="set_force_autohinter" getter="is_force_autohinter" default="false">
|
<member name="force_autohinter" type="bool" setter="set_force_autohinter" getter="is_force_autohinter" default="false">
|
||||||
If set to [code]true[/code], auto-hinting is supported and preffered over font built-in hinting. Used by dynamic fonts only.
|
If set to [code]true[/code], auto-hinting is supported and preferred over font built-in hinting. Used by dynamic fonts only.
|
||||||
</member>
|
</member>
|
||||||
<member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="TextServer.Hinting" default="1">
|
<member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="TextServer.Hinting" default="1">
|
||||||
Font hinting mode. Used by dynamic fonts only.
|
Font hinting mode. Used by dynamic fonts only.
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
Particle starts with specified color.
|
Particle starts with specified color.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="EMIT_FLAG_CUSTOM" value="16" enum="EmitFlags">
|
<constant name="EMIT_FLAG_CUSTOM" value="16" enum="EmitFlags">
|
||||||
Particle starts with specificed [code]CUSTOM[/code] data.
|
Particle starts with specified [code]CUSTOM[/code] data.
|
||||||
</constant>
|
</constant>
|
||||||
</constants>
|
</constants>
|
||||||
</class>
|
</class>
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
Particle starts with specified color.
|
Particle starts with specified color.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="EMIT_FLAG_CUSTOM" value="16" enum="EmitFlags">
|
<constant name="EMIT_FLAG_CUSTOM" value="16" enum="EmitFlags">
|
||||||
Particle starts with specificed [code]CUSTOM[/code] data.
|
Particle starts with specified [code]CUSTOM[/code] data.
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="MAX_DRAW_PASSES" value="4">
|
<constant name="MAX_DRAW_PASSES" value="4">
|
||||||
Maximum number of draw passes supported.
|
Maximum number of draw passes supported.
|
||||||
|
|
|
||||||
|
|
@ -557,7 +557,7 @@
|
||||||
<argument index="0" name="font_rid" type="RID" />
|
<argument index="0" name="font_rid" type="RID" />
|
||||||
<argument index="1" name="force_autohinter" type="bool" />
|
<argument index="1" name="force_autohinter" type="bool" />
|
||||||
<description>
|
<description>
|
||||||
If set to [code]true[/code] auto-hinting is preffered over font built-in hinting.
|
If set to [code]true[/code] auto-hinting is preferred over font built-in hinting.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_font_set_global_oversampling" qualifiers="virtual">
|
<method name="_font_set_global_oversampling" qualifiers="virtual">
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@
|
||||||
<return type="String" />
|
<return type="String" />
|
||||||
<argument index="0" name="locale" type="String" />
|
<argument index="0" name="locale" type="String" />
|
||||||
<description>
|
<description>
|
||||||
Retunrs [code]locale[/code] string standardized to match known locales (e.g. [code]en-US[/code] would be matched to [code]en_US[/code]).
|
Returns [code]locale[/code] string standardized to match known locales (e.g. [code]en-US[/code] would be matched to [code]en_US[/code]).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="translate" qualifiers="const">
|
<method name="translate" qualifiers="const">
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<method name="get_mouse_position" qualifiers="const">
|
<method name="get_mouse_position" qualifiers="const">
|
||||||
<return type="Vector2" />
|
<return type="Vector2" />
|
||||||
<description>
|
<description>
|
||||||
Returns the mouse's positon in this [Viewport] using the coordinate system of this [Viewport].
|
Returns the mouse's position in this [Viewport] using the coordinate system of this [Viewport].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_render_info">
|
<method name="get_render_info">
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
<method name="gui_release_focus">
|
<method name="gui_release_focus">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Removes the focus from the currently focussed [Control] within this viewport. If no [Control] has the focus, does nothing.
|
Removes the focus from the currently focused [Control] within this viewport. If no [Control] has the focus, does nothing.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="is_embedding_subwindows" qualifiers="const">
|
<method name="is_embedding_subwindows" qualifiers="const">
|
||||||
|
|
|
||||||
|
|
@ -536,19 +536,19 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S
|
||||||
# Inheritance tree
|
# Inheritance tree
|
||||||
# Ascendants
|
# Ascendants
|
||||||
if class_def.inherits:
|
if class_def.inherits:
|
||||||
inh = class_def.inherits.strip()
|
inherits = class_def.inherits.strip()
|
||||||
f.write("**" + translate("Inherits:") + "** ")
|
f.write("**" + translate("Inherits:") + "** ")
|
||||||
first = True
|
first = True
|
||||||
while inh in state.classes:
|
while inherits in state.classes:
|
||||||
if not first:
|
if not first:
|
||||||
f.write(" **<** ")
|
f.write(" **<** ")
|
||||||
else:
|
else:
|
||||||
first = False
|
first = False
|
||||||
|
|
||||||
f.write(make_type(inh, state))
|
f.write(make_type(inherits, state))
|
||||||
inode = state.classes[inh].inherits
|
inode = state.classes[inherits].inherits
|
||||||
if inode:
|
if inode:
|
||||||
inh = inode.strip()
|
inherits = inode.strip()
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
f.write("\n\n")
|
f.write("\n\n")
|
||||||
|
|
|
||||||
|
|
@ -34818,7 +34818,7 @@ msgstr ""
|
||||||
#: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml
|
#: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml
|
||||||
msgid ""
|
msgid ""
|
||||||
"The minimal amount of time for which this agent's velocities, that are "
|
"The minimal amount of time for which this agent's velocities, that are "
|
||||||
"computed with the collision avoidance algorithim, are safe with respect to "
|
"computed with the collision avoidance algorithm, are safe with respect to "
|
||||||
"other agents. The larger the number, the sooner the agent will respond to "
|
"other agents. The larger the number, the sooner the agent will respond to "
|
||||||
"other agents, but the less freedom in choosing its velocities. Must be "
|
"other agents, but the less freedom in choosing its velocities. Must be "
|
||||||
"positive."
|
"positive."
|
||||||
|
|
|
||||||
|
|
@ -860,7 +860,7 @@ Error VulkanContext::_create_physical_device(VkSurfaceKHR p_surface) {
|
||||||
free(device_queue_props);
|
free(device_queue_props);
|
||||||
print_verbose(" #" + itos(i) + ": " + vendor + " " + name + " - " + (present_supported ? "Supported" : "Unsupported") + ", " + dev_type);
|
print_verbose(" #" + itos(i) + ": " + vendor + " " + name + " - " + (present_supported ? "Supported" : "Unsupported") + ", " + dev_type);
|
||||||
|
|
||||||
if (present_supported) { // Select first supported device of preffered type: Discrete > Integrated > Virtual > CPU > Other.
|
if (present_supported) { // Select first supported device of preferred type: Discrete > Integrated > Virtual > CPU > Other.
|
||||||
switch (props.deviceType) {
|
switch (props.deviceType) {
|
||||||
case VkPhysicalDeviceType::VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU: {
|
case VkPhysicalDeviceType::VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU: {
|
||||||
if (type_selected < 4) {
|
if (type_selected < 4) {
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ void editor_register_and_generate_icons(Ref<Theme> p_theme, bool p_dark_theme =
|
||||||
|
|
||||||
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#ffffff", "#414141"); // Pure white
|
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#ffffff", "#414141"); // Pure white
|
||||||
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#000000", "#bfbfbf"); // Pure black
|
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#000000", "#bfbfbf"); // Pure black
|
||||||
// Keep pure RGB colors as is, but list them for explicity.
|
// Keep pure RGB colors as is, but list them for explicitly.
|
||||||
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#ff0000", "#ff0000"); // Pure red
|
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#ff0000", "#ff0000"); // Pure red
|
||||||
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#00ff00", "#00ff00"); // Pure green
|
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#00ff00", "#00ff00"); // Pure green
|
||||||
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#0000ff", "#0000ff"); // Pure blue
|
ADD_CONVERT_COLOR(dark_icon_color_dictionary, "#0000ff", "#0000ff"); // Pure blue
|
||||||
|
|
|
||||||
|
|
@ -139,11 +139,11 @@ fi
|
||||||
while true; do
|
while true; do
|
||||||
if [ $terminal = "0" ] ; then
|
if [ $terminal = "0" ] ; then
|
||||||
if [ -x "$ZENITY" ] ; then
|
if [ -x "$ZENITY" ] ; then
|
||||||
ans=$($ZENITY --text-info --filename="$patch" --width=800 --height=600 --title="Do you want to apply that patch?" --ok-label="Apply" --cancel-label="Do not apply" --extra-button="Apply and stage")
|
choice=$($ZENITY --text-info --filename="$patch" --width=800 --height=600 --title="Do you want to apply that patch?" --ok-label="Apply" --cancel-label="Do not apply" --extra-button="Apply and stage")
|
||||||
if [ "$?" = "0" ] ; then
|
if [ "$?" = "0" ] ; then
|
||||||
yn="Y"
|
yn="Y"
|
||||||
else
|
else
|
||||||
if [ "$ans" = "Apply and stage" ] ; then
|
if [ "$choice" = "Apply and stage" ] ; then
|
||||||
yn="S"
|
yn="S"
|
||||||
else
|
else
|
||||||
yn="N"
|
yn="N"
|
||||||
|
|
@ -151,10 +151,10 @@ while true; do
|
||||||
fi
|
fi
|
||||||
elif [ -x "$XMSG" ] ; then
|
elif [ -x "$XMSG" ] ; then
|
||||||
$XMSG -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
$XMSG -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
||||||
ans=$?
|
choice=$?
|
||||||
if [ "$ans" = "100" ] ; then
|
if [ "$choice" = "100" ] ; then
|
||||||
yn="Y"
|
yn="Y"
|
||||||
elif [ "$ans" = "200" ] ; then
|
elif [ "$choice" = "200" ] ; then
|
||||||
yn="S"
|
yn="S"
|
||||||
else
|
else
|
||||||
yn="N"
|
yn="N"
|
||||||
|
|
@ -162,10 +162,10 @@ while true; do
|
||||||
elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then
|
elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then
|
||||||
winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")"
|
winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")"
|
||||||
$PWSH -noprofile -executionpolicy bypass -file "$winmessage" -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
$PWSH -noprofile -executionpolicy bypass -file "$winmessage" -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
||||||
ans=$?
|
choice=$?
|
||||||
if [ "$ans" = "100" ] ; then
|
if [ "$choice" = "100" ] ; then
|
||||||
yn="Y"
|
yn="Y"
|
||||||
elif [ "$ans" = "200" ] ; then
|
elif [ "$choice" = "200" ] ; then
|
||||||
yn="S"
|
yn="S"
|
||||||
else
|
else
|
||||||
yn="N"
|
yn="N"
|
||||||
|
|
|
||||||
|
|
@ -179,11 +179,11 @@ fi
|
||||||
while true; do
|
while true; do
|
||||||
if [ $terminal = "0" ] ; then
|
if [ $terminal = "0" ] ; then
|
||||||
if [ -x "$ZENITY" ] ; then
|
if [ -x "$ZENITY" ] ; then
|
||||||
ans=$($ZENITY --text-info --filename="$patch" --width=800 --height=600 --title="Do you want to apply that patch?" --ok-label="Apply" --cancel-label="Do not apply" --extra-button="Apply and stage")
|
choice=$($ZENITY --text-info --filename="$patch" --width=800 --height=600 --title="Do you want to apply that patch?" --ok-label="Apply" --cancel-label="Do not apply" --extra-button="Apply and stage")
|
||||||
if [ "$?" = "0" ] ; then
|
if [ "$?" = "0" ] ; then
|
||||||
yn="Y"
|
yn="Y"
|
||||||
else
|
else
|
||||||
if [ "$ans" = "Apply and stage" ] ; then
|
if [ "$choice" = "Apply and stage" ] ; then
|
||||||
yn="S"
|
yn="S"
|
||||||
else
|
else
|
||||||
yn="N"
|
yn="N"
|
||||||
|
|
@ -191,10 +191,10 @@ while true; do
|
||||||
fi
|
fi
|
||||||
elif [ -x "$XMSG" ] ; then
|
elif [ -x "$XMSG" ] ; then
|
||||||
$XMSG -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
$XMSG -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
||||||
ans=$?
|
choice=$?
|
||||||
if [ "$ans" = "100" ] ; then
|
if [ "$choice" = "100" ] ; then
|
||||||
yn="Y"
|
yn="Y"
|
||||||
elif [ "$ans" = "200" ] ; then
|
elif [ "$choice" = "200" ] ; then
|
||||||
yn="S"
|
yn="S"
|
||||||
else
|
else
|
||||||
yn="N"
|
yn="N"
|
||||||
|
|
@ -202,10 +202,10 @@ while true; do
|
||||||
elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then
|
elif [ \( \( "$OSTYPE" = "msys" \) -o \( "$OSTYPE" = "win32" \) \) -a \( -x "$PWSH" \) ]; then
|
||||||
winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")"
|
winmessage="$(canonicalize_filename "./.git/hooks/winmessage.ps1")"
|
||||||
$PWSH -noprofile -executionpolicy bypass -file "$winmessage" -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
$PWSH -noprofile -executionpolicy bypass -file "$winmessage" -file "$patch" -buttons "Apply":100,"Apply and stage":200,"Do not apply":0 -center -default "Do not apply" -geometry 800x600 -title "Do you want to apply that patch?"
|
||||||
ans=$?
|
choice=$?
|
||||||
if [ "$ans" = "100" ] ; then
|
if [ "$choice" = "100" ] ; then
|
||||||
yn="Y"
|
yn="Y"
|
||||||
elif [ "$ans" = "200" ] ; then
|
elif [ "$choice" = "200" ] ; then
|
||||||
yn="S"
|
yn="S"
|
||||||
else
|
else
|
||||||
yn="N"
|
yn="N"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
SKIP_LIST="./thirdparty,*.gen.*,*.po,*.pot,package-lock.json,./core/string/locales.h,./DONORS.md,./misc/scripts/codespell.sh"
|
||||||
|
IGNORE_LIST="ba,childs,curvelinear,expct,fave,findn,gird,inout,lod,nd,numer,ois,ro,statics,te,varn"
|
||||||
|
|
||||||
|
codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}"
|
||||||
|
|
@ -3373,9 +3373,9 @@ Error GLTFDocument::_serialize_materials(Ref<GLTFState> state) {
|
||||||
orm_texture_index = _set_texture(state, orm_texture);
|
orm_texture_index = _set_texture(state, orm_texture);
|
||||||
}
|
}
|
||||||
if (has_ao) {
|
if (has_ao) {
|
||||||
Dictionary ot;
|
Dictionary occt;
|
||||||
ot["index"] = orm_texture_index;
|
occt["index"] = orm_texture_index;
|
||||||
d["occlusionTexture"] = ot;
|
d["occlusionTexture"] = occt;
|
||||||
}
|
}
|
||||||
if (has_roughness || has_metalness) {
|
if (has_roughness || has_metalness) {
|
||||||
mrt["index"] = orm_texture_index;
|
mrt["index"] = orm_texture_index;
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ ScriptIterator::ScriptIterator(const String &p_string, int p_start, int p_length
|
||||||
paren_stack[paren_sp].pair_index = ch;
|
paren_stack[paren_sp].pair_index = ch;
|
||||||
paren_stack[paren_sp].script_code = script_code;
|
paren_stack[paren_sp].script_code = script_code;
|
||||||
} else if (paren_sp >= 0) {
|
} else if (paren_sp >= 0) {
|
||||||
// If it's a close character, find the matching open on the stack, and use that script code. Any non-matching open characters above it on the stack will be poped.
|
// If it's a close character, find the matching open on the stack, and use that script code. Any non-matching open characters above it on the stack will be popped.
|
||||||
UChar32 paired_ch = u_getBidiPairedBracket(ch);
|
UChar32 paired_ch = u_getBidiPairedBracket(ch);
|
||||||
while (paren_sp >= 0 && paren_stack[paren_sp].pair_index != paired_ch) {
|
while (paren_sp >= 0 && paren_stack[paren_sp].pair_index != paired_ch) {
|
||||||
paren_sp -= 1;
|
paren_sp -= 1;
|
||||||
|
|
|
||||||
|
|
@ -493,7 +493,7 @@ VisualScriptPropertySelector::VisualScriptPropertySelector() {
|
||||||
hbox->add_child(scope_combo);
|
hbox->add_child(scope_combo);
|
||||||
|
|
||||||
search_box = memnew(LineEdit);
|
search_box = memnew(LineEdit);
|
||||||
search_box->set_tooltip(TTR("Enter \" \" to show all filterd options\nEnter \".\" to show all filterd methods, operators and constructors\nUse CTRL_KEY to drop property setters"));
|
search_box->set_tooltip(TTR("Enter \" \" to show all filtered options\nEnter \".\" to show all filtered methods, operators and constructors\nUse CTRL_KEY to drop property setters"));
|
||||||
search_box->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
|
search_box->set_custom_minimum_size(Size2(200, 0) * EDSCALE);
|
||||||
search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
search_box->connect("text_changed", callable_mp(this, &VisualScriptPropertySelector::_update_results_s));
|
search_box->connect("text_changed", callable_mp(this, &VisualScriptPropertySelector::_update_results_s));
|
||||||
|
|
@ -694,7 +694,7 @@ bool VisualScriptPropertySelector::SearchRunner::_phase_match_classes_init() {
|
||||||
class_doc.name = selector_ui->base_script;
|
class_doc.name = selector_ui->base_script;
|
||||||
|
|
||||||
class_doc.inherits = script->get_instance_base_type();
|
class_doc.inherits = script->get_instance_base_type();
|
||||||
class_doc.brief_description = ".vs files not suported by EditorHelp::get_doc_data()";
|
class_doc.brief_description = ".vs files not supported by EditorHelp::get_doc_data()";
|
||||||
class_doc.description = "";
|
class_doc.description = "";
|
||||||
|
|
||||||
Object *obj = ObjectDB::get_instance(script->get_instance_id());
|
Object *obj = ObjectDB::get_instance(script->get_instance_id());
|
||||||
|
|
@ -711,9 +711,9 @@ bool VisualScriptPropertySelector::SearchRunner::_phase_match_classes_init() {
|
||||||
class_doc.signals.push_back(_get_method_doc(S->get()));
|
class_doc.signals.push_back(_get_method_doc(S->get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<PropertyInfo> propertys;
|
List<PropertyInfo> properties;
|
||||||
Object::cast_to<Script>(obj)->get_script_property_list(&propertys);
|
Object::cast_to<Script>(obj)->get_script_property_list(&properties);
|
||||||
for (List<PropertyInfo>::Element *P = propertys.front(); P; P = P->next()) {
|
for (List<PropertyInfo>::Element *P = properties.front(); P; P = P->next()) {
|
||||||
DocData::PropertyDoc pd = DocData::PropertyDoc();
|
DocData::PropertyDoc pd = DocData::PropertyDoc();
|
||||||
pd.name = P->get().name;
|
pd.name = P->get().name;
|
||||||
pd.type = Variant::get_type_name(P->get().type);
|
pd.type = Variant::get_type_name(P->get().type);
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ Error WSLClient::connect_to_host(String p_host, String p_path, uint16_t p_port,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We assume OK while hostname resultion is pending.
|
// We assume OK while hostname resolution is pending.
|
||||||
Error err = _resolver_id != IP::RESOLVER_INVALID_ID ? OK : FAILED;
|
Error err = _resolver_id != IP::RESOLVER_INVALID_ID ? OK : FAILED;
|
||||||
while (_ip_candidates.size()) {
|
while (_ip_candidates.size()) {
|
||||||
err = _tcp->connect_to_host(_ip_candidates.pop_front(), p_port);
|
err = _tcp->connect_to_host(_ip_candidates.pop_front(), p_port);
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ int DisplayServerAndroid::screen_get_dpi(int p_screen) const {
|
||||||
float DisplayServerAndroid::screen_get_refresh_rate(int p_screen) const {
|
float DisplayServerAndroid::screen_get_refresh_rate(int p_screen) const {
|
||||||
GodotIOJavaWrapper *godot_io_java = OS_Android::get_singleton()->get_godot_io_java();
|
GodotIOJavaWrapper *godot_io_java = OS_Android::get_singleton()->get_godot_io_java();
|
||||||
if (!godot_io_java) {
|
if (!godot_io_java) {
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate.");
|
||||||
return SCREEN_REFRESH_RATE_FALLBACK;
|
return SCREEN_REFRESH_RATE_FALLBACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,12 +141,12 @@ float GodotIOJavaWrapper::get_screen_refresh_rate(float fallback) {
|
||||||
if (_get_screen_refresh_rate) {
|
if (_get_screen_refresh_rate) {
|
||||||
JNIEnv *env = get_jni_env();
|
JNIEnv *env = get_jni_env();
|
||||||
if (env == nullptr) {
|
if (env == nullptr) {
|
||||||
ERR_PRINT("An error occured while trying to get screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get screen refresh rate.");
|
||||||
return fallback;
|
return fallback;
|
||||||
}
|
}
|
||||||
return (float)env->CallDoubleMethod(godot_io_instance, _get_screen_refresh_rate, (double)fallback);
|
return (float)env->CallDoubleMethod(godot_io_instance, _get_screen_refresh_rate, (double)fallback);
|
||||||
}
|
}
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate.");
|
||||||
return fallback;
|
return fallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1077,7 +1077,7 @@ float DisplayServerX11::screen_get_refresh_rate(int p_screen) const {
|
||||||
monitors = xrr_get_monitors(x11_display, windows[MAIN_WINDOW_ID].x11_window, true, &count);
|
monitors = xrr_get_monitors(x11_display, windows[MAIN_WINDOW_ID].x11_window, true, &count);
|
||||||
ERR_FAIL_INDEX_V(p_screen, count, SCREEN_REFRESH_RATE_FALLBACK);
|
ERR_FAIL_INDEX_V(p_screen, count, SCREEN_REFRESH_RATE_FALLBACK);
|
||||||
} else {
|
} else {
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate.");
|
||||||
return SCREEN_REFRESH_RATE_FALLBACK;
|
return SCREEN_REFRESH_RATE_FALLBACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1105,14 +1105,14 @@ float DisplayServerX11::screen_get_refresh_rate(int p_screen) const {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate."); // We should have returned the refresh rate by now. An error must have occured.
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate."); // We should have returned the refresh rate by now. An error must have occurred.
|
||||||
return SCREEN_REFRESH_RATE_FALLBACK;
|
return SCREEN_REFRESH_RATE_FALLBACK;
|
||||||
} else {
|
} else {
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate.");
|
||||||
return SCREEN_REFRESH_RATE_FALLBACK;
|
return SCREEN_REFRESH_RATE_FALLBACK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate.");
|
||||||
return SCREEN_REFRESH_RATE_FALLBACK;
|
return SCREEN_REFRESH_RATE_FALLBACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1335,7 +1335,7 @@ float DisplayServerOSX::screen_get_refresh_rate(int p_screen) const {
|
||||||
const double displayRefreshRate = CGDisplayModeGetRefreshRate(displayMode);
|
const double displayRefreshRate = CGDisplayModeGetRefreshRate(displayMode);
|
||||||
return (float)displayRefreshRate;
|
return (float)displayRefreshRate;
|
||||||
}
|
}
|
||||||
ERR_PRINT("An error occured while trying to get the screen refresh rate.");
|
ERR_PRINT("An error occurred while trying to get the screen refresh rate.");
|
||||||
return SCREEN_REFRESH_RATE_FALLBACK;
|
return SCREEN_REFRESH_RATE_FALLBACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -185,14 +185,14 @@ void SpringArm3D::process_spring() {
|
||||||
}
|
}
|
||||||
|
|
||||||
current_spring_length = spring_length * motion_delta;
|
current_spring_length = spring_length * motion_delta;
|
||||||
Transform3D childs_transform;
|
Transform3D child_transform;
|
||||||
childs_transform.origin = get_global_transform().origin + cast_direction * (spring_length * motion_delta);
|
child_transform.origin = get_global_transform().origin + cast_direction * (spring_length * motion_delta);
|
||||||
|
|
||||||
for (int i = get_child_count() - 1; 0 <= i; --i) {
|
for (int i = get_child_count() - 1; 0 <= i; --i) {
|
||||||
Node3D *child = Object::cast_to<Node3D>(get_child(i));
|
Node3D *child = Object::cast_to<Node3D>(get_child(i));
|
||||||
if (child) {
|
if (child) {
|
||||||
childs_transform.basis = child->get_global_transform().basis;
|
child_transform.basis = child->get_global_transform().basis;
|
||||||
child->set_global_transform(childs_transform);
|
child->set_global_transform(child_transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2472,7 +2472,7 @@ void TextEdit::_update_placeholder() {
|
||||||
return; // Not in tree?
|
return; // Not in tree?
|
||||||
}
|
}
|
||||||
|
|
||||||
// Placeholder is generally smaller then text docuemnts, and updates less so this should be fast enough for now.
|
// Placeholder is generally smaller then text documents, and updates less so this should be fast enough for now.
|
||||||
placeholder_data_buf->clear();
|
placeholder_data_buf->clear();
|
||||||
placeholder_data_buf->set_width(text.get_width());
|
placeholder_data_buf->set_width(text.get_width());
|
||||||
placeholder_data_buf->set_direction((TextServer::Direction)text_direction);
|
placeholder_data_buf->set_direction((TextServer::Direction)text_direction);
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ TEST_CASE("[Vector3] Angle methods") {
|
||||||
|
|
||||||
CHECK_MESSAGE(
|
CHECK_MESSAGE(
|
||||||
Math::is_equal_approx(vector_x.signed_angle_to(vector_y, vector_y), (real_t)Math_TAU / 4),
|
Math::is_equal_approx(vector_x.signed_angle_to(vector_y, vector_y), (real_t)Math_TAU / 4),
|
||||||
"Vector3 signed_angle_to edge case should be postiive.");
|
"Vector3 signed_angle_to edge case should be positive.");
|
||||||
CHECK_MESSAGE(
|
CHECK_MESSAGE(
|
||||||
Math::is_equal_approx(vector_x.signed_angle_to(vector_yz, vector_y), (real_t)Math_TAU / -4),
|
Math::is_equal_approx(vector_x.signed_angle_to(vector_yz, vector_y), (real_t)Math_TAU / -4),
|
||||||
"Vector3 signed_angle_to should work as expected.");
|
"Vector3 signed_angle_to should work as expected.");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue