From 78b1bbe1305fed99e0f64a9b8185268c484dd251 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Fri, 15 May 2020 10:34:49 +0300 Subject: [PATCH] Remove unnecessary null check --- components/sceneutil/attach.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/sceneutil/attach.cpp b/components/sceneutil/attach.cpp index b5e5d3844..c438e705d 100644 --- a/components/sceneutil/attach.cpp +++ b/components/sceneutil/attach.cpp @@ -49,8 +49,6 @@ namespace SceneUtil return; osg::Node* node = &drawable; - if (!node) - return; while (node->getNumParents()) { osg::Group* parent = node->getParent(0);