mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 03:01:52 +02:00
remove restriction to be avatar only
This commit is contained in:
parent
a10f7932bd
commit
6a971e1362
2 changed files with 4 additions and 7 deletions
|
@ -37,14 +37,11 @@ void WalletScriptingInterface::setWalletStatus(const uint& status) {
|
|||
emit DependencyManager::get<Wallet>()->walletStatusResult(status);
|
||||
}
|
||||
|
||||
void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUuid& entityID) {
|
||||
void WalletScriptingInterface::proveEntityOwnershipVerification(const QUuid& entityID) {
|
||||
EntityItemProperties entityProperties = DependencyManager::get<EntityScriptingInterface>()->getEntityProperties(entityID, _entityPropertyFlags);
|
||||
if (!entityID.isNull() && entityProperties.getMarketplaceID().length() > 0) {
|
||||
if (!entityProperties.getClientOnly()) {
|
||||
qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is not an avatar entity";
|
||||
emit DependencyManager::get<ContextOverlayInterface>()->ownershipVerificationFailed(entityID);
|
||||
return;
|
||||
}
|
||||
DependencyManager::get<ContextOverlayInterface>()->requestOwnershipVerification(entityID);
|
||||
} else {
|
||||
qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is null or not a marketplace item";
|
||||
}
|
||||
}
|
|
@ -40,7 +40,7 @@ public:
|
|||
|
||||
Q_INVOKABLE void refreshWalletStatus();
|
||||
Q_INVOKABLE uint getWalletStatus() { return _walletStatus; }
|
||||
Q_INVOKABLE void proveAvatarEntityOwnershipVerification(const QUuid& entityID);
|
||||
Q_INVOKABLE void proveEntityOwnershipVerification(const QUuid& entityID);
|
||||
// setWalletStatus() should never be made Q_INVOKABLE. If it were,
|
||||
// scripts could cause the Wallet to incorrectly report its status.
|
||||
void setWalletStatus(const uint& status);
|
||||
|
|
Loading…
Reference in a new issue