remove ui namespace which is not really used, move CameraData in camera_modes.h to avoid the inclusion of canva.h
This commit is contained in:
@@ -20,11 +20,11 @@ void ActionManager::undo()
|
||||
return;
|
||||
|
||||
I.m_redos.emplace(I.m_actions.top()->get_redo());
|
||||
I.m_redos.top()->was_saved = !ui::Canvas::I->m_unsaved;
|
||||
I.m_redos.top()->was_saved = !Canvas::I->m_unsaved;
|
||||
|
||||
I.m_actions.top()->undo();
|
||||
I.m_memory -= I.m_actions.top()->memory();
|
||||
ui::Canvas::I->m_unsaved = !I.m_actions.top()->was_saved;
|
||||
Canvas::I->m_unsaved = !I.m_actions.top()->was_saved;
|
||||
I.m_actions.pop();
|
||||
//LOG("History: %.2f KB", I.m_memory / 1024.f);
|
||||
App::I.update_memory_usage(I.m_memory);
|
||||
@@ -37,11 +37,11 @@ void ActionManager::redo()
|
||||
return;
|
||||
|
||||
I.m_actions.emplace(I.m_redos.top()->get_redo());
|
||||
I.m_actions.top()->was_saved = !ui::Canvas::I->m_unsaved;
|
||||
I.m_actions.top()->was_saved = !Canvas::I->m_unsaved;
|
||||
I.m_memory += I.m_actions.top()->memory();
|
||||
|
||||
I.m_redos.top()->undo();
|
||||
ui::Canvas::I->m_unsaved = !I.m_redos.top()->was_saved;
|
||||
Canvas::I->m_unsaved = !I.m_redos.top()->was_saved;
|
||||
I.m_redos.pop();
|
||||
//LOG("History: %.2f KB", I.m_memory / 1024.f);
|
||||
App::I.update_memory_usage(I.m_memory);
|
||||
|
||||
Reference in New Issue
Block a user