diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp
index afde6863a3a..ac6ad0fdd2f 100644
--- a/core/object/class_db.cpp
+++ b/core/object/class_db.cpp
@@ -1460,7 +1460,7 @@ Variant ClassDB::class_get_default_property_value(const StringName &p_class, con
if (Engine::get_singleton()->has_singleton(p_class)) {
c = Engine::get_singleton()->get_singleton_object(p_class);
cleanup_c = false;
- } else if (ClassDB::can_instantiate(p_class)) { // Keep this condition in sync with doc_tools.cpp get_documentation_default_value.
+ } else if (ClassDB::can_instantiate(p_class) && !ClassDB::is_virtual(p_class)) { // Keep this condition in sync with doc_tools.cpp get_documentation_default_value.
c = ClassDB::instantiate(p_class);
cleanup_c = true;
}
diff --git a/doc/classes/AnimatedTexture.xml b/doc/classes/AnimatedTexture.xml
index f0c86ba47ba..57a7f869014 100644
--- a/doc/classes/AnimatedTexture.xml
+++ b/doc/classes/AnimatedTexture.xml
@@ -57,6 +57,7 @@
If [code]true[/code], the animation will pause where it currently is (i.e. at [member current_frame]). The animation will continue from where it was paused when changing this property to [code]false[/code].
+
The animation speed is multiplied by this value. If set to a negative value, the animation is played in reverse.
diff --git a/doc/classes/AtlasTexture.xml b/doc/classes/AtlasTexture.xml
index 809d983a9d1..fc75459e469 100644
--- a/doc/classes/AtlasTexture.xml
+++ b/doc/classes/AtlasTexture.xml
@@ -23,5 +23,6 @@
The region used to draw the [member atlas].
+
diff --git a/doc/classes/CameraTexture.xml b/doc/classes/CameraTexture.xml
index 8eedfe35801..e7020c869ee 100644
--- a/doc/classes/CameraTexture.xml
+++ b/doc/classes/CameraTexture.xml
@@ -16,6 +16,7 @@
Convenience property that gives access to the active property of the [CameraFeed].
+
Which image within the [CameraFeed] we want access to, important if the camera image is split in a Y and CbCr component.
diff --git a/doc/classes/CanvasTexture.xml b/doc/classes/CanvasTexture.xml
index 2dc83790c7d..d5bf65835f8 100644
--- a/doc/classes/CanvasTexture.xml
+++ b/doc/classes/CanvasTexture.xml
@@ -17,6 +17,7 @@
The normal map texture to use. Only has a visible effect if [Light2D]s are affecting this [CanvasTexture].
[b]Note:[/b] Godot expects the normal map to use X+, Y+, and Z+ coordinates. See [url=http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for a comparison of normal map coordinates expected by popular engines.
+
The multiplier for specular reflection colors. The [Light2D]'s color is also taken into account when determining the reflection color. Only has a visible effect if [Light2D]s are affecting this [CanvasTexture].
diff --git a/doc/classes/CompressedTexture2D.xml b/doc/classes/CompressedTexture2D.xml
index f74265b8d52..f7464d89511 100644
--- a/doc/classes/CompressedTexture2D.xml
+++ b/doc/classes/CompressedTexture2D.xml
@@ -21,5 +21,6 @@
The CompressedTexture's file path to a [code].ctex[/code] file.
+
diff --git a/doc/classes/CurveTexture.xml b/doc/classes/CurveTexture.xml
index 85473fc237f..03e008d7386 100644
--- a/doc/classes/CurveTexture.xml
+++ b/doc/classes/CurveTexture.xml
@@ -13,6 +13,7 @@
The [Curve] that is rendered onto the texture.
+
The format the texture should be generated with. When passing a CurveTexture as a input to a [Shader], this may need to be adjusted.
diff --git a/doc/classes/CurveXYZTexture.xml b/doc/classes/CurveXYZTexture.xml
index e3f2e8fc451..8c4e2dce0f8 100644
--- a/doc/classes/CurveXYZTexture.xml
+++ b/doc/classes/CurveXYZTexture.xml
@@ -19,6 +19,7 @@
The [Curve] that is rendered onto the texture's blue channel.
+
The width of the texture (in pixels). Higher values make it possible to represent high-frequency data better (such as sudden direction changes), at the cost of increased generation time and memory usage.
diff --git a/doc/classes/EditorSpinSlider.xml b/doc/classes/EditorSpinSlider.xml
index 784a3c1214e..de105b32e19 100644
--- a/doc/classes/EditorSpinSlider.xml
+++ b/doc/classes/EditorSpinSlider.xml
@@ -22,6 +22,8 @@
If [code]true[/code], the slider can't be interacted with.
+
+
The suffix to display after the value (in a faded color). This should generally be a plural word. You may have to use an abbreviation if the suffix is too long to be displayed.
diff --git a/doc/classes/GradientTexture1D.xml b/doc/classes/GradientTexture1D.xml
index 3254754ac16..fa572eeed04 100644
--- a/doc/classes/GradientTexture1D.xml
+++ b/doc/classes/GradientTexture1D.xml
@@ -12,6 +12,7 @@
The [Gradient] that will be used to fill the texture.
+
If [code]true[/code], the generated texture will support high dynamic range ([constant Image.FORMAT_RGBAF] format). This allows for glow effects to work if [member Environment.glow_enabled] is [code]true[/code]. If [code]false[/code], the generated texture will use low dynamic range; overbright colors will be clamped ([constant Image.FORMAT_RGBA8] format).
diff --git a/doc/classes/GradientTexture2D.xml b/doc/classes/GradientTexture2D.xml
index 7561f1b9479..87d86e7a597 100644
--- a/doc/classes/GradientTexture2D.xml
+++ b/doc/classes/GradientTexture2D.xml
@@ -27,6 +27,7 @@
The gradient repeat type, one of the [enum Repeat] values. The texture is filled starting from [member fill_from] to [member fill_to] offsets by default, but the gradient fill can be repeated to cover the entire texture.
+
If [code]true[/code], the generated texture will support high dynamic range ([constant Image.FORMAT_RGBAF] format). This allows for glow effects to work if [member Environment.glow_enabled] is [code]true[/code]. If [code]false[/code], the generated texture will use low dynamic range; overbright colors will be clamped ([constant Image.FORMAT_RGBA8] format).
diff --git a/doc/classes/ImageTexture.xml b/doc/classes/ImageTexture.xml
index 45cbd7ac87d..03d19474755 100644
--- a/doc/classes/ImageTexture.xml
+++ b/doc/classes/ImageTexture.xml
@@ -67,4 +67,7 @@
+
+
+
diff --git a/doc/classes/MeshTexture.xml b/doc/classes/MeshTexture.xml
index 8e2bccc79f5..d09fa4c8985 100644
--- a/doc/classes/MeshTexture.xml
+++ b/doc/classes/MeshTexture.xml
@@ -18,5 +18,6 @@
Sets the mesh used to draw. It must be a mesh using 2D vertices.
+
diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml
index e8062f3e94f..eca6a1cbc74 100644
--- a/doc/classes/PhysicsDirectBodyState2D.xml
+++ b/doc/classes/PhysicsDirectBodyState2D.xml
@@ -209,40 +209,40 @@
-
+
The body's rotational velocity in [i]radians[/i] per second.
-
+
The body's center of mass position relative to the body's center in the global coordinate system.
-
+
The body's center of mass position in the body's local coordinate system.
-
+
The inverse of the inertia of the body.
-
+
The inverse of the mass of the body.
-
+
The body's linear velocity in pixels per second.
-
+
If [code]true[/code], this body is currently sleeping (not active).
-
+
The timestep (delta) used for the simulation.
-
+
The rate at which the body stops rotating, if there are not any other forces moving it.
-
+
The total gravity vector being currently applied to this body.
-
+
The rate at which the body stops moving, if there are not any other forces moving it.
-
+
The body's transformation matrix.
diff --git a/doc/classes/PhysicsDirectBodyState3D.xml b/doc/classes/PhysicsDirectBodyState3D.xml
index 4c6d51c85ad..a8093846429 100644
--- a/doc/classes/PhysicsDirectBodyState3D.xml
+++ b/doc/classes/PhysicsDirectBodyState3D.xml
@@ -216,45 +216,45 @@
-
+
The body's rotational velocity in [i]radians[/i] per second.
-
+
The body's center of mass position relative to the body's center in the global coordinate system.
-
+
The body's center of mass position in the body's local coordinate system.
-
+
The inverse of the inertia of the body.
-
+
The inverse of the inertia tensor of the body.
-
+
The inverse of the mass of the body.
-
+
The body's linear velocity in units per second.
-
+
-
+
If [code]true[/code], this body is currently sleeping (not active).
-
+
The timestep (delta) used for the simulation.
-
+
The rate at which the body stops rotating, if there are not any other forces moving it.
-
+
The total gravity vector being currently applied to this body.
-
+
The rate at which the body stops moving, if there are not any other forces moving it.
-
+
The body's transformation matrix.
diff --git a/doc/classes/PlaceholderTexture2D.xml b/doc/classes/PlaceholderTexture2D.xml
index 76e575265bc..5d8509ec77f 100644
--- a/doc/classes/PlaceholderTexture2D.xml
+++ b/doc/classes/PlaceholderTexture2D.xml
@@ -7,6 +7,7 @@
+
diff --git a/doc/classes/PortableCompressedTexture2D.xml b/doc/classes/PortableCompressedTexture2D.xml
index a0492f2c07a..b64cda6df50 100644
--- a/doc/classes/PortableCompressedTexture2D.xml
+++ b/doc/classes/PortableCompressedTexture2D.xml
@@ -58,6 +58,7 @@
When running on the editor, this class will keep the source compressed data in memory. Otherwise, the source compressed data is lost after loading and the resource can't be re saved.
This flag allows to keep the compressed data in memory if you intend it to persist after loading.
+
Allow overriding the texture size (for 2D only).
diff --git a/doc/classes/ProgressBar.xml b/doc/classes/ProgressBar.xml
index f8c5dc0e1f0..510b8d5bd10 100644
--- a/doc/classes/ProgressBar.xml
+++ b/doc/classes/ProgressBar.xml
@@ -15,8 +15,6 @@
If [code]true[/code], the fill percentage is displayed on the bar.
-
-
diff --git a/doc/classes/Range.xml b/doc/classes/Range.xml
index 8aa89015c61..2dcfc909554 100644
--- a/doc/classes/Range.xml
+++ b/doc/classes/Range.xml
@@ -62,7 +62,8 @@
If [code]true[/code], [code]value[/code] will always be rounded to the nearest integer.
-
+
+
If greater than 0, [code]value[/code] will always be rounded to a multiple of [code]step[/code]. If [code]rounded[/code] is also [code]true[/code], [code]value[/code] will first be rounded to a multiple of [code]step[/code] then rounded to the nearest integer.
diff --git a/doc/classes/ScrollBar.xml b/doc/classes/ScrollBar.xml
index 266787c9c84..247e892c240 100644
--- a/doc/classes/ScrollBar.xml
+++ b/doc/classes/ScrollBar.xml
@@ -12,7 +12,6 @@
Overrides the step used when clicking increment and decrement buttons or when using arrow keys when the [ScrollBar] is focused.
-
diff --git a/doc/classes/Slider.xml b/doc/classes/Slider.xml
index 0e626842bd9..cecca0a5fb4 100644
--- a/doc/classes/Slider.xml
+++ b/doc/classes/Slider.xml
@@ -17,7 +17,7 @@
If [code]true[/code], the value can be changed using the mouse wheel.
-
+
Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.
diff --git a/doc/classes/SpinBox.xml b/doc/classes/SpinBox.xml
index 93799b58f0a..e214867890f 100644
--- a/doc/classes/SpinBox.xml
+++ b/doc/classes/SpinBox.xml
@@ -59,6 +59,8 @@
If [code]true[/code], the [SpinBox] will select the whole text when the [LineEdit] gains focus. Clicking the up and down arrows won't trigger this behavior.
+
+
Adds the specified [code]suffix[/code] string after the numerical value of the [SpinBox].
diff --git a/doc/classes/TextureProgressBar.xml b/doc/classes/TextureProgressBar.xml
index ded4dac7da5..54b77bf5ebe 100644
--- a/doc/classes/TextureProgressBar.xml
+++ b/doc/classes/TextureProgressBar.xml
@@ -41,6 +41,8 @@
Starting angle for the fill of [member texture_progress] if [member fill_mode] is [constant FILL_CLOCKWISE] or [constant FILL_COUNTER_CLOCKWISE]. When the node's [code]value[/code] is equal to its [code]min_value[/code], the texture doesn't show up at all. When the [code]value[/code] increases, the texture fills and tends towards [member radial_fill_degrees].
+
+
The height of the 9-patch's bottom row. A margin of 16 means the 9-slice's bottom corners and side will have a height of 16 pixels. You can set all 4 margin values individually to create panels with non-uniform borders.
diff --git a/doc/classes/ViewportTexture.xml b/doc/classes/ViewportTexture.xml
index 955f054cea9..6bd64a50bb4 100644
--- a/doc/classes/ViewportTexture.xml
+++ b/doc/classes/ViewportTexture.xml
@@ -15,7 +15,6 @@
https://godotengine.org/asset-library/asset/586
-
The path to the [Viewport] node to display. This is relative to the scene root, not to the node which uses the texture.
diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp
index 6e6416e3cad..14a2640e639 100644
--- a/editor/doc_tools.cpp
+++ b/editor/doc_tools.cpp
@@ -335,7 +335,7 @@ static Variant get_documentation_default_value(const StringName &p_class_name, c
Variant default_value = Variant();
r_default_value_valid = false;
- if (ClassDB::can_instantiate(p_class_name)) { // Keep this condition in sync with ClassDB::class_get_default_property_value.
+ if (ClassDB::can_instantiate(p_class_name) && !ClassDB::is_virtual(p_class_name)) { // Keep this condition in sync with ClassDB::class_get_default_property_value.
default_value = ClassDB::class_get_default_property_value(p_class_name, p_property_name, &r_default_value_valid);
} else {
// Cannot get default value of classes that can't be instantiated
diff --git a/modules/noise/doc_classes/NoiseTexture2D.xml b/modules/noise/doc_classes/NoiseTexture2D.xml
index 9eea2738c56..0a800a143b3 100644
--- a/modules/noise/doc_classes/NoiseTexture2D.xml
+++ b/modules/noise/doc_classes/NoiseTexture2D.xml
@@ -44,6 +44,7 @@
The instance of the [Noise] object.
+
If [code]true[/code], a seamless texture is requested from the [Noise] resource.
[b]Note:[/b] Seamless noise textures may take longer to generate and/or can have a lower contrast compared to non-seamless noise depending on the used [Noise] resource. This is because some implementations use higher dimensions for generating seamless noise.