Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lattice.c
| Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | IDTypeInfo IDType_ID_LT = { | ||||
| .foreach_cache = NULL, | .foreach_cache = NULL, | ||||
| .blend_write = lattice_blend_write, | .blend_write = lattice_blend_write, | ||||
| .blend_read_data = lattice_blend_read_data, | .blend_read_data = lattice_blend_read_data, | ||||
| .blend_read_lib = lattice_blend_read_lib, | .blend_read_lib = lattice_blend_read_lib, | ||||
| .blend_read_expand = lattice_blend_read_expand, | .blend_read_expand = lattice_blend_read_expand, | ||||
| .blend_read_undo_preserve = NULL, | .blend_read_undo_preserve = NULL, | ||||
| .lib_override_apply_post = NULL, | |||||
| }; | }; | ||||
| int BKE_lattice_index_from_uvw(Lattice *lt, const int u, const int v, const int w) | int BKE_lattice_index_from_uvw(Lattice *lt, const int u, const int v, const int w) | ||||
| { | { | ||||
| const int totu = lt->pntsu; | const int totu = lt->pntsu; | ||||
| const int totv = lt->pntsv; | const int totv = lt->pntsv; | ||||
| return (w * (totu * totv) + (v * totu) + u); | return (w * (totu * totv) + (v * totu) + u); | ||||
| ▲ Show 20 Lines • Show All 603 Lines • Show Last 20 Lines | |||||