Fixed visual bugs, added stud snapping

Hope I've done this properly. Stud snapping is primitive and needs work done.
This commit is contained in:
unknown
2021-03-16 13:24:47 -04:00
parent d03e78a648
commit 3de82eb64d
19 changed files with 3263 additions and 72 deletions

View File

@@ -153,7 +153,6 @@ void Application::navigateToolbox(std::string path)
void Application::deleteInstance()
{
int deletedInstances = 0;
if(g_selectedInstances.size() > 0)
{
size_t undeletable = 0;
@@ -161,7 +160,7 @@ void Application::deleteInstance()
{
if(g_selectedInstances.at(0)->canDelete)
{
deletedInstances++;
AudioPlayer::playSound(GetFileInPath("/content/sounds/pageturn.wav"));
Instance* selectedInstance = g_selectedInstances.at(0);
selectedInstance->setParent(NULL);
delete selectedInstance;
@@ -174,8 +173,6 @@ void Application::deleteInstance()
}
}
}
if(deletedInstances > 0)
AudioPlayer::playSound(GetFileInPath("/content/sounds/pageturn.wav"));
if(g_selectedInstances.size() == 0)
g_usableApp->_propWindow->ClearProperties();
}
@@ -544,6 +541,12 @@ void Application::setMode(int mode)
{
_mode = mode;
}
void Application::unSetMode()
{
_mode = NULL;
}
int Application::getMode()
{
return _mode;