We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c980e3a commit 912aa0dCopy full SHA for 912aa0d
code/gameinitialize.pas
@@ -394,6 +394,8 @@ procedure InitializeSceneBoundingBox;
394
Material: TMaterialNode;
395
begin
396
BBox := Window.MainScene.BoundingBox;
397
+ if BBox.IsEmpty then Exit;
398
+
399
BBoxGeometry := TBoxNode.Create;
400
BBoxGeometry.Size := BBox.Size;
401
@@ -449,6 +451,8 @@ procedure OpenScene(const Url: string);
449
451
Application.Log(etInfo, 'Opened ' + Url);
450
452
453
Window.Load(Url);
454
+ // Only to test loading empty scene (with empty bbox)
455
+ // Window.Load('data:model/vrml,#VRML V2.0 utf8' + NL + 'Group { }');
456
Window.MainScene.Spatial := [ssRendering, ssDynamicCollisions];
457
Window.MainScene.ProcessEvents := true;
458
0 commit comments