X Tutup
Skip to content

Move initialization check for CanvasMaterial#113650

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
AdelynneBrito:panorama
Dec 9, 2025
Merged

Move initialization check for CanvasMaterial#113650
akien-mga merged 1 commit intogodotengine:masterfrom
AdelynneBrito:panorama

Conversation

@AdelynneBrito
Copy link
Contributor

@AdelynneBrito AdelynneBrito commented Dec 5, 2025

Materials all had a mandatory initialization check despite CanvasMaterials being the only ones that required initialization. This led to issues with material conversion, this PR moves the initialization check so that it only checks CanvasMaterials

Supersedes #112458
CC @ColinSORourke

@AdelynneBrito AdelynneBrito requested a review from a team December 5, 2025 22:44
Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

This is only needed by CanvasItemMaterials because they queue up their shader updates using Material::_mark_initialized()

@clayjohn clayjohn added this to the 4.6 milestone Dec 5, 2025
@clayjohn clayjohn added bug topic:editor regression topic:shaders cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Dec 5, 2025
@ColinSORourke
Copy link
Contributor

@clayjohn I would add "Cherrypick 4.4", @Repiteo did tag the change this is fixing for 4.4 as well

@clayjohn clayjohn added the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Dec 6, 2025
@clayjohn
Copy link
Member

clayjohn commented Dec 6, 2025

@clayjohn I would add "Cherrypick 4.4", @Repiteo did tag the change this is fixing for 4.4 as well

Good thinking!

Prevents the check from causing other materials to error
@akien-mga
Copy link
Member

Squashed the commits so it's ready to merge.

@akien-mga akien-mga merged commit a2d0545 into godotengine:master Dec 9, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga removed the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Jan 8, 2026
@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 8, 2026
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.

Converting Panorama Sky Material to a shader Material results in error Cannot convert Sky Materials to ShaderMaterial

5 participants

X Tutup