File tree Expand file tree Collapse file tree
newIDE/app/src/EffectsList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2014,7 +2014,7 @@ module.exports = {
20142014 {
20152015 const effect = extension
20162016 . addEffect ( 'BrightnessAndContrast' )
2017- . setFullName ( _ ( 'Brightness and contrast. ' ) )
2017+ . setFullName ( _ ( 'Brightness and contrast' ) )
20182018 . setDescription (
20192019 _ (
20202020 'Adjust brightness and contrast.'
Original file line number Diff line number Diff line change @@ -426,7 +426,28 @@ export default function EffectsList(props: Props) {
426426 ) ;
427427
428428 const all3DEffectMetadata = React . useMemo (
429- ( ) => allEffectMetadata . filter ( effect => effect . isMarkedAsOnlyWorkingFor3D ) ,
429+ ( ) => {
430+ const lightEffectMetadata = [ ] ;
431+ const fogEffectMetadata = [ ] ;
432+ const otherEffectMetadata = [ ] ;
433+ for ( const effect of allEffectMetadata ) {
434+ if ( ! effect . isMarkedAsOnlyWorkingFor3D ) {
435+ continue ;
436+ }
437+ if ( effect . type . endsWith ( 'Light' ) ) {
438+ lightEffectMetadata . push ( effect ) ;
439+ } else if ( effect . type . endsWith ( 'Fog' ) ) {
440+ fogEffectMetadata . push ( effect ) ;
441+ } else {
442+ otherEffectMetadata . push ( effect ) ;
443+ }
444+ }
445+ return [
446+ ...lightEffectMetadata ,
447+ ...fogEffectMetadata ,
448+ ...otherEffectMetadata ,
449+ ] ;
450+ } ,
430451 [ allEffectMetadata ]
431452 ) ;
432453
You can’t perform that action at this time.
0 commit comments