8 #include "COLLADABUPlatform.h"
29 fprintf(stderr,
"+-- Collada Import parameters------\n");
30 fprintf(stderr,
"| input file : %s\n", import_settings.
filepath);
31 fprintf(stderr,
"| use units : %s\n", (import_settings.
import_units) ?
"yes" :
"no");
32 fprintf(stderr,
"| autoconnect : %s\n", (import_settings.
auto_connect) ?
"yes" :
"no");
33 fprintf(stderr,
"+-- Armature Import parameters ----\n");
34 fprintf(stderr,
"| find bone chains: %s\n", (import_settings.
find_chains) ?
"yes" :
"no");
36 fprintf(stderr,
"| fix orientation : %s\n", (import_settings.
fix_orientation) ?
"yes" :
"no");
37 fprintf(stderr,
"| keep bind info : %s\n", (import_settings.
keep_bind_info) ?
"yes" :
"no");
42 fprintf(stderr,
"+----------------------------------\n");
43 fprintf(stderr,
"| Collada Import : %s\n", (status) ?
"OK" :
"FAIL");
44 fprintf(stderr,
"+----------------------------------\n");
51 int status = imp.
import() ? 1 : 0;
59 BlenderContext blender_context(
C);
60 ViewLayer *view_layer = blender_context.get_view_layer();
79 if (export_count == 0) {
82 "Collada: Found no objects to export.\nPlease ensure that all objects which shall "
83 "be exported are also visible in the 3D Viewport.\n");
86 fprintf(stderr,
"Collada: Your scene seems to be empty. No Objects will be exported.\n");
100 return (status) ? -1 : export_count;
@ OB_REL_CHILDREN_RECURSIVE
struct LinkNode * BKE_object_relational_superset(struct ViewLayer *view_layer, eObjectSet objectSet, eObRelationTypes includeFilter)
File and directory operations.
int BLI_linklist_count(const LinkNode *list) ATTR_WARN_UNUSED_RESULT
void BLI_linklist_free(LinkNode *list, LinkNodeFreeFP freefunc)
int collada_import(bContext *C, ImportSettings *import_settings)
static void print_import_footer(int status)
static void print_import_header(ImportSettings &import_settings)
int collada_export(bContext *C, ExportSettings *export_settings)
void bc_bubble_sort_by_Object_name(LinkNode *export_set)