10#include "COLLADABUPlatform.h"
31 fprintf(stderr,
"+-- Collada Import parameters------\n");
32 fprintf(stderr,
"| input file : %s\n", import_settings.
filepath);
33 fprintf(stderr,
"| use units : %s\n", (import_settings.
import_units) ?
"yes" :
"no");
34 fprintf(stderr,
"| custom normals : %s\n", (import_settings.
custom_normals) ?
"yes" :
"no");
35 fprintf(stderr,
"| autoconnect : %s\n", (import_settings.
auto_connect) ?
"yes" :
"no");
36 fprintf(stderr,
"+-- Armature Import parameters ----\n");
37 fprintf(stderr,
"| find bone chains: %s\n", (import_settings.
find_chains) ?
"yes" :
"no");
39 fprintf(stderr,
"| fix orientation : %s\n", (import_settings.
fix_orientation) ?
"yes" :
"no");
40 fprintf(stderr,
"| keep bind info : %s\n", (import_settings.
keep_bind_info) ?
"yes" :
"no");
45 fprintf(stderr,
"+----------------------------------\n");
46 fprintf(stderr,
"| Collada Import : %s\n", (status) ?
"OK" :
"FAIL");
47 fprintf(stderr,
"+----------------------------------\n");
54 int status = imp.
import() ? 1 : 0;
62 BlenderContext blender_context(C);
63 const Scene *scene = blender_context.get_scene();
64 ViewLayer *view_layer = blender_context.get_view_layer();
83 if (export_count == 0) {
86 "Collada: Found no objects to export.\nPlease ensure that all objects which shall "
87 "be exported are also visible in the 3D Viewport.\n");
90 fprintf(stderr,
"Collada: Your scene seems to be empty. No Objects will be exported.\n");
104 return (status) ? -1 : export_count;
@ OB_REL_CHILDREN_RECURSIVE
LinkNode * BKE_object_relational_superset(const Scene *scene, 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)