mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user