Skip to content

Commit 5cbbf83

Browse files
Fix mistakes from the line update (#786)
Choice-arcs on the first indentation level would be messed up. Also the draw call would just return if two choice events followed each other. Now it won't.
1 parent 30aa795 commit 5cbbf83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/dialogic/Editor/TimelineEditor/TimelineArea.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func _draw():
161161
var end_angle = 185
162162

163163
if event.current_indent_level == 1:
164-
arc_start_x = (event.indent_size * (event.current_indent_level)) + (7.5 * _scale)
164+
arc_start_x = (event.indent_size * (event.current_indent_level)) + (12.5 * _scale)
165165

166166
draw_arc(
167167
Vector2(arc_start_x, arc_start_y-scroll_vertical)+event.rect_position,
@@ -176,7 +176,7 @@ func _draw():
176176

177177
# Don't draw arc if next event is another choice event
178178
if next_event.event_name == "Choice" or next_event.event_name == "End Branch":
179-
return
179+
continue
180180

181181
# Connecting with the next event
182182

0 commit comments

Comments
 (0)