File tree 3 files changed +20
-3
lines changed
3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ The format is based on [Keep a Changelog](https://github.com/olivierlacan/keep-a
13
13
14
14
### Removed
15
15
16
+ ## [ 2.1.2] - 2024-03-05
17
+
18
+ ### Added
19
+
20
+ ### Changed
21
+
22
+ ### Fixed
23
+
24
+ - Fix ` decoration ` , ` viewer ` pages runtime error. (https://github.com/yushiang-demo/pano-to-mesh/pull/78 )
25
+
26
+ ### Removed
27
+
16
28
## [ 2.1.1] - 2024-03-05
17
29
18
30
### Added
@@ -225,8 +237,9 @@ Codes without pull requests won't be recorded.
225
237
226
238
### Removed
227
239
228
- [ unreleased ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.1.1...HEAD
229
- [ 2.1.1 ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.0.0...v2.1.0
240
+ [ unreleased ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.1.2...HEAD
241
+ [ 2.1.2 ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.1.1...v2.1.2
242
+ [ 2.1.1 ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.1.0...v2.1.1
230
243
[ 2.1.0 ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.0.1...v2.1.0
231
244
[ 2.0.1 ] : https://github.com/yushiang-demo/PanoToMesh/compare/v2.0.0...v2.0.1
232
245
[ 2.0.0 ] : https://github.com/yushiang-demo/PanoToMesh/compare/v1.4.1...v2.0.0
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ const Editor = ({ data }) => {
120
120
} , [ ] ) ;
121
121
122
122
useEffect ( ( ) => {
123
- threeRef . current . cameraControls . setEnable ( mode === MODE . SELECT ) ;
123
+ threeRef . current ? .cameraControls . setEnable ( mode === MODE . SELECT ) ;
124
124
} , [ mode ] ) ;
125
125
126
126
const focusedMedia = media [ focusedIndex ] ;
@@ -153,6 +153,8 @@ const Editor = ({ data }) => {
153
153
[ focusedIndex ]
154
154
) ;
155
155
156
+ if ( ! panorama ) return null ;
157
+
156
158
return (
157
159
< >
158
160
< ThreeCanvas dev = { dev } ref = { threeRef } { ...eventHandlers } >
Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ const Viewer = ({ data }) => {
114
114
) ;
115
115
} ) ;
116
116
117
+ if ( ! panorama ) return null ;
118
+
117
119
return (
118
120
< >
119
121
< ThreeCanvas dev = { dev } ref = { threeRef } { ...eventsHandlers } >
You can’t perform that action at this time.
0 commit comments