mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-17 05:15:45 -05:00
set map early when creating new events because some types need map info for defaults
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user