From e1e3fcc908b622b7ee63cc31ddfc2d385e9e8fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 3 Jun 2019 13:03:05 +0200 Subject: [PATCH] doc: Fix DocData.merge_from copying old setters and getters This is not necessary and means that some setters and getters can end up wrong if they are changed in the bindings but DocData does not update them when running --doctool. Fixes #29425. Co-authored-by: Bojidar Marinov --- doc/classes/AudioEffectReverb.xml | 2 +- doc/classes/Control.xml | 6 +++--- doc/classes/Environment.xml | 2 +- doc/classes/Polygon2D.xml | 2 +- doc/classes/TextEdit.xml | 2 +- editor/doc/doc_data.cpp | 3 --- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/doc/classes/AudioEffectReverb.xml b/doc/classes/AudioEffectReverb.xml index fde22c9238a7..8c9652eee2d2 100644 --- a/doc/classes/AudioEffectReverb.xml +++ b/doc/classes/AudioEffectReverb.xml @@ -21,7 +21,7 @@ High-pass filter passes signals with a frequency higher than a certain cutoff frequency and attenuates signals with frequencies lower than the cutoff frequency. Value can range from 0 to 1. Default value: [code]0[/code]. - + Output percent of predelay. Value can range from 0 to 1. Default value: [code]1[/code]. diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index ec9d5bc3dca4..fea706987c2b 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -714,7 +714,7 @@ Enables whether rendering of children should be clipped to this control's rectangle. If [code]true[/code], parts of a child which would be visibly outside of this control's rectangle will not be rendered. - + The node's global position, relative to the world (usually to the top-left corner of the window). @@ -723,7 +723,7 @@ By default, the node's pivot is its top-left corner. When you change its [member rect_scale], it will scale around this pivot. Set this property to [member rect_size] / 2 to center the pivot in the node's rectangle. - + The node's position, relative to its parent. It corresponds to the rectangle's top-left corner. The property is not affected by [member rect_pivot_offset]. @@ -732,7 +732,7 @@ The node's scale, relative to its [member rect_size]. Change this property to scale the node around its [member rect_pivot_offset]. - + The size of the node's bounding rectangle, in pixels. [Container] nodes update this property automatically. diff --git a/doc/classes/Environment.xml b/doc/classes/Environment.xml index 5f8dc552d7be..2a4ab4ce0de0 100644 --- a/doc/classes/Environment.xml +++ b/doc/classes/Environment.xml @@ -217,7 +217,7 @@ - + diff --git a/doc/classes/Polygon2D.xml b/doc/classes/Polygon2D.xml index 7098f5f0714b..8f434e549982 100644 --- a/doc/classes/Polygon2D.xml +++ b/doc/classes/Polygon2D.xml @@ -109,7 +109,7 @@ Amount to offset the polygon's [code]texture[/code]. If [code](0, 0)[/code] the texture's origin (its top-left corner) will be placed at the polygon's [code]position[/code]. - + The texture's rotation in radians. diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index eb70d7a1c3ad..62e8a2c34fc4 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -388,7 +388,7 @@ If [code]true[/code], the "tab" character will have a visible representation. - + If [code]true[/code], the fold gutter is visible. This enables folding groups of indented lines. diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index c2a492bc9a23..7d2159d3659f 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -136,9 +136,6 @@ void DocData::merge_from(const DocData &p_data) { const PropertyDoc &pf = cf.properties[j]; p.description = pf.description; - p.setter = pf.setter; - p.getter = pf.getter; - break; } }