fenix-hub / godot-engine.easy-charts

A Godot Engine addon for plotting general purpose charts. A collection of Control, 2D and 3D Nodes to plot every chart possible.
MIT License
648 stars 48 forks source link

[BUG] function_type.gd:34 @ _draw(): The draw_rect() "width" argument has no effect when "filled" is "true". #106

Open AmyGilhespy opened 6 months ago

AmyGilhespy commented 6 months ago

Describe the bug W 0:01:08:0375 function_type.gd:34 @ _draw(): The draw_rect() "width" argument has no effect when "filled" is "true". <C++ Source> scene/main/canvas_item.cpp:687 @ draw_rect()

function_type.gd:34 @ _draw() **To Reproduce** Make a pie chart. **Expected behavior** No warnings. **Screenshots** ![image](https://github.com/fenix-hub/godot-engine.easy-charts/assets/120238507/d11e6c39-192f-4802-8808-5b0e154d5739) **Desktop (please complete the following information):** - OS: Windows - Godot Engine Version 4.2.2-mono - Plugin Version v24.05.06 **Additional context** Just remove the width argument when you're using filled rects. See the docs: https://docs.godotengine.org/en/stable/classes/class_canvasitem.html#class-canvasitem-method-draw-rect
AmyGilhespy commented 6 months ago

In function_type.gd, lines 36 and 47 seem to be affected.