Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_boolean.c
| Context not available. | |||||
| const short ob_src_totcol = other->totcol; | const short ob_src_totcol = other->totcol; | ||||
| short *material_remap = BLI_array_alloca(material_remap, ob_src_totcol ? ob_src_totcol : 1); | short *material_remap = BLI_array_alloca(material_remap, ob_src_totcol ? ob_src_totcol : 1); | ||||
| /* Using original (not evaluated) object here since we are writing to it. */ | /* Using original (not evaluated) objects here since we are using the material pointes | ||||
| /* XXX Pretty sure comment above is fully wrong now with CoW & co ? */ | * to look up the material index. Those might go out of sync because of CoW */ | ||||
| BKE_material_remap_object_calc(ctx->object, other, material_remap); | Object *orig_dst = (Object *)DEG_get_original_id(&ctx->object->id); | ||||
| Object *orig_src = (Object *)DEG_get_original_id(&other->id); | |||||
| BKE_material_remap_object_calc(orig_dst, orig_src, material_remap); | |||||
| BMFace *efa; | BMFace *efa; | ||||
| i = 0; | i = 0; | ||||
| Context not available. | |||||