Skip to content

Fix for GridSensor3D Warning: Cannot pass 1 as Enum "BaseMaterial3D.Transparency"#61

Open
Ivan-267 wants to merge 1 commit intomainfrom
Ivan-267-patch-3
Open

Fix for GridSensor3D Warning: Cannot pass 1 as Enum "BaseMaterial3D.Transparency"#61
Ivan-267 wants to merge 1 commit intomainfrom
Ivan-267-patch-3

Conversation

@Ivan-267
Copy link
Copy Markdown
Collaborator

@Ivan-267 Ivan-267 commented Mar 21, 2026

Fixes the following warning by replacing the integer with the enum:

W 0:00:00:559   GDScript::reload: Cannot pass 1 as Enum "BaseMaterial3D.Transparency": no enum member has matching value.
  <GDScript Error>INT_AS_ENUM_WITHOUT_MATCH
  <GDScript Source>GridSensorStaticOnly3D.gd:100 @ GDScript::reload()

Checked with Godot 4.6.1.

Note: Filename in warning log doesn't match as I got the warning on a locally modified sensor with a different filename, but otherwise the fix matches.

@Ivan-267 Ivan-267 requested a review from edbeeching March 21, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant