WireframeMaterial and Wireframe2dMaterial don't derive Reflect #17474
Labels
A-Rendering
Drawing game state to the screen
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
What problem does this solve or what need does it fill?
There are three types implementing
Material
in bevy:StandardMaterial
ExtendedMaterial
WireframeMaterial
The former two implement
Reflect
, while the latter does not. I think this is an oversight.The same is true for
Material2d
:ColorMaterial
derivesReflect
, whileWireframe2dMaterial
does not.What solution would you like?
Since the fields of
WireframeMaterial
andWireframe2dMaterial
are rather trivial, a simple#[derive(Reflect)]
should be enough, mirroringStandardMaterial
andColorMaterial
.What alternative(s) have you considered?
Just don't support WireframeMaterial, but I think it'd be good for debugging purposes.
The text was updated successfully, but these errors were encountered: