@@ -244,7 +244,7 @@ pub(crate) fn blueprints_check_assets_metadata_files_loading(
244244 }
245245 let progress: f32 = loaded_amount as f32 / total as f32 ;
246246 assets_to_load. progress = progress;
247- // println !("LOADING: in progress for ALL assets of {:?} (instance of {}): {} ",entity_name, blueprint_info.path, progress * 100.0);
247+ // debug !("LOADING: in progress for ALL assets of {:?} (instance of {}): {} ",entity_name, blueprint_info.path, progress * 100.0);
248248 }
249249}
250250
@@ -323,7 +323,7 @@ pub(super) fn blueprints_prepare_spawn(
323323 if !assets_to_blueprint_instances. untyped_id_to_blueprint_entity_ids [ & path_id]
324324 . contains ( & entity)
325325 {
326- // println !("adding mapping between {} and entity {:?}", path_id, all_names.get(entity));
326+ // debug !("adding mapping between {} and entity {:?}", path_id, all_names.get(entity));
327327 assets_to_blueprint_instances
328328 . untyped_id_to_blueprint_entity_ids
329329 . get_mut ( & path_id)
@@ -353,7 +353,7 @@ pub(super) fn blueprints_prepare_spawn(
353353 [ & blueprint_info. path ]
354354 . contains ( & entity)
355355 {
356- // println !("adding mapping between {} and entity {:?}", path_id, all_names.get(entity));
356+ // debug !("adding mapping between {} and entity {:?}", path_id, all_names.get(entity));
357357 assets_to_blueprint_instances
358358 . untyped_id_to_blueprint_entity_ids
359359 . get_mut ( & blueprint_info. path )
@@ -419,11 +419,11 @@ pub(crate) fn blueprints_check_assets_loading(
419419 }
420420 let progress: f32 = loaded_amount as f32 / total as f32 ;
421421 assets_to_load. progress = progress;
422- //println !("LOADING: in progress for ALL assets of {:?} (instance of {}): {} ",entity_name, blueprint_info.path, progress * 100.0);
422+ //debug !("LOADING: in progress for ALL assets of {:?} (instance of {}): {} ",entity_name, blueprint_info.path, progress * 100.0);
423423
424424 if all_loaded {
425425 assets_to_load. all_loaded = true ;
426- // println !("LOADING: DONE for ALL assets of {:?} (instance of {}), preparing for spawn", entity_name, blueprint_info.path);
426+ // debug !("LOADING: DONE for ALL assets of {:?} (instance of {}), preparing for spawn", entity_name, blueprint_info.path);
427427 blueprint_events. send ( BlueprintEvent :: AssetsLoaded {
428428 entity,
429429 blueprint_name : blueprint_info. name . clone ( ) ,
@@ -515,8 +515,8 @@ pub(crate) fn blueprints_assets_loaded(
515515 }
516516 let graph = graphs. add ( graph) ;
517517
518- //println !("Named animations : {:?}", named_animations.keys());
519- //println !("ANIMATION INFOS: {:?}", animation_infos);
518+ //debug !("Named animations : {:?}", named_animations.keys());
519+ //debug !("ANIMATION INFOS: {:?}", animation_infos);
520520
521521 commands. entity ( entity) . insert ( (
522522 SceneBundle {
@@ -587,7 +587,7 @@ pub(crate) fn blueprints_scenes_spawned(
587587 if track_root. is_none ( ) {
588588 for parent in all_parents. iter_ancestors ( entity) {
589589 if with_blueprint_infos. get ( parent) . is_ok ( ) {
590- println ! (
590+ debug ! (
591591 "found a parent with blueprint_info {:?} for {:?}" ,
592592 all_names. get( parent) ,
593593 all_names. get( entity)
@@ -603,12 +603,12 @@ pub(crate) fn blueprints_scenes_spawned(
603603 if children. is_some ( ) {
604604 for child in all_children. iter_descendants ( entity) {
605605 if with_blueprint_infos. get ( child) . is_ok ( ) {
606- // println !("Parent blueprint instance of {:?} is {:?}", all_names.get(child), all_names.get(entity));
606+ // debug !("Parent blueprint instance of {:?} is {:?}", all_names.get(child), all_names.get(entity));
607607 for parent in all_parents. iter_ancestors ( child) {
608608 if with_blueprint_infos. get ( parent) . is_ok ( ) {
609609 if parent == entity {
610- //println !("yohoho");
611- /*println !(
610+ //debug !("yohoho");
611+ /*debug !(
612612 "Parent blueprint instance of {:?} is {:?}",
613613 all_names.get(child),
614614 all_names.get(parent)
@@ -733,7 +733,7 @@ pub(crate) fn blueprints_cleanup_spawned_scene(
733733 if animations. named_animations . keys ( ) . len ( ) > 0 {
734734 for ( entity_with_player, parent) in animation_players. iter ( ) {
735735 if parent. get ( ) == blueprint_root_entity {
736- println ! (
736+ debug ! (
737737 "FOUND ANIMATION PLAYER FOR {:?} {:?} " ,
738738 all_names. get( original) ,
739739 all_names. get( entity_with_player)
@@ -757,7 +757,7 @@ pub(crate) fn blueprints_cleanup_spawned_scene(
757757 if with_animation_infos. get ( child) . is_ok ( ) {
758758 // player is already on the same entity as the animation_infos
759759 if animation_players. get ( child) . is_ok ( ) {
760- println ! (
760+ debug ! (
761761 "found BLUEPRINT animation player for {:?} at {:?} Root: {:?}" ,
762762 all_names. get( child) ,
763763 all_names. get( child) ,
@@ -770,13 +770,13 @@ pub(crate) fn blueprints_cleanup_spawned_scene(
770770 } else {
771771 for parent in all_parents. iter_ancestors ( child) {
772772 if animation_players. get ( parent) . is_ok ( ) {
773- /*println !(
773+ /*debug !(
774774 "found SCENE animation player for {:?} at {:?} Root: {:?}",
775775 all_names.get(child),
776776 all_names.get(parent),
777777 all_names.get(original)
778778 );
779- println !("INSERTING SCENE ANIMATIONS INTO");*/
779+ debug !("INSERTING SCENE ANIMATIONS INTO");*/
780780 let original_animations = anims. get ( original) . unwrap ( ) ;
781781 commands. entity ( child) . insert ( (
782782 InstanceAnimationPlayerLink ( parent) ,
@@ -879,7 +879,7 @@ pub(crate) fn blueprints_finalize_instances(
879879 }
880880 if all_spawned {
881881 // let root_name = all_names.get(track_root.0);
882- // println !("ALLLLL SPAAAAWNED for {} named {:?}", track_root.0, root_name);
882+ // debug !("ALLLLL SPAAAAWNED for {} named {:?}", track_root.0, root_name);
883883 commands. entity ( track_root. 0 ) . insert ( BlueprintChildrenReady ) ;
884884 }
885885 }
0 commit comments