fixed RayPicking.cpp, it can RUN ok!

This commit is contained in:
2023-10-05 00:50:31 +08:00
parent a1e7b105f7
commit 10d4f2f04a
6 changed files with 75 additions and 58 deletions

View File

@@ -60,6 +60,9 @@ namespace hgl
SceneNode *CreateSubNode(Renderable *ri)
{
if(!ri)
return(nullptr);
SceneNode *sn=new SceneNode(ri);
SubNode.Add(sn);
@@ -76,6 +79,9 @@ namespace hgl
SceneNode *CreateSubNode(const Matrix4f &mat,Renderable *ri)
{
if(!ri)
return(nullptr);
SceneNode *sn=new SceneNode(mat,ri);
SubNode.Add(sn);