summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2019-11-24 11:00:02 +0100
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2019-11-28 22:57:27 +0100
commite6ebc43d725710f69094afa6ff47d91e50cce1ad (patch)
tree08a53f41b9032f11507f9657fae457cd1c675e78 /doc
parent636bc5c32f07050fb387a7f8f5f78f7dc9aef7be (diff)
Fixed antialiased option for Polygon2D / Line2D
Polygon2D: The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing. Line2D: Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly. Fixes #26823
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Line2D.xml3
-rw-r--r--doc/classes/VisualServer.xml2
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/classes/Line2D.xml b/doc/classes/Line2D.xml
index 3cb04b8b89..b11f3e27e5 100644
--- a/doc/classes/Line2D.xml
+++ b/doc/classes/Line2D.xml
@@ -66,6 +66,9 @@
</method>
</methods>
<members>
+ <member name="antialiased" type="bool" setter="set_antialiased" getter="get_antialiased" default="false">
+ If [code]true[/code], the line's border will be anti-aliased.
+ </member>
<member name="begin_cap_mode" type="int" setter="set_begin_cap_mode" getter="get_begin_cap_mode" enum="Line2D.LineCapMode" default="0">
Controls the style of the line's first point. Use [code]LINE_CAP_*[/code] constants.
</member>
diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml
index 895aba2473..f1926834ad 100644
--- a/doc/classes/VisualServer.xml
+++ b/doc/classes/VisualServer.xml
@@ -411,6 +411,8 @@
</argument>
<argument index="9" name="normal_map" type="RID">
</argument>
+ <argument index="10" name="antialiased" type="bool" default="false">
+ </argument>
<description>
</description>
</method>