mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:57:30 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi
This commit is contained in:
commit
5061d2781c
6 changed files with 25 additions and 14 deletions
4
BUILD.md
4
BUILD.md
|
@ -3,7 +3,7 @@ Dependencies
|
||||||
* [cmake](http://www.cmake.org/cmake/resources/software.html) ~> 2.8.11
|
* [cmake](http://www.cmake.org/cmake/resources/software.html) ~> 2.8.11
|
||||||
* [Qt](http://qt-project.org/downloads) ~> 5.2.0
|
* [Qt](http://qt-project.org/downloads) ~> 5.2.0
|
||||||
* [zLib](http://www.zlib.net/) ~> 1.2.8
|
* [zLib](http://www.zlib.net/) ~> 1.2.8
|
||||||
* [glm](http://glm.g-truc.net/0.9.5/index.html) ~> 0.9.5.0
|
* [glm](http://glm.g-truc.net/0.9.5/index.html) ~> 0.9.5.2
|
||||||
* [qxmpp](https://code.google.com/p/qxmpp/) ~> 0.7.6
|
* [qxmpp](https://code.google.com/p/qxmpp/) ~> 0.7.6
|
||||||
|
|
||||||
#####Linux only
|
#####Linux only
|
||||||
|
@ -142,4 +142,4 @@ If you need to debug Interface, you can run interface from within Visual Studio
|
||||||
####Debugging Interface
|
####Debugging Interface
|
||||||
* In the Solution Explorer, right click interface and click Set as StartUp Project
|
* In the Solution Explorer, right click interface and click Set as StartUp Project
|
||||||
* Set the "Working Directory" for the Interface debugging sessions to the Debug output directory so that your application can load resources. Do this: right click interface and click Properties, choose Debugging from Configuration Properties, set Working Directory to .\Debug
|
* Set the "Working Directory" for the Interface debugging sessions to the Debug output directory so that your application can load resources. Do this: right click interface and click Properties, choose Debugging from Configuration Properties, set Working Directory to .\Debug
|
||||||
* Now you can run and debug interface through Visual Studio
|
* Now you can run and debug interface through Visual Studio
|
||||||
|
|
|
@ -23,7 +23,7 @@ Running Interface
|
||||||
When you launch interface, you will automatically connect to our default domain: "root.highfidelity.io".
|
When you launch interface, you will automatically connect to our default domain: "root.highfidelity.io".
|
||||||
|
|
||||||
If you don't see anything, make sure your preferences are pointing to
|
If you don't see anything, make sure your preferences are pointing to
|
||||||
root.highfidelity.io, if you still have no luck it's possible our servers are
|
root.highfidelity.io (set your domain via Cmnd+D/Cntrl+D), if you still have no luck it's possible our servers are
|
||||||
simply down; if you're experiencing a major bug, let us know by adding an issue to this repository.
|
simply down; if you're experiencing a major bug, let us know by adding an issue to this repository.
|
||||||
Make sure to include details about your computer and how to reproduce the bug.
|
Make sure to include details about your computer and how to reproduce the bug.
|
||||||
|
|
||||||
|
|
|
@ -162,11 +162,11 @@ function flyWithHydra(deltaTime) {
|
||||||
if (thrustMultiplier < MAX_THRUST_MULTIPLIER) {
|
if (thrustMultiplier < MAX_THRUST_MULTIPLIER) {
|
||||||
thrustMultiplier *= 1 + (deltaTime * THRUST_INCREASE_RATE);
|
thrustMultiplier *= 1 + (deltaTime * THRUST_INCREASE_RATE);
|
||||||
}
|
}
|
||||||
var currentOrientation = MyAvatar.orientation;
|
var headOrientation = MyAvatar.headOrientation;
|
||||||
|
|
||||||
var front = Quat.getFront(currentOrientation);
|
var front = Quat.getFront(headOrientation);
|
||||||
var right = Quat.getRight(currentOrientation);
|
var right = Quat.getRight(headOrientation);
|
||||||
var up = Quat.getUp(currentOrientation);
|
var up = Quat.getUp(headOrientation);
|
||||||
|
|
||||||
var thrustFront = Vec3.multiply(front, MyAvatar.scale * THRUST_MAG_HAND_JETS *
|
var thrustFront = Vec3.multiply(front, MyAvatar.scale * THRUST_MAG_HAND_JETS *
|
||||||
thrustJoystickPosition.y * thrustMultiplier * deltaTime);
|
thrustJoystickPosition.y * thrustMultiplier * deltaTime);
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
<context>
|
<context>
|
||||||
<name>Application</name>
|
<name>Application</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="src/Application.cpp" line="1380"/>
|
<location filename="src/Application.cpp" line="1381"/>
|
||||||
<source>Export Voxels</source>
|
<source>Export Voxels</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="src/Application.cpp" line="1381"/>
|
<location filename="src/Application.cpp" line="1382"/>
|
||||||
<source>Sparse Voxel Octree Files (*.svo)</source>
|
<source>Sparse Voxel Octree Files (*.svo)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="src/Application.cpp" line="3617"/>
|
<location filename="src/Application.cpp" line="3623"/>
|
||||||
<source>Open Script</source>
|
<source>Open Script</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="src/Application.cpp" line="3618"/>
|
<location filename="src/Application.cpp" line="3624"/>
|
||||||
<source>JavaScript Files (*.js)</source>
|
<source>JavaScript Files (*.js)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -169,6 +169,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
|
||||||
_bytesPerSecond(0),
|
_bytesPerSecond(0),
|
||||||
_recentMaxPackets(0),
|
_recentMaxPackets(0),
|
||||||
_resetRecentMaxPacketsSoon(true),
|
_resetRecentMaxPacketsSoon(true),
|
||||||
|
_previousScriptLocation(),
|
||||||
_logger(new FileLogger(this))
|
_logger(new FileLogger(this))
|
||||||
{
|
{
|
||||||
// read the ApplicationInfo.ini file for Name/Version/Domain information
|
// read the ApplicationInfo.ini file for Name/Version/Domain information
|
||||||
|
@ -3610,12 +3611,20 @@ void Application::loadScript(const QString& scriptName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::loadDialog() {
|
void Application::loadDialog() {
|
||||||
// shut down and stop any existing script
|
QString suggestedName;
|
||||||
QString desktopLocation = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
|
||||||
QString suggestedName = desktopLocation.append("/script.js");
|
if (_previousScriptLocation.isEmpty()) {
|
||||||
|
QString desktopLocation = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
|
||||||
|
suggestedName = desktopLocation.append("/script.js");
|
||||||
|
} else {
|
||||||
|
suggestedName = _previousScriptLocation;
|
||||||
|
}
|
||||||
|
|
||||||
QString fileNameString = QFileDialog::getOpenFileName(_glWidget, tr("Open Script"), suggestedName,
|
QString fileNameString = QFileDialog::getOpenFileName(_glWidget, tr("Open Script"), suggestedName,
|
||||||
tr("JavaScript Files (*.js)"));
|
tr("JavaScript Files (*.js)"));
|
||||||
|
if (!fileNameString.isEmpty()) {
|
||||||
|
_previousScriptLocation = fileNameString;
|
||||||
|
}
|
||||||
|
|
||||||
loadScript(fileNameString);
|
loadScript(fileNameString);
|
||||||
}
|
}
|
||||||
|
|
|
@ -483,6 +483,8 @@ private:
|
||||||
ControllerScriptingInterface _controllerScriptingInterface;
|
ControllerScriptingInterface _controllerScriptingInterface;
|
||||||
QPointer<LogDialog> _logDialog;
|
QPointer<LogDialog> _logDialog;
|
||||||
|
|
||||||
|
QString _previousScriptLocation;
|
||||||
|
|
||||||
FileLogger* _logger;
|
FileLogger* _logger;
|
||||||
|
|
||||||
void checkVersion();
|
void checkVersion();
|
||||||
|
|
Loading…
Reference in a new issue