relax 'isWearable()' condition to match latest changes in 'master'

This commit is contained in:
Alexander Ivash 2018-11-19 00:53:51 +05:30
parent 72a91668a5
commit 600d09e533
3 changed files with 1 additions and 9 deletions

View file

@ -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);
}

View file

@ -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();

View file

@ -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);