// SoundEffect object, exposed to qml only, not interface JavaScript.
// This is used to play spatial sound effects on tablets/web entities from within QML.
@@ -34,7 +32,7 @@ public:
float getVolume() const;
void setVolume(float volume);
- Q_INVOKABLE void play(QVariant position);
+ Q_INVOKABLE void play(const QVariant& position);
protected:
QUrl _url;
float _volume { 1.0f };
diff --git a/scripts/system/edit.js b/scripts/system/edit.js
index ca2918a108..894ea2b696 100644
--- a/scripts/system/edit.js
+++ b/scripts/system/edit.js
@@ -2524,7 +2524,7 @@ var PropertiesTool = function (opts) {
createToolsWindow.webEventReceived.addListener(this, onWebEventReceived);
- webView.webEventReceived.connect(onWebEventReceived);
+ webView.webEventReceived.connect(this, onWebEventReceived);
return that;
};
diff --git a/tools/jsdoc/hifi-jsdoc-template/tmpl/signalList.tmpl b/tools/jsdoc/hifi-jsdoc-template/tmpl/signalList.tmpl
index b9a0e0ca86..c5fdefc7d8 100644
--- a/tools/jsdoc/hifi-jsdoc-template/tmpl/signalList.tmpl
+++ b/tools/jsdoc/hifi-jsdoc-template/tmpl/signalList.tmpl
@@ -13,8 +13,8 @@ var self = this;
-
-
+
+
diff --git a/tools/jsdoc/plugins/hifi.js b/tools/jsdoc/plugins/hifi.js
index b4350ddbdb..b2b91de1c8 100644
--- a/tools/jsdoc/plugins/hifi.js
+++ b/tools/jsdoc/plugins/hifi.js
@@ -121,23 +121,14 @@ exports.handlers = {
e.doclet.description = (e.doclet.description ? e.doclet.description : "") + availableIn;
}
}
+
+ if (e.doclet.kind === "function" && e.doclet.returns && e.doclet.returns[0].type
+ && e.doclet.returns[0].type.names[0] === "Signal") {
+ e.doclet.kind = "signal";
+ }
}
};
-// Functions for adding @signal custom tag
-/** @private */
-function setDocletKindToTitle(doclet, tag) {
- doclet.addTag( 'kind', tag.title );
-}
-
-function setDocletNameToValue(doclet, tag) {
- if (tag.value && tag.value.description) { // as in a long tag
- doclet.addTag('name', tag.value.description);
- } else if (tag.text) { // or a short tag
- doclet.addTag('name', tag.text);
- }
-}
-
// Define custom hifi tags here
exports.defineTags = function (dictionary) {
@@ -168,14 +159,5 @@ exports.defineTags = function (dictionary) {
doclet.hifiServerEntity = true;
}
});
-
- // @signal
- dictionary.defineTag("signal", {
- mustHaveValue: true,
- onTagged: function(doclet, tag) {
- setDocletKindToTitle(doclet, tag);
- setDocletNameToValue(doclet, tag);
- }
- });
-};
\ No newline at end of file
+};
diff --git a/tools/unity-avatar-exporter/Assets/Editor/AvatarExporter/AvatarExporter.cs b/tools/unity-avatar-exporter/Assets/Editor/AvatarExporter/AvatarExporter.cs
index c5bc5eb84e..87f401d478 100644
--- a/tools/unity-avatar-exporter/Assets/Editor/AvatarExporter/AvatarExporter.cs
+++ b/tools/unity-avatar-exporter/Assets/Editor/AvatarExporter/AvatarExporter.cs
@@ -17,7 +17,7 @@ using System.Text.RegularExpressions;
class AvatarExporter : MonoBehaviour {
// update version number for every PR that changes this file, also set updated version in README file
- static readonly string AVATAR_EXPORTER_VERSION = "0.3.5";
+ static readonly string AVATAR_EXPORTER_VERSION = "0.3.6";
static readonly float HIPS_GROUND_MIN_Y = 0.01f;
static readonly float HIPS_SPINE_CHEST_MIN_SEPARATION = 0.001f;
@@ -56,6 +56,8 @@ class AvatarExporter : MonoBehaviour {
"2018.1.0f2",
"2017.4.18f1",
"2017.4.17f1",
+ "2017.4.16f1",
+ "2017.4.15f1",
};
static readonly Dictionary HUMANOID_TO_HIFI_JOINT_NAME = new Dictionary {
@@ -1159,8 +1161,7 @@ class AvatarExporter : MonoBehaviour {
static string GetMaterialTexture(Material material, string textureProperty) {
// ensure the texture property name exists in this material and return its texture directory path if so
- string[] textureNames = material.GetTexturePropertyNames();
- if (Array.IndexOf(textureNames, textureProperty) >= 0) {
+ if (material.HasProperty(textureProperty)) {
Texture texture = material.GetTexture(textureProperty);
if (texture) {
foreach (var textureDependency in textureDependencies) {
@@ -1214,10 +1215,10 @@ class AvatarExporter : MonoBehaviour {
}
if (unsupportedShaderMaterials.Count > 1) {
warnings += "The materials " + unsupportedShaders + " are using an unsupported shader. " +
- "Please change them to a Standard shader type.\n\n";
+ "We recommend you change them to a Standard shader type.\n\n";
} else if (unsupportedShaderMaterials.Count == 1) {
warnings += "The material " + unsupportedShaders + " is using an unsupported shader. " +
- "Please change it to a Standard shader type.\n\n";
+ "We recommend you change it to a Standard shader type.\n\n";
}
}
diff --git a/tools/unity-avatar-exporter/Assets/README.txt b/tools/unity-avatar-exporter/Assets/README.txt
index 767c093800..5b228ebf75 100644
--- a/tools/unity-avatar-exporter/Assets/README.txt
+++ b/tools/unity-avatar-exporter/Assets/README.txt
@@ -1,6 +1,6 @@
High Fidelity, Inc.
Avatar Exporter
-Version 0.3.5
+Version 0.3.6
Note: It is recommended to use Unity versions between 2017.4.17f1 and 2018.2.12f1 for this Avatar Exporter.
diff --git a/tools/unity-avatar-exporter/avatarExporter.unitypackage b/tools/unity-avatar-exporter/avatarExporter.unitypackage
index 3e2d6f2aed..05ad49baa6 100644
Binary files a/tools/unity-avatar-exporter/avatarExporter.unitypackage and b/tools/unity-avatar-exporter/avatarExporter.unitypackage differ
|