Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mball_tessellate.c
| Show First 20 Lines • Show All 1,090 Lines • ▼ Show 20 Lines | static void init_meta(EvaluationContext *eval_ctx, PROCESS *process, Scene *scene, Object *ob) | ||||
| SceneBaseIter iter; | SceneBaseIter iter; | ||||
| copy_m4_m4(obmat, ob->obmat); /* to cope with duplicators from BKE_scene_base_iter_next */ | copy_m4_m4(obmat, ob->obmat); /* to cope with duplicators from BKE_scene_base_iter_next */ | ||||
| invert_m4_m4(obinv, ob->obmat); | invert_m4_m4(obinv, ob->obmat); | ||||
| BLI_split_name_num(obname, &obnr, ob->id.name + 2, '.'); | BLI_split_name_num(obname, &obnr, ob->id.name + 2, '.'); | ||||
| /* make main array */ | /* make main array */ | ||||
| BKE_scene_base_iter_next(eval_ctx, &iter, &sce_iter, 0, NULL, NULL); | BKE_scene_base_iter_next(eval_ctx, &iter, &sce_iter, 0, scene->lay, NULL, NULL); | ||||
| while (BKE_scene_base_iter_next(eval_ctx, &iter, &sce_iter, 1, &base, &bob)) { | while (BKE_scene_base_iter_next(eval_ctx, &iter, &sce_iter, 1, scene->lay, &base, &bob)) { | ||||
| if (bob->type == OB_MBALL) { | if (bob->type == OB_MBALL) { | ||||
| zero_size = 0; | zero_size = 0; | ||||
| ml = NULL; | ml = NULL; | ||||
| if (bob == ob && (base->flag & OB_FROMDUPLI) == 0) { | if (bob == ob && (base->flag & OB_FROMDUPLI) == 0) { | ||||
| mb = ob->data; | mb = ob->data; | ||||
| if (mb->editelems) ml = mb->editelems->first; | if (mb->editelems) ml = mb->editelems->first; | ||||
| ▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines | |||||