Skip to content

Commit

Permalink
Add source path/line number to event when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
jrb0001 committed Dec 31, 2024
1 parent 58729cc commit 9f71491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/dialogic/Resources/TimelineResourceSaver.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func _save(resource: Resource, path: String = '', _flags: int = 0) -> Error:
for idx in range(0, len(resource.events)):
if resource.events[idx]:
var event: DialogicEvent = resource.events[idx]
event.source_path = resource.resource_path
event.source_line_number = timeline_as_text.count("\n") + 1
if event.event_name == 'End Branch':
indent -=1
continue
Expand Down

0 comments on commit 9f71491

Please sign in to comment.