| 541 | } |
| 542 | |
| 543 | void MapEditor::Initialize(SceneGraph* s) { |
| 544 | ClearUndoHistory(); |
| 545 | DeleteEditors(); |
| 546 | InitializeColorHistory(); |
| 547 | scenegraph_ = s; |
| 548 | sky_editor_ = new SkyEditor(s); |
| 549 | sky_editor_->flare = scenegraph_->flares.MakeFlare(vec3(0.0f), 1.0f, true); |
| 550 | imui_context.Init(); |
| 551 | control_editor_info.face_selected_ = -1; |
| 552 | control_editor_info.face_display_.facing = false; |
| 553 | control_editor_info.face_display_.plane = false; |
| 554 | } |
| 555 | |
| 556 | void MapEditor::UpdateEnabledObjects() { |
| 557 | for (auto obj : scenegraph_->objects_) { |