Commit 3e915d4
authored
Hotfix: NullRef for screenshots in worlds (#5647)
## What does this PR change?
Fixes:
On desktop pictures taken with Camera Mode are not saved when taken in a World (`NullReferenceExpection` appears in the console). Does not occur on catalyst realms
## How to test the changes?
1. Take screenshot in World
2. Observe it is loaded to Camera Reel
## Our Code Review Standards
https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md
## Copilot summary
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 847d8f7</samp>
Enhance `ScreenshotMetadata` class with new properties, better scene name logic, and simplified variables. This improves the readability and consistency of the code that handles screenshot metadata.1 parent d54f0c4 commit 3e915d4
File tree
1 file changed
+6
-5
lines changed- unity-renderer/Assets/DCLServices/CameraReelService
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | | - | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
49 | | - | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments