Skip to content

Commit d6f695d

Browse files
committed
quick fix
put a basic default runtime data table for the initialize case
1 parent e646f83 commit d6f695d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lua/pac3/editor/client/proxy_graphing.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ for ease,f in pairs(math.ease) do
99
end
1010
end
1111
do -- grapher - line chart
12-
local current_runtime_data = {}
12+
local current_runtime_data = {
13+
output_bounds = {0, 10},
14+
step = 0,
15+
scroll = false,
16+
input_bounds = {-10,10},
17+
}
1318
local sampled_data = {}
1419
local mouse_hovering = false
1520
local relative_mx = 0
@@ -953,7 +958,7 @@ do -- grapher - line chart
953958
end
954959
if pace.reset_proxygraph then points_cache = {} pace.reset_proxygraph = nil end
955960
local input_data = SampleData(tracked_proxy, graph_x_variable, runtime_data)
956-
961+
957962
if runtime_data.nils then
958963
if runtime_data.nils.x and graph_axis == "x" then graph_axis = "y" graph_title = "nil output on x, switched to y" end
959964
if runtime_data.nils.y and graph_axis == "y" then graph_axis = "z" graph_title = "nil output on y, switched to z" end

0 commit comments

Comments
 (0)