mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Revert "Added check on EntityItem::getEntitiesShouldFadeFunction and reactivated fade on model, voxels and polylines"
This reverts commit 8a2fd01e81
.
This commit is contained in:
parent
8a2fd01e81
commit
5f1d45d4de
3 changed files with 8 additions and 18 deletions
|
@ -32,7 +32,7 @@
|
|||
#include "RenderableModelEntityItem.h"
|
||||
#include "RenderableEntityItem.h"
|
||||
|
||||
#define USE_FADE_EFFECT
|
||||
//#define USE_FADE_EFFECT
|
||||
|
||||
static CollisionRenderMeshCache collisionMeshCache;
|
||||
|
||||
|
@ -248,9 +248,7 @@ bool RenderableModelEntityItem::addToScene(const EntityItemPointer& self, const
|
|||
_model->addToScene(scene, transaction, statusGetters);
|
||||
#ifdef USE_FADE_EFFECT
|
||||
if (!_hasTransitioned) {
|
||||
if (EntityItem::getEntitiesShouldFadeFunction()()) {
|
||||
transaction.addTransitionToItem(_myMetaItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
}
|
||||
transaction.addTransitionToItem(_myMetaItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
_hasTransitioned = true;
|
||||
}
|
||||
#endif
|
||||
|
@ -490,9 +488,7 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
|
|||
|
||||
#ifdef USE_FADE_EFFECT
|
||||
if (!_hasTransitioned) {
|
||||
if (EntityItem::getEntitiesShouldFadeFunction()()) {
|
||||
transaction.addTransitionToItem(_myMetaItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
}
|
||||
transaction.addTransitionToItem(_myMetaItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
_hasTransitioned = true;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <PathUtils.h>
|
||||
#include <PerfStat.h>
|
||||
|
||||
#define USE_FADE_EFFECT
|
||||
//#define USE_FADE_EFFECT
|
||||
#ifdef USE_FADE_EFFECT
|
||||
# include <FadeEffect.h>
|
||||
#endif
|
||||
|
@ -249,9 +249,7 @@ bool RenderablePolyLineEntityItem::addToScene(const EntityItemPointer& self,
|
|||
|
||||
transaction.resetItem(_myItem, renderPayload);
|
||||
#ifdef USE_FADE_EFFECT
|
||||
if (EntityItem::getEntitiesShouldFadeFunction()()) {
|
||||
transaction.addTransitionToItem(_myItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
}
|
||||
transaction.addTransitionToItem(_myItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
#endif
|
||||
updateMesh();
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <model-networking/SimpleMeshProxy.h>
|
||||
#include "ModelScriptingInterface.h"
|
||||
|
||||
#define USE_FADE_EFFECT
|
||||
//#define USE_FADE_EFFECT
|
||||
#ifdef USE_FADE_EFFECT
|
||||
# include <FadeEffect.h>
|
||||
#endif
|
||||
|
@ -814,9 +814,7 @@ bool RenderablePolyVoxEntityItem::addToScene(const EntityItemPointer& self,
|
|||
transaction.resetItem(_myItem, renderPayload);
|
||||
#ifdef USE_FADE_EFFECT
|
||||
if (_mesh && _mesh->getIndexBuffer()._buffer) {
|
||||
if (EntityItem::getEntitiesShouldFadeFunction()()) {
|
||||
transaction.addTransitionToItem(_myItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
}
|
||||
transaction.addTransitionToItem(_myItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
_hasTransitioned = true;
|
||||
}
|
||||
#endif
|
||||
|
@ -1410,9 +1408,7 @@ void RenderablePolyVoxEntityItem::setMesh(model::MeshPointer mesh) {
|
|||
if (!_hasTransitioned) {
|
||||
render::Transaction transaction;
|
||||
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||
if (EntityItem::getEntitiesShouldFadeFunction()()) {
|
||||
transaction.addTransitionToItem(_myItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
}
|
||||
transaction.addTransitionToItem(_myItem, render::Transition::ELEMENT_ENTER_DOMAIN);
|
||||
scene->enqueueTransaction(transaction);
|
||||
_hasTransitioned = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue