History

Merge branch 'master' of https://github.com/highfidelity/hifi into android

Atlante45 committed 11 years ago

Commit 4562c292 parents 22f7cbc 1c89e2761 files · +1808 −1608Browse files

Showing the changes to interface/src/Application.cpp (1 of 61 files). Show all

Unified · Split

interface/src/Application.cpp+6−4
@@ -2790,8 +2790,7 @@ void Application::displaySide(Camera& theCamera, bool selfAvatarOnly, RenderArgs · 2789 unmodified lines
27902790 if (!selfAvatarOnly) {
27912791 // draw a red sphere
27922792 float originSphereRadius = 0.05f;
2793− glColor3f(1,0,0);
2794− DependencyManager::get<GeometryCache>()->renderSphere(originSphereRadius, 15, 15);
2793+ DependencyManager::get<GeometryCache>()->renderSphere(originSphereRadius, 15, 15, glm::vec4(1.0f, 0.0f, 0.0f, 1.0f));
27952794
27962795 // also, metavoxels
27972796 if (Menu::getInstance()->isOptionChecked(MenuOption::Metavoxels)) {
@@ -3398,8 +3397,10 @@ void Application::loadScripts() { · 600 unmodified lines
33983397 }
33993398
34003399 void Application::clearScriptsBeforeRunning() {
3401− // clears all scripts from the settings
3402− SettingHandles::SettingHandle<QVariant>(SETTINGS_KEY).remove();
3400+ // clears all scripts from the settingsSettings settings;
3401+ Settings settings;
3402+ settings.beginWriteArray(SETTINGS_KEY);
3403+ settings.remove("");
34033404 }
34043405
34053406 void Application::saveScripts() {
@@ -3411,6 +3412,7 @@ void Application::saveScripts() { · 5 unmodified lines
34113412 // Saves all currently running user-loaded scripts
34123413 Settings settings;
34133414 settings.beginWriteArray(SETTINGS_KEY);
3415+ settings.remove("");
34143416 int i = 0;
34153417 for (auto it = runningScripts.begin(); it != runningScripts.end(); ++it) {
34163418 if (getScriptEngine(*it)->isUserLoaded()) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t