mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 16:43:33 +02:00
Added define to activate/deactivate transition support (fade) in Scene
This commit is contained in:
parent
53a92c1506
commit
21a11d72c4
1 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,9 @@
|
|||
#include "Logging.h"
|
||||
#include "TransitionStage.h"
|
||||
|
||||
// Comment this to disable transitions (fades)
|
||||
#define SCENE_ENABLE_TRANSITIONS
|
||||
|
||||
using namespace render;
|
||||
|
||||
void Transaction::resetItem(ItemID id, const PayloadPointer& payload) {
|
||||
|
@ -126,11 +129,12 @@ void Scene::processTransactionQueue() {
|
|||
// removes
|
||||
removeItems(consolidatedTransaction._removedItems);
|
||||
|
||||
#ifdef SCENE_ENABLE_TRANSITIONS
|
||||
// add transitions
|
||||
transitionItems(consolidatedTransaction._addedTransitions);
|
||||
|
||||
queryTransitionItems(consolidatedTransaction._queriedTransitions);
|
||||
|
||||
#endif
|
||||
// Update the numItemsAtomic counter AFTER the pending changes went through
|
||||
_numAllocatedItems.exchange(maxID);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue