mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 01:12:48 +02:00
relax 'isWearable()' condition to match latest changes in 'master'
This commit is contained in:
parent
72a91668a5
commit
600d09e533
3 changed files with 1 additions and 9 deletions
|
@ -3280,6 +3280,5 @@ void EntityItem::prepareForSimulationOwnershipBid(EntityItemProperties& properti
|
|||
}
|
||||
|
||||
bool EntityItem::isWearable() const {
|
||||
return isVisible() && getParentJointIndex() != INVALID_JOINT_INDEX
|
||||
&& (getParentID() == DependencyManager::get<NodeList>()->getSessionUUID() || getParentID() == AVATAR_SELF_ID);
|
||||
return isVisible() && (getParentID() == DependencyManager::get<NodeList>()->getSessionUUID() || getParentID() == AVATAR_SELF_ID);
|
||||
}
|
|
@ -519,12 +519,6 @@ QVector<bool> ModelEntityItem::getJointTranslationsSet() const {
|
|||
return result;
|
||||
}
|
||||
|
||||
bool ModelEntityItem::isWearable() const
|
||||
{
|
||||
return isVisible() && (getParentJointIndex() != INVALID_JOINT_INDEX || getRelayParentJoints())
|
||||
&& (getParentID() == DependencyManager::get<NodeList>()->getSessionUUID() || getParentID() == AVATAR_SELF_ID);
|
||||
}
|
||||
|
||||
bool ModelEntityItem::hasModel() const {
|
||||
return resultWithReadLock<bool>([&] {
|
||||
return !_modelURL.isEmpty();
|
||||
|
|
|
@ -123,7 +123,6 @@ public:
|
|||
QVector<glm::vec3> getJointTranslations() const;
|
||||
QVector<bool> getJointTranslationsSet() const;
|
||||
|
||||
virtual bool isWearable() const override;
|
||||
private:
|
||||
void setAnimationSettings(const QString& value); // only called for old bitstream format
|
||||
bool applyNewAnimationProperties(AnimationPropertyGroup newProperties);
|
||||
|
|
Loading…
Reference in a new issue