bevyengine / bevyengine/bevy

`Option<T>` - `GetTypeRegistration` - Does not store `ReflectDefault` type data

Open
#18,018 0 comments 3 reactions 0 assignees View on GitHub
A-Reflection C-Bug C-Usability D-Straightforward S-Ready-For-Implementation X-Uncontroversial
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

0.15.2

## Description
Below is an expansion from the current option impl macro:

![Image](https://github.com/user-attachments/assets/47c4e3db-b053-46f0-add9-a5c534684c07)

Note `ReflectDefault` is not present, even though it can be trivially implemented for options

Contributor guide

Open the contributing guide

Research direction

Start by locating the current Option impl macro and its GetTypeRegistration expansion. Compare the registered type data with the issue's expansion, then verify that ReflectDefault is included for options and that the existing registration behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.