Skip to content

Commit 0139c92

Browse files
Fixed issue with background contours only drawing one
1 parent 55a780a commit 0139c92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/functions.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,18 @@ end
191191

192192
function update_background_plot(h2_bg, background_contours, sliceIndex)
193193
if !isempty(background_contours)
194+
V_plot3D = Vector{Point{3,Float64}}()
195+
V_nan = Point{3,Float64}(NaN, NaN, NaN)
194196
for filename_bg in background_contours
195-
V_plot3D = Vector{Point{3,Float64}}()
196-
V_nan = Point{3,Float64}(NaN, NaN, NaN)
197197
contourSet_imported, _ = load_contours(filename_bg)
198198
if !isempty(contourSet_imported[sliceIndex])
199199
for V in contourSet_imported[sliceIndex]
200200
append!(V_plot3D, V)
201201
push!(V_plot3D, V_nan)
202202
end
203203
end
204-
h2_bg[1] = V_plot3D
205204
end
205+
h2_bg[1] = V_plot3D
206206
end
207207
end
208208

0 commit comments

Comments
 (0)