Skip to content

Commit

Permalink
#5941: StaticModelNode doesn't need to hold its own render system ref…
Browse files Browse the repository at this point in the history
…erence, it's already in the scene::Node base class
  • Loading branch information
codereader committed Apr 17, 2022
1 parent e277df4 commit e6d0661
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions radiantcore/model/StaticModelNode.cpp
Expand Up @@ -125,8 +125,6 @@ void StaticModelNode::setRenderSystem(const RenderSystemPtr& renderSystem)
{
Node::setRenderSystem(renderSystem);

_renderSystem = renderSystem;

// This will trigger onModelShadersChanged() to refresh the renderables
_model->setRenderSystem(renderSystem);
}
Expand Down
3 changes: 0 additions & 3 deletions radiantcore/model/StaticModelNode.h
Expand Up @@ -43,9 +43,6 @@ class StaticModelNode final :
// The renderable surfaces attached to the shaders
std::vector<RenderableModelSurface::Ptr> _renderableSurfaces;

// We need to keep a reference for skin swapping
RenderSystemWeakPtr _renderSystem;

bool _attachedToShaders;

public:
Expand Down

0 comments on commit e6d0661

Please sign in to comment.