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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user