Skip to content

Commit fed6977

Browse files
authored
Merge branch 'master' into sync-released-bbe0b9333
2 parents bbe0b93 + 70a3d6f commit fed6977

4 files changed

Lines changed: 31 additions & 5 deletions

File tree

docs/reference/changelog-r2025.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Webots R2025 Change Log
22

3+
## Webots R2025b
4+
- Bug Fixes
5+
- Fixed a bug preventing the `webots-controller` executable from running on arm-based mac devices ([#6806](https://github.com/cyberbotics/webots/pull/6806)).
6+
37
## Webots R2025a
48
Released on January 31st, 2025.
59
- New Features
@@ -24,7 +28,7 @@ Released on January 31st, 2025.
2428
- Improved the image range of the rotating [Lidar](lidar.md) ([#6324](https://github.com/cyberbotics/webots/pull/6324)).
2529
- Show box-plane contact point normals when showing contact points ([#6678](https://github.com/cyberbotics/webots/pull/6678)).
2630
- Improved the speed and accuracy of box-plane collisions ([#6688](https://github.com/cyberbotics/webots/pull/6688)).
27-
- Enabled the launching of MATLAB desktop from the extern launcher ([#6366](https://github.com/cyberbotics/webots/pull/6366)).
31+
- Enabled the launching of MATLAB desktop from the extern launcher ([#6366](https://github.com/cyberbotics/webots/pull/6366)).
2832
- Improved overlays visible in Overlays menu by adding all the robots in the menu list ([#6297](https://github.com/cyberbotics/webots/pull/6297)).
2933
- Cleanup
3034
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).

docs/reference/generalities.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Webots world files must use the ".wbt" file name extension.
44
The first line of a ".wbt" file uses this header:
55

66
```
7-
#VRML_SIM V8.5 utf8
7+
#VRML_SIM R2025a utf8
88
```
99

10-
The version *8.5* specifies that the file can be open with *Webots 8*.
10+
The version *R2025a* specifies that the file can be open with *Webots 2025a*.
1111
Although the header specifies *utf8*, at the moment only ascii is supported.
1212

1313
The comments placed just below the header store the window configuration associated with this world.
@@ -16,7 +16,7 @@ One (and only one) instance of each of the `WorldInfo, ViewPoint` and `Backgroun
1616
For example:
1717

1818
```
19-
#VRML_SIM V8.5 utf8
19+
#VRML_SIM R2025a utf8
2020
2121
WorldInfo {
2222
info [

src/controller/launcher/Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,30 @@ endif
4141

4242
release debug profile: $(CONTROLLER_LAUNCHER)
4343

44+
ifeq ($(OSTYPE),darwin)
45+
46+
OBJDIR = build/$(MAKECMDGOALS)
47+
BUILD_PATH_SETUP := $(shell mkdir -p $(OBJDIR)/x86_64 $(OBJDIR)/arm64)
48+
49+
$(CONTROLLER_LAUNCHER): $(OBJDIR)/x86_64/webots-controller $(OBJDIR)/arm64/webots-controller
50+
@echo "# creating fat " $(notdir $@)
51+
@lipo -create -output $@ $(OBJDIR)/x86_64/webots-controller $(OBJDIR)/arm64/webots-controller
52+
@codesign -s - $@
53+
54+
$(OBJDIR)/x86_64/webots-controller: webots_controller.c
55+
@echo "# compiling " $@ "(x64_64)"
56+
@gcc $(CFLAGS) -target x86_64-apple-macos12 webots_controller.c -o $@
57+
58+
$(OBJDIR)/arm64/webots-controller: webots_controller.c
59+
@echo "# compiling " $@ "(arm64)"
60+
@gcc $(CFLAGS) -target arm64-apple-macos12 webots_controller.c -o $@
61+
62+
else
63+
4464
$(CONTROLLER_LAUNCHER): webots_controller.c
4565
@echo "# compiling" $<
4666
@gcc $(CFLAGS) webots_controller.c -o $@
4767

68+
endif
69+
4870
FILES_TO_REMOVE += $(CONTROLLER_LAUNCHER)

src/wren/FileImport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ namespace wren {
271271
aiMaterial *material = scene->mMaterials[materialIndex];
272272
aiString name;
273273
material->Get(AI_MATKEY_NAME, name);
274-
char *matName = new char[strlen(name.C_Str())];
274+
char *matName = new char[strlen(name.C_Str()) + 1];
275275
strcpy(matName, name.C_Str());
276276
materials.push_back(matName);
277277
}

0 commit comments

Comments
 (0)