mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
CR fixes
This commit is contained in:
parent
1d3006028a
commit
5ea84fb952
3 changed files with 5 additions and 6 deletions
|
@ -2273,10 +2273,9 @@ bool EntityScriptingInterface::verifyStaticCertificateProperties(const QUuid& en
|
|||
return result;
|
||||
}
|
||||
|
||||
const EntityPropertyInfo EntityScriptingInterface::getPropertyInfo(const QScriptValue& property) const {
|
||||
const QString name = property.toString();
|
||||
const EntityPropertyInfo EntityScriptingInterface::getPropertyInfo(const QString& propertyName) const {
|
||||
EntityPropertyInfo propertyInfo;
|
||||
EntityItemProperties::getPropertyInfo(name, propertyInfo);
|
||||
EntityItemProperties::getPropertyInfo(propertyName, propertyInfo);
|
||||
return propertyInfo;
|
||||
}
|
||||
|
||||
|
|
|
@ -1699,11 +1699,11 @@ public slots:
|
|||
* Get information about entity properties including a minimum to maximum range for numerical properties
|
||||
* as well as property enum value.
|
||||
* @function Entities.getPropertyInfo
|
||||
* @param {string} property - The property name to get the information for.
|
||||
* @param {string} propertyName - The name of the property to get the information for.
|
||||
* @returns {Entities.EntityPropertyInfo} The information data including propertyEnum, minimum, and maximum
|
||||
* if the property can be found, otherwise an empty object.
|
||||
*/
|
||||
Q_INVOKABLE const EntityPropertyInfo getPropertyInfo(const QScriptValue& property) const;
|
||||
Q_INVOKABLE const EntityPropertyInfo getPropertyInfo(const QString& propertyName) const;
|
||||
|
||||
signals:
|
||||
/**jsdoc
|
||||
|
|
|
@ -420,7 +420,7 @@ const DEFAULT_ENTITY_PROPERTIES = {
|
|||
emitOrientation: { x: 0, y: 0, z: 0, w: 1 },
|
||||
emitterShouldTrail: true,
|
||||
particleRadius: 0.25,
|
||||
radiusFinish: 0.1,
|
||||
radiusStart: 0,
|
||||
radiusSpread: 0,
|
||||
particleColor: {
|
||||
red: 255,
|
||||
|
|
Loading…
Reference in a new issue