Skip to content

Commit

Permalink
add_model() is virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Sep 14, 2023
1 parent d935ade commit 58e1f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy3d/viewer/viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ namespace easy3d {
* @return The pointer to the model added to the viewer (nullptr if failed).
* @related create_drawables(Model* model).
*/
Model* add_model(const std::string& file_name, bool create_default_drawables = true);
virtual Model* add_model(const std::string& file_name, bool create_default_drawables = true);

/**
* @brief Add an existing model to the viewer to be visualized. After a model being added
Expand Down

0 comments on commit 58e1f2f

Please sign in to comment.