From 70da438d6d8f969bb5a8e2463a29e7ea988bb3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Tue, 18 Apr 2017 15:06:40 +0200 Subject: [PATCH] on mesh loading, set dummy-geometry if no geometry in mesh-file --- libsrc/interface/nginterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index 206e703d..39ddacd3 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -108,7 +108,8 @@ void Ng_LoadMeshFromStream ( istream & input ) break; } } - + if (!ng_geometry) + ng_geometry = make_shared(); mesh->SetGeometry (ng_geometry); }