mirror of
https://github.com/kaosat-dev/Blender_bevy_components_workflow.git
synced 2024-11-22 20:00:53 +00:00
Merge 80cb7d46e6
into e54d41ca5c
This commit is contained in:
commit
fd8c68a737
@ -50,7 +50,7 @@ fn components_string_to_components(
|
|||||||
{
|
{
|
||||||
debug!("TYPE INFO {:?}", type_registration.type_info());
|
debug!("TYPE INFO {:?}", type_registration.type_info());
|
||||||
|
|
||||||
let ron_string = format!(
|
let mut ron_string = format!(
|
||||||
"{{ \"{}\":{} }}",
|
"{{ \"{}\":{} }}",
|
||||||
type_registration.type_info().type_path(),
|
type_registration.type_info().type_path(),
|
||||||
parsed_value
|
parsed_value
|
||||||
@ -67,6 +67,9 @@ fn components_string_to_components(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
debug!("component data ron string {}", ron_string);
|
debug!("component data ron string {}", ron_string);
|
||||||
|
if cfg!(windows) {
|
||||||
|
ron_string = ron_string.replace("\\", "/");
|
||||||
|
}
|
||||||
let mut deserializer = ron::Deserializer::from_str(ron_string.as_str())
|
let mut deserializer = ron::Deserializer::from_str(ron_string.as_str())
|
||||||
.expect("deserialzer should have been generated from string");
|
.expect("deserialzer should have been generated from string");
|
||||||
let reflect_deserializer = ReflectDeserializer::new(type_registry);
|
let reflect_deserializer = ReflectDeserializer::new(type_registry);
|
||||||
|
Loading…
Reference in New Issue
Block a user