MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Initialize

Method Initialize

Source/Editors/map_editor.cpp:543–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void 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
556void MapEditor::UpdateEnabledObjects() {
557 for (auto obj : scenegraph_->objects_) {

Callers

nothing calls this directly

Calls 3

MakeFlareMethod · 0.80
vec3Class · 0.50
InitMethod · 0.45

Tested by

no test coverage detected