Fixed detection of startup workbench
This commit is contained in:
@@ -182,7 +182,8 @@ void NavlibInterface::enableNavigation()
|
||||
exportCommands(std::string(wb));
|
||||
});
|
||||
|
||||
exportCommands("StartWorkbench");
|
||||
auto activeWorkbench = Gui::WorkbenchManager::instance()->activeName();
|
||||
exportCommands(activeWorkbench);
|
||||
|
||||
initializePivot();
|
||||
connectActiveTab();
|
||||
|
||||
@@ -113,7 +113,7 @@ extern template SoCamera* NavlibInterface::getCamera<SoCamera*>() const;
|
||||
|
||||
long NavlibInterface::GetHitLookAt(navlib::point_t& position) const
|
||||
{
|
||||
if (is2DView())
|
||||
if (is2DView() || !is3DView())
|
||||
return navlib::make_result_code(navlib::navlib_errc::no_data_available);
|
||||
|
||||
const Gui::View3DInventorViewer* const inventorViewer = currentView.pView3d->getViewer();
|
||||
|
||||
Reference in New Issue
Block a user