From 86ed7a988419247479596947ce44279ee8b3528c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 27 Jun 2019 11:10:53 +0200 Subject: [PATCH] doc: Complete and harmonize all _MAX constant descriptions --- doc/classes/@GlobalScope.xml | 6 ++-- doc/classes/ArrayMesh.xml | 1 + doc/classes/AudioEffectPitchShift.xml | 1 + doc/classes/AudioEffectSpectrumAnalyzer.xml | 1 + .../AudioEffectSpectrumAnalyzerInstance.xml | 2 ++ doc/classes/ConeTwistJoint.xml | 6 ++-- doc/classes/EditorFeatureProfile.xml | 1 + doc/classes/EditorPlugin.xml | 1 + doc/classes/Environment.xml | 2 +- doc/classes/GIProbe.xml | 1 + doc/classes/Generic6DOFJoint.xml | 4 +-- doc/classes/GeometryInstance.xml | 11 +++--- doc/classes/HTTPClient.xml | 2 +- doc/classes/HingeJoint.xml | 4 +-- doc/classes/Image.xml | 1 + doc/classes/Light.xml | 1 + doc/classes/LineEdit.xml | 1 + doc/classes/Material.xml | 2 ++ doc/classes/Mesh.xml | 1 + doc/classes/Physics2DServer.xml | 34 +++++++++---------- doc/classes/PhysicsServer.xml | 4 +-- doc/classes/ProceduralSky.xml | 5 +-- doc/classes/ResourceImporter.xml | 13 +++++++ doc/classes/Sky.xml | 8 ++--- doc/classes/SliderJoint.xml | 2 +- doc/classes/SpatialMaterial.xml | 3 ++ doc/classes/SpriteBase3D.xml | 2 +- doc/classes/Tabs.xml | 2 ++ doc/classes/Viewport.xml | 4 +-- doc/classes/VisibilityEnabler.xml | 1 + doc/classes/VisibilityEnabler2D.xml | 1 + doc/classes/VisualServer.xml | 14 ++++---- doc/classes/VisualShader.xml | 1 + .../doc_classes/VisualScriptBuiltinFunc.xml | 2 +- .../doc_classes/VisualScriptMathConstant.xml | 1 + scene/3d/visual_instance.cpp | 1 + 36 files changed, 96 insertions(+), 51 deletions(-) create mode 100644 doc/classes/ResourceImporter.xml diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index d36a545c564..1c3b6cba70a 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -968,7 +968,7 @@ Joypad Button 15 - Joypad Button 16 + Represents the maximum number of joystick buttons supported. DUALSHOCK circle button @@ -1090,6 +1090,7 @@ + Represents the maximum number of joystick axes supported. Joypad Left Stick Horizontal Axis @@ -1449,7 +1450,7 @@ Variable is of type [PoolColorArray]. - Marker for end of type constants. + Represents the size of the [enum Variant.Type] enum. @@ -1502,6 +1503,7 @@ + Represents the size of the [enum Variant.Operator] enum. diff --git a/doc/classes/ArrayMesh.xml b/doc/classes/ArrayMesh.xml index d44e3c54c9a..3e3f040d261 100644 --- a/doc/classes/ArrayMesh.xml +++ b/doc/classes/ArrayMesh.xml @@ -225,6 +225,7 @@ For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line. + Represents the size of the [enum ArrayType] enum. Array format will include vertices (mandatory). diff --git a/doc/classes/AudioEffectPitchShift.xml b/doc/classes/AudioEffectPitchShift.xml index 8c22afb40fa..271e1a2a4c3 100644 --- a/doc/classes/AudioEffectPitchShift.xml +++ b/doc/classes/AudioEffectPitchShift.xml @@ -32,6 +32,7 @@ + Represents the size of the [enum FFT_Size] enum. diff --git a/doc/classes/AudioEffectSpectrumAnalyzer.xml b/doc/classes/AudioEffectSpectrumAnalyzer.xml index 8a719914376..21d74a8fb01 100644 --- a/doc/classes/AudioEffectSpectrumAnalyzer.xml +++ b/doc/classes/AudioEffectSpectrumAnalyzer.xml @@ -28,6 +28,7 @@ + Represents the size of the [enum FFT_Size] enum. diff --git a/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml b/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml index f4620f9905a..ca068d572d9 100644 --- a/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml +++ b/doc/classes/AudioEffectSpectrumAnalyzerInstance.xml @@ -22,8 +22,10 @@ + Use the average value as magnitude. + Use the maximum value as magnitude. diff --git a/doc/classes/ConeTwistJoint.xml b/doc/classes/ConeTwistJoint.xml index f7266aad275..28dee22b7f7 100644 --- a/doc/classes/ConeTwistJoint.xml +++ b/doc/classes/ConeTwistJoint.xml @@ -25,7 +25,7 @@ Swing is rotation from side to side, around the axis perpendicular to the twist axis. - The swing span defines, how much rotation will not get corrected allong the swing axis. + The swing span defines, how much rotation will not get corrected along the swing axis. Could be defined as looseness in the [ConeTwistJoint]. If below 0.05, this behavior is locked. Default value: [code]PI/4[/code]. @@ -37,7 +37,7 @@ Swing is rotation from side to side, around the axis perpendicular to the twist axis. - The swing span defines, how much rotation will not get corrected allong the swing axis. + The swing span defines, how much rotation will not get corrected along the swing axis. Could be defined as looseness in the [ConeTwistJoint]. If below 0.05, this behavior is locked. Default value: [code]PI/4[/code]. @@ -56,7 +56,7 @@ Defines, how fast the swing- and twist-speed-difference on both sides gets synced. - End flag of PARAM_* constants, used internally. + Represents the size of the [enum Param] enum. diff --git a/doc/classes/EditorFeatureProfile.xml b/doc/classes/EditorFeatureProfile.xml index 410b71a43e0..21da9fd454d 100644 --- a/doc/classes/EditorFeatureProfile.xml +++ b/doc/classes/EditorFeatureProfile.xml @@ -124,6 +124,7 @@ + Represents the size of the [enum Feature] enum. diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index 3d91bff0aa0..28b2be75e3f 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -546,6 +546,7 @@ + Represents the size of the [enum DockSlot] enum. diff --git a/doc/classes/Environment.xml b/doc/classes/Environment.xml index eb944475290..72993103e83 100644 --- a/doc/classes/Environment.xml +++ b/doc/classes/Environment.xml @@ -273,7 +273,7 @@ Display a camera feed in the background. - Helper constant keeping track of the enum's size, has no direct usage in API calls. + Represents the size of the [enum BGMode] enum. Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources. diff --git a/doc/classes/GIProbe.xml b/doc/classes/GIProbe.xml index e42d3ed2c46..84cd446ea29 100644 --- a/doc/classes/GIProbe.xml +++ b/doc/classes/GIProbe.xml @@ -57,6 +57,7 @@ + Represents the size of the [enum Subdiv] enum. diff --git a/doc/classes/Generic6DOFJoint.xml b/doc/classes/Generic6DOFJoint.xml index 53cece21fa6..52888e95876 100644 --- a/doc/classes/Generic6DOFJoint.xml +++ b/doc/classes/Generic6DOFJoint.xml @@ -293,7 +293,7 @@ Maximum acceleration for the motor at the axes. - End flag of PARAM_* constants, used internally. + Represents the size of the [enum Param] enum. If [code]set[/code] there is linear motion possible within the given limits. @@ -311,7 +311,7 @@ - End flag of FLAG_* constants, used internally. + Represents the size of the [enum Flag] enum. diff --git a/doc/classes/GeometryInstance.xml b/doc/classes/GeometryInstance.xml index 674f7861498..22135a048e7 100644 --- a/doc/classes/GeometryInstance.xml +++ b/doc/classes/GeometryInstance.xml @@ -15,13 +15,13 @@ - Overrides the bounding box of this node with a custom one. To remove it, set an AABB with all fields set to zero. + Overrides the bounding box of this node with a custom one. To remove it, set an [AABB] with all fields set to zero. - The selected shadow casting flag. See SHADOW_CASTING_SETTING_* constants for values. + The selected shadow casting flag. See [enum ShadowCastingSetting] for possible values. The extra distance added to the GeometryInstance's bounding box ([AABB]) to increase its cull box. @@ -40,7 +40,7 @@ The material override for the whole geometry. - If there is a material in material_override, it will be used instead of any material set in any material slot of the mesh. + If there is a material in [code]material_override[/code], it will be used instead of any material set in any material slot of the mesh. If [code]true[/code], this GeometryInstance will be used when baking lights using a [GIProbe] and/or any other form of baked lighting. @@ -64,9 +64,12 @@ Will allow the GeometryInstance to be used when baking lights using a [GIProbe] and/or any other form of baked lighting. - Added documentation for GeometryInstance and VisualInstance + + + Unused in this class, exposed for consistency with [enum VisualServer.InstanceFlags]. + Represents the size of the [enum Flags] enum. diff --git a/doc/classes/HTTPClient.xml b/doc/classes/HTTPClient.xml index 8ae0120a34d..16f9531dbde 100644 --- a/doc/classes/HTTPClient.xml +++ b/doc/classes/HTTPClient.xml @@ -211,7 +211,7 @@ HTTP PATCH method. The PATCH method is used to apply partial modifications to a resource. - Marker for end of [code]METHOD_*[/code] enum. Not used. + Represents the size of the [enum Method] enum. Status: Disconnected from the server. diff --git a/doc/classes/HingeJoint.xml b/doc/classes/HingeJoint.xml index 79df64f226e..2fde885ee8b 100644 --- a/doc/classes/HingeJoint.xml +++ b/doc/classes/HingeJoint.xml @@ -66,7 +66,7 @@ Maximum acceleration for the motor. - End flag of PARAM_* constants, used internally. + Represents the size of the [enum Param] enum. If [code]true[/code], the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects. @@ -75,7 +75,7 @@ When activated, a motor turns the hinge. - End flag of FLAG_* constants, used internally. + Represents the size of the [enum Flag] enum. diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 75434b031ea..d7c3c0af783 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -590,6 +590,7 @@ Ericsson Texture Compression format 2 variant RGB8_PUNCHTHROUGH_ALPHA1, which compresses RGBA data to make alpha either fully transparent or fully opaque. Note that when creating an [ImageTexture], an sRGB to linear color space conversion is performed. + Represents the size of the [enum Format] enum. diff --git a/doc/classes/Light.xml b/doc/classes/Light.xml index ecbc07ba720..05eb44b2f1b 100644 --- a/doc/classes/Light.xml +++ b/doc/classes/Light.xml @@ -83,6 +83,7 @@ + Represents the size of the [enum Param] enum. Light is ignored when baking. Note: hiding a light does [i]not[/i] affect baking. diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index 333f6a3671e..c3363571096 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -181,6 +181,7 @@ Reverse the last undo action. + Represents the size of the [enum MenuItems] enum. diff --git a/doc/classes/Material.xml b/doc/classes/Material.xml index 848a43e6c46..22da012022d 100644 --- a/doc/classes/Material.xml +++ b/doc/classes/Material.xml @@ -18,8 +18,10 @@ + Maximum value for the [member render_priority] parameter. + Minimum value for the [member render_priority] parameter. diff --git a/doc/classes/Mesh.xml b/doc/classes/Mesh.xml index 048e7074f10..d2911fd2991 100644 --- a/doc/classes/Mesh.xml +++ b/doc/classes/Mesh.xml @@ -194,6 +194,7 @@ Array of indices. + Represents the size of the [enum ArrayType] enum. diff --git a/doc/classes/Physics2DServer.xml b/doc/classes/Physics2DServer.xml index 172420e4ca7..de4a8c233e7 100644 --- a/doc/classes/Physics2DServer.xml +++ b/doc/classes/Physics2DServer.xml @@ -86,7 +86,7 @@ - Returns an area parameter value. A list of available parameters is on the AREA_PARAM_* constants. + Returns an area parameter value. See [enum AreaParameter] for a list of available parameters. @@ -230,7 +230,7 @@ - Sets the value for an area parameter. A list of available parameters is on the AREA_PARAM_* constants. + Sets the value for an area parameter. See [enum AreaParameter] for a list of available parameters. @@ -291,7 +291,7 @@ - Sets the space override mode for the area. The modes are described in the constants AREA_SPACE_OVERRIDE_*. + Sets the space override mode for the area. See [enum AreaSpaceOverrideMode] for a list of available modes. @@ -431,7 +431,7 @@ - Creates a physics body. The first parameter can be any value from constants BODY_MODE*, for the type of body created. Additionally, the body can be created in sleeping state to save processing time. + Creates a physics body. @@ -513,7 +513,7 @@ - Returns the value of a body parameter. A list of available parameters is on the BODY_PARAM_* constants. + Returns the value of a body parameter. See [enum BodyParameter] for a list of available parameters. @@ -650,7 +650,7 @@ - Sets the continuous collision detection mode from any of the CCD_MODE_* constants. + Sets the continuous collision detection mode using one of the [enum CCDMode] constants. Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. @@ -688,7 +688,7 @@ - Sets the body mode, from one of the constants BODY_MODE*. + Sets the body mode using one of the [enum BodyMode] constants. @@ -712,7 +712,7 @@ - Sets a body parameter. A list of available parameters is on the BODY_PARAM_* constants. + Sets a body parameter. See [enum BodyParameter] for a list of available parameters. @@ -803,7 +803,7 @@ - Sets a body state (see BODY_STATE* constants). + Sets a body state using one of the [enum BodyState] constants. @@ -885,7 +885,7 @@ - Sets a damped spring joint parameter. Parameters are explained in the DAMPED_STRING* constants. + Sets a damped spring joint parameter. See [enum DampedStringParam] for a list of available parameters. @@ -903,7 +903,7 @@ - Returns information about the current state of the 2D physics engine. The states are listed under the INFO_* constants. + Returns information about the current state of the 2D physics engine. See [enum ProcessInfo] for a list of available states. @@ -920,7 +920,7 @@ - Creates a groove joint between two bodies. If not specified, the bodyies are assumed to be the joint itself. + Creates a groove joint between two bodies. If not specified, the bodies are assumed to be the joint itself. @@ -940,7 +940,7 @@ - Returns the type of a joint (see JOINT_* constants). + Returns the type of a joint (see [enum JointType]). @@ -953,7 +953,7 @@ - Sets a joint parameter. Parameters are explained in the JOINT_PARAM* constants. + Sets a joint parameter. See [enum JointParam] for a list of available parameters. @@ -1017,7 +1017,7 @@ - Returns the type of shape (see SHAPE_* constants). + Returns the type of shape (see [enum ShapeType]). @@ -1088,7 +1088,7 @@ - Sets the value for a space parameter. A list of available parameters is on the SPACE_PARAM_* constants. + Sets the value for a space parameter. See [enum SpaceParameter] for a list of available parameters. @@ -1215,7 +1215,7 @@ Constant to set/get a body's angular dampening factor. - This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. + Represents the size of the [enum BodyParameter] enum. Constant to set/get the current transform matrix of the body. diff --git a/doc/classes/PhysicsServer.xml b/doc/classes/PhysicsServer.xml index eff0d4ef2e8..c8afd817018 100644 --- a/doc/classes/PhysicsServer.xml +++ b/doc/classes/PhysicsServer.xml @@ -1384,7 +1384,7 @@ The amount of damping of the rotation across axes orthogonal to the slider. - End flag of SLIDER_JOINT_* constants, used internally. + Represents the size of the [enum SliderJointParam] enum. Swing is rotation from side to side, around the axis perpendicular to the twist axis. @@ -1566,7 +1566,7 @@ Constant to set/get a body's angular dampening factor. - This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. + Represents the size of the [enum BodyParameter] enum. Constant to set/get the current transform matrix of the body. diff --git a/doc/classes/ProceduralSky.xml b/doc/classes/ProceduralSky.xml index 97ad1efa933..68deb5aff4b 100644 --- a/doc/classes/ProceduralSky.xml +++ b/doc/classes/ProceduralSky.xml @@ -46,7 +46,7 @@ Color of the sun. - How quickly the sun fades away between [member sun_angle_min] and [member sun_angle_max] + How quickly the sun fades away between [member sun_angle_min] and [member sun_angle_max]. Amount of energy contribution from the sun. @@ -58,7 +58,7 @@ The direction of the sun using polar coordinates. - Size of [Texture] that the ProceduralSky will generate. + Size of [Texture] that the ProceduralSky will generate. The size is set using [enum TextureSize]. @@ -73,6 +73,7 @@ + Represents the size of the [enum TextureSize] enum. diff --git a/doc/classes/ResourceImporter.xml b/doc/classes/ResourceImporter.xml new file mode 100644 index 00000000000..e0c0aa9a479 --- /dev/null +++ b/doc/classes/ResourceImporter.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/doc/classes/Sky.xml b/doc/classes/Sky.xml index ffd8c3fdeee..a5e065203ea 100644 --- a/doc/classes/Sky.xml +++ b/doc/classes/Sky.xml @@ -12,9 +12,9 @@ - The Sky's radiance map size. - The higher the radiance map size, the more detailed the lighting from the Sky will be. - See RADIANCE_SIZE_* constants for values. Default size is RADIANCE_SIZE_512. + The [Sky]'s radiance map size. + The higher the radiance map size, the more detailed the lighting from the [Sky] will be. + See [enum RadianceSize] constants for values. Default size is [constant RADIANCE_SIZE_512]. @@ -40,7 +40,7 @@ Radiance texture size is 2048x2048 pixels. - Radiance texture size is the largest size it can be. + Represents the size of the [enum RadianceSize] enum. diff --git a/doc/classes/SliderJoint.xml b/doc/classes/SliderJoint.xml index 997930eaa31..75406df39f2 100644 --- a/doc/classes/SliderJoint.xml +++ b/doc/classes/SliderJoint.xml @@ -149,7 +149,7 @@ The amount of damping of the rotation across axes orthogonal to the slider. - End flag of PARAM_* constants, used internally. + Represents the size of the [enum Param] enum. diff --git a/doc/classes/SpatialMaterial.xml b/doc/classes/SpatialMaterial.xml index f0df5fac4ae..45d92aa0c35 100644 --- a/doc/classes/SpatialMaterial.xml +++ b/doc/classes/SpatialMaterial.xml @@ -295,6 +295,7 @@ + Represents the size of the [enum TextureParam] enum. @@ -325,6 +326,7 @@ + Represents the size of the [enum Feature] enum. Default blend mode. @@ -395,6 +397,7 @@ + Represents the size of the [enum Flags] enum. Default diffuse scattering algorithm. diff --git a/doc/classes/SpriteBase3D.xml b/doc/classes/SpriteBase3D.xml index 50e00fe3331..237a8c9d129 100644 --- a/doc/classes/SpriteBase3D.xml +++ b/doc/classes/SpriteBase3D.xml @@ -70,7 +70,7 @@ If set, texture can be seen from the back as well, if not, it is invisible when looking at it from behind. - Used internally to mark the end of the Flags section. + Represents the size of the [enum DrawFlags] enum. diff --git a/doc/classes/Tabs.xml b/doc/classes/Tabs.xml index 8c7d657b4a5..b1105f231d7 100644 --- a/doc/classes/Tabs.xml +++ b/doc/classes/Tabs.xml @@ -234,6 +234,7 @@ Align the tabs to the right. + Represents the size of the [enum TabAlign] enum. @@ -242,6 +243,7 @@ + Represents the size of the [enum CloseButtonDisplayPolicy] enum. diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index 53e66cee74a..de3cdbbe13b 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -331,7 +331,7 @@ - Enum limiter. Do not use it directly. + Represents the size of the [enum ShadowAtlasQuadrantSubdiv] enum. Amount of objects in frame. @@ -352,7 +352,7 @@ Amount of draw calls in frame. - Enum limiter. Do not use it directly. + Represents the size of the [enum RenderInfo] enum. Objects are displayed normally. diff --git a/doc/classes/VisibilityEnabler.xml b/doc/classes/VisibilityEnabler.xml index 910ca033d14..4b33d1ebce9 100644 --- a/doc/classes/VisibilityEnabler.xml +++ b/doc/classes/VisibilityEnabler.xml @@ -26,6 +26,7 @@ This enabler will freeze [RigidBody] nodes. + Represents the size of the [enum Enabler] enum. diff --git a/doc/classes/VisibilityEnabler2D.xml b/doc/classes/VisibilityEnabler2D.xml index 3943eca7f59..b3d41d1fce9 100644 --- a/doc/classes/VisibilityEnabler2D.xml +++ b/doc/classes/VisibilityEnabler2D.xml @@ -49,6 +49,7 @@ + Represents the size of the [enum Enabler] enum. diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml index 65675bbd0d8..d5e467405e8 100644 --- a/doc/classes/VisualServer.xml +++ b/doc/classes/VisualServer.xml @@ -4020,7 +4020,7 @@ Shader is a particle shader. - Marks maximum of the shader types array. used internally. + Represents the size of the [enum ShaderMode] enum. Array is a vertex array. @@ -4050,7 +4050,7 @@ Array is index array. - Marks the maximum of the array types. Used internally. + Represents the size of the [enum ArrayType] enum. Flag used to mark a vertex array. @@ -4135,7 +4135,7 @@ Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle). - Marks the primitive types endpoint. used internally. + Represents the size of the [enum PrimitiveType] enum. @@ -4186,7 +4186,7 @@ - The light parameters endpoint. Used internally. + Represents the size of the [enum LightParam] enum. @@ -4263,7 +4263,7 @@ - Marks end of VIEWPORT_RENDER_INFO* constants. Used internally. + Represents the size of the [enum ViewportRenderInfo] enum. Debug draw is disabled. Default setting. @@ -4310,7 +4310,7 @@ - The max value for INSTANCE_* constants, used internally. + Represents the size of the [enum InstanceType] enum. A combination of the flags of geometry instances (mesh, multimesh, immediate and particles). @@ -4320,6 +4320,7 @@ + Represents the size of the [enum InstanceFlags] enum. @@ -4444,6 +4445,7 @@ + Represents the size of the [enum EnvironmentBG] enum. diff --git a/doc/classes/VisualShader.xml b/doc/classes/VisualShader.xml index 6d5f53d992d..0c9292930d8 100644 --- a/doc/classes/VisualShader.xml +++ b/doc/classes/VisualShader.xml @@ -194,6 +194,7 @@ + Represents the size of the [enum Type] enum. diff --git a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml index 21e8a38c16b..ea6ba7cf43b 100644 --- a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml +++ b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml @@ -213,7 +213,7 @@ [/codeblock] - The maximum value the [member function] property can have. + Represents the size of the [enum BuiltinFunc] enum. diff --git a/modules/visual_script/doc_classes/VisualScriptMathConstant.xml b/modules/visual_script/doc_classes/VisualScriptMathConstant.xml index 430f9ee7d45..fb4e423f0e0 100644 --- a/modules/visual_script/doc_classes/VisualScriptMathConstant.xml +++ b/modules/visual_script/doc_classes/VisualScriptMathConstant.xml @@ -45,6 +45,7 @@ Not a number: [code]nan[/code] + Represents the size of the [enum MathConstant] enum. diff --git a/scene/3d/visual_instance.cpp b/scene/3d/visual_instance.cpp index 99c86f04065..4bb4d180711 100644 --- a/scene/3d/visual_instance.cpp +++ b/scene/3d/visual_instance.cpp @@ -326,6 +326,7 @@ void GeometryInstance::_bind_methods() { BIND_ENUM_CONSTANT(SHADOW_CASTING_SETTING_SHADOWS_ONLY); BIND_ENUM_CONSTANT(FLAG_USE_BAKED_LIGHT); + BIND_ENUM_CONSTANT(FLAG_DRAW_NEXT_FRAME_IF_VISIBLE); BIND_ENUM_CONSTANT(FLAG_MAX); }