Changeset View
Changeset View
Standalone View
Standalone View
source/blender/collada/collada_utils.cpp
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_customdata.h" | #include "BKE_customdata.h" | ||||
| #include "BKE_depsgraph.h" | #include "BKE_depsgraph.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_mesh.h" | #include "BKE_mesh.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BKE_DerivedMesh.h" | #include "BKE_DerivedMesh.h" | ||||
| #include "BKE_main.h" | |||||
| #include "ED_armature.h" | #include "ED_armature.h" | ||||
| #include "WM_api.h" // XXX hrm, see if we can do without this | #include "WM_api.h" // XXX hrm, see if we can do without this | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #include "bmesh.h" | #include "bmesh.h" | ||||
| #include "bmesh_tools.h" | #include "bmesh_tools.h" | ||||
| ▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| #if 0 | #if 0 | ||||
| DAG_relations_tag_update(bmain); | DAG_relations_tag_update(bmain); | ||||
| WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); | WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); | ||||
| #endif | #endif | ||||
| return true; | return true; | ||||
| } | } | ||||
| Main *bc_get_main() | |||||
| { | |||||
| return G.main; | |||||
| } | |||||
| EvaluationContext *bc_get_evaluation_context() | |||||
| { | |||||
| Main *bmain = G.main; | |||||
| return bmain->eval_ctx; | |||||
| } | |||||
| Object *bc_add_object(Scene *scene, int type, const char *name) | Object *bc_add_object(Scene *scene, int type, const char *name) | ||||
| { | { | ||||
| Object *ob = BKE_object_add_only_object(G.main, type, name); | Object *ob = BKE_object_add_only_object(G.main, type, name); | ||||
| ob->data = BKE_object_obdata_add_from_type(G.main, type, name); | ob->data = BKE_object_obdata_add_from_type(G.main, type, name); | ||||
| ob->lay = scene->lay; | ob->lay = scene->lay; | ||||
| DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME); | DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME); | ||||
| ▲ Show 20 Lines • Show All 884 Lines • ▼ Show 20 Lines | for (int i = 0; i < me->pdata.totlayer && !has_uvimage; i++) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return UVImages; | return UVImages; | ||||
| } | } | ||||
| No newline at end of file | No newline at end of file | ||||