Skip to content

Commit

Permalink
[editor] creating a new light auto-selects it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nertsal committed Oct 18, 2024
1 parent 039cfc8 commit d396958
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/action/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ impl LevelEditor {
let event_i = self.level.events.len();
self.level.events.push(event);

self.selected_light = Some(LightId { event: event_i });
self.state = State::Waypoints {
light_id: LightId { event: event_i },
state: WaypointsState::New,
Expand Down

0 comments on commit d396958

Please sign in to comment.