38
39
#include "DNA_object_types.h"
40
#include "DNA_mesh_types.h"
39
41
#include "DNA_customdata_types.h"
40
42
#include "DNA_texture_types.h"
43
#include "DNA_scene_types.h"
45
#include "RNA_access.h"
47
#include "BLI_linklist.h"
48
#include "BLI_utildefines.h"
41
50
#include "BKE_context.h"
42
#include "DNA_scene_types.h"
44
typedef std::map<COLLADAFW::TextureMapId, std::vector<MTex*> > TexIndexTextureArrayMap;
51
#include "BKE_object.h"
52
#include "BKE_DerivedMesh.h"
53
#include "BKE_scene.h"
56
#include "ExportSettings.h"
57
#include "collada_internal.h"
59
typedef std::map<COLLADAFW::TextureMapId, std::vector<MTex *> > TexIndexTextureArrayMap;
46
61
extern float bc_get_float_value(const COLLADAFW::FloatOrDoubleArray& array, unsigned int index);
48
62
extern int bc_test_parent_loop(Object *par, Object *ob);
49
extern int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space=true);
63
extern int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space = true);
64
extern Object *bc_add_object(Scene *scene, int type, const char *name);
65
extern Mesh *bc_to_mesh_apply_modifiers(Scene *scene, Object *ob, BC_export_mesh_type export_mesh_type);
67
extern Object *bc_get_assigned_armature(Object *ob);
68
extern Object *bc_get_highest_selected_ancestor_or_self(LinkNode *export_set, Object *ob);
69
extern bool bc_is_base_node(LinkNode *export_set, Object *ob);
70
extern bool bc_is_in_Export_set(LinkNode *export_set, Object *ob);
71
extern bool bc_has_object_type(LinkNode *export_set, short obtype);
73
extern int bc_is_marked(Object *ob);
74
extern void bc_remove_mark(Object *ob);
75
extern void bc_set_mark(Object *ob);
50
77
extern char *bc_CustomData_get_layer_name(const CustomData *data, int type, int n);
51
78
extern char *bc_CustomData_get_active_layer_name(const CustomData *data, int type);
52
extern Object *bc_add_object(Scene *scene, int type, const char *name);
80
extern void bc_bubble_sort_by_Object_name(LinkNode *export_set);
81
extern bool bc_is_root_bone(Bone *aBone, bool deform_bones_only);
82
extern int bc_get_active_UVLayer(Object *ob);
84
extern std::string bc_replace_string(std::string data, const std::string& pattern, const std::string& replacement);
85
extern std::string bc_url_encode(std::string data);
86
extern void bc_match_scale(std::vector<Object *> *objects_done, Scene &sce, UnitConverter &unit_converter);