Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvg_util.c
| Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | void weightvg_do_mask( | ||||
| int ref_didx; | int ref_didx; | ||||
| int i; | int i; | ||||
| /* If influence factor is null, nothing to do! */ | /* If influence factor is null, nothing to do! */ | ||||
| if (fact == 0.0f) return; | if (fact == 0.0f) return; | ||||
| /* If we want to mask vgroup weights from a texture. */ | /* If we want to mask vgroup weights from a texture. */ | ||||
| if (texture != NULL) { | if (texture != NULL) { | ||||
| texture = (Tex *)DEG_get_evaluated_id(ctx->depsgraph, &texture->id); | |||||
| /* The texture coordinates. */ | /* The texture coordinates. */ | ||||
| float (*tex_co)[3]; | float (*tex_co)[3]; | ||||
| /* See mapping note below... */ | /* See mapping note below... */ | ||||
| MappingInfoModifierData t_map; | MappingInfoModifierData t_map; | ||||
| const int numVerts = mesh->totvert; | const int numVerts = mesh->totvert; | ||||
| /* Use new generic get_texture_coords, but do not modify our DNA struct for it... | /* Use new generic get_texture_coords, but do not modify our DNA struct for it... | ||||
| * XXX Why use a ModifierData stuff here ? Why not a simple, generic struct for parameters ? | * XXX Why use a ModifierData stuff here ? Why not a simple, generic struct for parameters ? | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||