Skip to content

Commit

Permalink
Remove Old Import Node Methods from WbLanguage (#6701)
Browse files Browse the repository at this point in the history
* remove old import node methods from WbLanguage

* update the changelog
  • Loading branch information
CoolSpy3 authored Nov 19, 2024
1 parent d9caa65 commit a3cc78d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/reference/changelog-r2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ Released on December **th, 2023.
- Fixed crash when `wb_supervisor_field_get_name` was called with NULL ([#6647](https://github.com/cyberbotics/webots/pull/6647)).
- Fixed bug where the wrong y coordinate was used for one corner of the box drawn to represent a box-plane collision ([#6677](https://github.com/cyberbotics/webots/pull/6677)).
- Fixed a bug where Webots would crash if a geometry was inserted into a `Shape` node used a bounding box ([#6691](https://github.com/cyberbotics/webots/pull/6691)).
- Removed the old `wb_supervisor_field_import_sf_node` and `wb_supervisor_field_import_mf_node` functions from the list of editor autocomplete suggestions ([#6701](https://github.com/cyberbotics/webots/pull/6701)).
2 changes: 0 additions & 2 deletions src/webots/core/WbLanguage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,7 @@ static const char *C_API_FUNCTIONS = "wb_accelerometer_enable "
"wb_supervisor_field_get_mf_rotation "
"wb_supervisor_field_get_mf_string "
"wb_supervisor_field_get_mf_node "
"wb_supervisor_field_import_mf_node "
"wb_supervisor_field_import_mf_node_from_string "
"wb_supervisor_field_import_sf_node "
"wb_supervisor_field_import_sf_node_from_string "
"wb_supervisor_field_insert_mf_bool "
"wb_supervisor_field_insert_mf_color "
Expand Down
2 changes: 1 addition & 1 deletion src/webots/nodes/utils/WbNodeOperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ WbNodeOperations::OperationResult WbNodeOperations::importNode(WbNode *parentNod
WbMFNode *mfnode = dynamic_cast<WbMFNode *>(field->value());
assert(mfnode || sfnode);
// index value is assumed to be in range [0, mfnode->size()]
// user input checked in wb_supervisor_field_import_mf_node or WbSceneTree
// user input checked in wb_supervisor_field_import_mf_node_from_string or WbSceneTree
assert(!mfnode || (itemIndex >= 0 && itemIndex <= mfnode->size()));
#endif

Expand Down

0 comments on commit a3cc78d

Please sign in to comment.