Fixed patch issues

This commit is contained in:
Kasen IO 2019-12-13 12:29:08 -05:00
parent 9839b23061
commit 1f01beba70
3 changed files with 12 additions and 9 deletions

View file

@ -168,12 +168,12 @@ render::hifi::Layer EntityRenderer::getHifiRenderLayer() const {
}
ItemKey EntityRenderer::getKey() {
auto builder = ItemKey::Builder().withTypeShape().withTypeMeta().withTagBits(getTagMask()).withLayer(getHifiRenderLayer());
ItemKey::Builder builder =
ItemKey::Builder().withTypeShape().withTypeMeta().withTagBits(getTagMask()).withLayer(getHifiRenderLayer());
if (isTransparent()) {
builder.withTransparent();
}
if (_canCastShadow) {
} else if (_canCastShadow) {
builder.withShadowCaster();
}
@ -181,7 +181,11 @@ ItemKey EntityRenderer::getKey() {
builder.withSubMetaCulled();
}
return builder.build();
if (!_visible) {
builder.withInvisible();
}
return builder;
}
uint32_t EntityRenderer::metaFetchMetaSubItems(ItemIDs& subItems) const {

View file

@ -3030,10 +3030,10 @@ bool EntityItem::getCullWithParent() const {
}
void EntityItem::setCullWithParent(bool value) {
if (_cullWithParent != value) {
withWriteLock([&] {
_needsRenderUpdate |= _cullWithParent != value;
_cullWithParent = value;
emit requestRenderUpdate();
}
});
}
bool EntityItem::isChildOfMyAvatar() const {

View file

@ -579,7 +579,6 @@ public:
signals:
void spaceUpdate(std::pair<int32_t, glm::vec4> data);
void requestRenderUpdate();
protected:
QHash<ChangeHandlerId, ChangeHandlerCallback> _changeHandlers;