Handle override RenderBins from asset files

This commit is contained in:
Malin E
2023-04-13 10:59:23 +02:00
parent dccd439dde
commit 6d8f7b2fbd
5 changed files with 47 additions and 15 deletions

View File

@@ -131,6 +131,7 @@ protected:
SceneGraphNode* parent() const noexcept;
bool automaticallyUpdatesRenderBin() const noexcept;
bool hasOverrideRenderBin() const noexcept;
RenderBin _renderBin = RenderBin::Opaque;
@@ -146,6 +147,7 @@ private:
SceneGraphNode* _parent = nullptr;
const bool _shouldUpdateIfDisabled = false;
bool _automaticallyUpdateRenderBin = true;
bool _hasOverrideRenderBin = false;
// We only want the SceneGraphNode to be able manipulate the parent, so we don't want
// to provide a set method for this. Otherwise, anyone might mess around with our