mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 10:31:58 +02:00
Merge pull request #12019 from Delanir/C10594
Case 10594 - Fix entity property href not being able to reset (empty) ...
This commit is contained in:
commit
2fddace71e
1 changed files with 4 additions and 1 deletions
|
@ -965,7 +965,10 @@ void EntityItem::setMass(float mass) {
|
||||||
|
|
||||||
void EntityItem::setHref(QString value) {
|
void EntityItem::setHref(QString value) {
|
||||||
auto href = value.toLower();
|
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;
|
return;
|
||||||
}
|
}
|
||||||
withWriteLock([&] {
|
withWriteLock([&] {
|
||||||
|
|
Loading…
Reference in a new issue