From 24f17f2208638612f93bab2e2f1671d380b91a9d 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 (cherry picked from commit e1e3fcc908b622b7ee63cc31ddfc2d385e9e8fd8) --- doc/classes/AudioEffectReverb.xml | 2 +- doc/classes/Control.xml | 6 +++--- doc/classes/Environment.xml | 2 +- doc/classes/Polygon2D.xml | 2 +- editor/doc/doc_data.cpp | 3 --- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/doc/classes/AudioEffectReverb.xml b/doc/classes/AudioEffectReverb.xml index eaf6e970f9c..20c423f927c 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 1d44cde3ccb..4655843099b 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -684,7 +684,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). @@ -693,7 +693,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]. @@ -702,7 +702,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 06e96bf10f7..54830d8275f 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 e85ed061600..cd16f7687cc 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/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 4236d5fe0bb..30d2af3a72a 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; } }