Skip to content

Commit

Permalink
[Geomagic] Update GeomagicDriver.cpp to fire error when hd.h is not f…
Browse files Browse the repository at this point in the history
…ound (sofa-framework#4576)

* Update GeomagicDriver.cpp to fire error when hd.h is not found

* Rephrase for users

---------

Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
  • Loading branch information
2 people authored and bakpaul committed Mar 21, 2024
1 parent 1190e68 commit d9032f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ void GeomagicDriver::initDevice()
updatePosition();
sofa::core::objectmodel::BaseObject::d_componentState.setValue(sofa::core::objectmodel::ComponentState::Valid);
#else
msg_error() << "GeomagicDriver initialization failed because the Geomagic plugin was built without OpenHaptics (HD/hd.h). If you build the plugin yourself, install OpenHaptics and specify OpenHaptics_DIR at CMake configure stage.";
sofa::core::objectmodel::BaseObject::d_componentState.setValue(sofa::core::objectmodel::ComponentState::Invalid);
#endif
}
Expand Down

0 comments on commit d9032f9

Please sign in to comment.