mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-17 15:16:00 -05:00
set map early when creating new events because some types need map info for defaults
This commit is contained in:
parent
c3a5e05f49
commit
33014830cd
|
|
@ -2125,6 +2125,7 @@ DraggablePixmapItem *Editor::addNewEvent(Event::Type type) {
|
|||
}
|
||||
if (!event) return nullptr;
|
||||
|
||||
event->setMap(this->map);
|
||||
event->setDefaultValues(this->project);
|
||||
|
||||
map->editHistory.push(new EventCreate(this, map, event));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user