mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
Fix entity property href not being able to reset (empty) once it was set with
the correct input for the first time.
This commit is contained in:
parent
cfd2097f36
commit
7ca4a21a91
1 changed files with 4 additions and 1 deletions
|
@ -961,7 +961,10 @@ void EntityItem::setMass(float mass) {
|
|||
|
||||
void EntityItem::setHref(QString value) {
|
||||
auto href = value.toLower();
|
||||
if (! (value.toLower().startsWith("hifi://")) ) {
|
||||
|
||||
// If the string has something and doesn't start with with "hifi://" it shouldn't be set
|
||||
// We allow the string to be empty, because that's the initial state of this property
|
||||
if ( !(value.toLower().startsWith("hifi://")) && !value.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
withWriteLock([&] {
|
||||
|
|
Loading…
Reference in a new issue