Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_displace.c
| Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | if (CustomData_has_layer(ldata, CD_CUSTOMLOOPNORMAL)) { | ||||
| verts_num, BKE_mesh_loops(mesh), mesh->totloop, (const float(*)[3])clnors, vert_clnors); | verts_num, BKE_mesh_loops(mesh), mesh->totloop, (const float(*)[3])clnors, vert_clnors); | ||||
| } | } | ||||
| else { | else { | ||||
| direction = MOD_DISP_DIR_NOR; | direction = MOD_DISP_DIR_NOR; | ||||
| } | } | ||||
| } | } | ||||
| else if (ELEM(direction, MOD_DISP_DIR_X, MOD_DISP_DIR_Y, MOD_DISP_DIR_Z, MOD_DISP_DIR_RGB_XYZ) && | else if (ELEM(direction, MOD_DISP_DIR_X, MOD_DISP_DIR_Y, MOD_DISP_DIR_Z, MOD_DISP_DIR_RGB_XYZ) && | ||||
| use_global_direction) { | use_global_direction) { | ||||
| copy_m4_m4(local_mat, ob->obmat); | copy_m4_m4(local_mat, ob->object_to_world); | ||||
| } | } | ||||
| DisplaceUserdata data = {NULL}; | DisplaceUserdata data = {NULL}; | ||||
| data.scene = DEG_get_evaluated_scene(ctx->depsgraph); | data.scene = DEG_get_evaluated_scene(ctx->depsgraph); | ||||
| data.dmd = dmd; | data.dmd = dmd; | ||||
| data.dvert = dvert; | data.dvert = dvert; | ||||
| data.weight = weight; | data.weight = weight; | ||||
| data.defgrp_index = defgrp_index; | data.defgrp_index = defgrp_index; | ||||
| ▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines | |||||