Game Studio crashes when pasting Spot Light Angle Inner/Outer via context men
Release Type: Official Release / GitHub Version: 4.3.0.2507 and 4.4.0-beta8 Platform(s): Windows
Describe the bug
Copying and pasting the Angle Inner or Angle Outer property of a Spot Light through the context menu causes Game Studio to crash when the target Spot Light has a different value.
The crash does not occur if the target property already has the same value.
To Reproduce
Steps to reproduce the behavior:
- Create a new empty Stride project.
- Add two Spot Lights to the scene.
- Set
Angle Innerof Spot Light A to15.2. - Set
Angle Innerof Spot Light B to20. - Right-click
Angle Inneron Spot Light A and select Copy. - Right-click
Angle Inneron Spot Light B and select Paste. - Game Studio crashes.
The same behavior occurs with Angle Outer.
Expected behavior
The value should be copied from the source Spot Light to the target Spot Light without crashing Game Studio.
Screenshots
Not applicable.
Log and callstacks
Not attached.
Additional context
The issue occurs specifically when copying and pasting through the context menu.
Copy/paste works correctly for other Spot Light properties such as Color and Range.
If the target Angle Inner or Angle Outer already has the same value as the copied property, pasting does not crash.
The issue was reproduced in both:
- Stride 4.3.0.2507
- Stride 4.4.0-beta8
The issue also occurs in a completely new/empty project.
Source: stride3d/stride