]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/util/SplicingVisitor.cxx
Work around apparent OSG 3.2.0 normal binding bug.
[simgear.git] / simgear / scene / util / SplicingVisitor.cxx
index 66558377ea2e6787e378bb8736778bc93c083f42..1f28594910fb51c5ec19b9587cdd1a3ea217e737 100644 (file)
@@ -52,8 +52,8 @@ Group* SplicingVisitor::pushResultNode(Group* node, Group* newNode,
             result->addChild(itr->get());
     }
     _childStack.back().push_back(result);
-    recordNewNode(node, result);
-    return result;
+    recordNewNode(node, result.get());
+    return result.get();
 }
 
 Node* SplicingVisitor::pushResultNode(Node* node, Node* newNode)