mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-11 00:37:04 +08:00
Cause of bug is that the IGESData_BasicEditor is created before an initialization of IGESControl_Controller::Init(). IGESData_BasicEditor cannot find template "iges", so the model is still empty after creation. 1) Added a default constructor to the IGESData_BasicEditor. Can be initialized via Init() method. 2) Added some null checks in the places, where are provided access to the model (IGESData_BasicEditor's member). 3) Initialization of the IGESData_BasicEditor was placed after initialization if the IGESControl_Controller.