-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from MrGVSV/v0.11.0
Bump version: 0.10.0 -> 0.11.0
- Loading branch information
Showing
19 changed files
with
110 additions
and
815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
use bevy::app::App; | ||
use bevy::gltf::GltfExtras; | ||
use bevy::reflect::Reflect; | ||
|
||
use crate::impls::macros::{from_to_default, register_schematic}; | ||
use crate::impls::macros::register_schematic; | ||
use bevy_proto_derive::impl_external_schematic; | ||
|
||
pub(super) fn register(app: &mut App) { | ||
register_schematic!(app, GltfExtras); | ||
} | ||
|
||
impl_external_schematic! { | ||
#[schematic(from = GltfExtrasInput)] | ||
struct GltfExtras {} | ||
// --- | ||
#[derive(Reflect)] | ||
pub struct GltfExtrasInput{ | ||
pub value: String, | ||
} | ||
from_to_default!( | ||
GltfExtras, | ||
GltfExtrasInput, | ||
|value: Input| Self { | ||
value: value.value, | ||
} | ||
); | ||
} |
Oops, something went wrong.