Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ShaderMaterial always the last option in inspector resource dropdowns #81996

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Sep 20, 2023

ShaderMaterial is the "advanced" option, while the "basic" options should be listed first for easier accessibility (and because they're generally used more often).

This makes sky and particle materials consistent with canvas/spatial/fog materials on this aspect.

@Calinou Calinou requested review from a team as code owners September 20, 2023 17:54
@Calinou Calinou added this to the 4.2 milestone Sep 20, 2023
@AThousandShips AThousandShips modified the milestones: 4.2, 4.3 Oct 26, 2023
@Calinou Calinou force-pushed the editor-shadermaterial-last-option branch from d0a9fb4 to f847a6e Compare January 10, 2024 23:55
@Calinou Calinou force-pushed the editor-shadermaterial-last-option branch from f847a6e to 0ddc92a Compare January 28, 2024 19:07
@Calinou
Copy link
Member Author

Calinou commented Jan 28, 2024

This causes GDExtension compatibility errors, is this expected? I'm only changing the entries' order – no entry has been added or removed.

Error: Validate extension JSON: Error: Field 'classes/GPUParticles2D/properties/process_material': type changed value in new API, from "ShaderMaterial,ParticleProcessMaterial" to "ParticleProcessMaterial,ShaderMaterial".

@KoBeWi
Copy link
Member

KoBeWi commented Feb 4, 2024

Well anything that affects extension JSON is considered a compatibility breakage. You can just add it to the expected file, as I think it doesn't really break anything.

@KoBeWi
Copy link
Member

KoBeWi commented Feb 4, 2024

while the "basic" options should be listed first for easier accessibility (and because they're generally used more often).

Except for CanvasItems, where ShaderMaterial is used most of the time (from my experience).

@Calinou Calinou force-pushed the editor-shadermaterial-last-option branch from 0ddc92a to fa55333 Compare February 5, 2024 19:05
@Calinou Calinou requested review from a team as code owners February 5, 2024 19:05
…downs

ShaderMaterial is the "advanced" option, while the "basic" options
should be listed first for easier accessibility (and because they're
generally used more often).

This makes sky and particle materials consistent with
canvas/spatial/fog materials on this aspect.
@Calinou Calinou force-pushed the editor-shadermaterial-last-option branch from fa55333 to 93be97e Compare February 5, 2024 20:49
@akien-mga akien-mga merged commit a5b44c0 into godotengine:master Feb 7, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants