Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editface.cc
| Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | |||||
| bool paintface_minmax(Object *ob, float r_min[3], float r_max[3]) | bool paintface_minmax(Object *ob, float r_min[3], float r_max[3]) | ||||
| { | { | ||||
| using namespace blender; | using namespace blender; | ||||
| bool ok = false; | bool ok = false; | ||||
| float vec[3], bmat[3][3]; | float vec[3], bmat[3][3]; | ||||
| const Mesh *me = BKE_mesh_from_object(ob); | const Mesh *me = BKE_mesh_from_object(ob); | ||||
| if (!me || !CustomData_has_layer(&me->ldata, CD_MLOOPUV)) { | if (!me || !CustomData_has_layer(&me->ldata, CD_PROP_FLOAT2)) { | ||||
| return ok; | return ok; | ||||
| } | } | ||||
| copy_m3_m4(bmat, ob->object_to_world); | copy_m3_m4(bmat, ob->object_to_world); | ||||
| const Span<float3> positions = me->vert_positions(); | const Span<float3> positions = me->vert_positions(); | ||||
| const Span<MPoly> polys = me->polys(); | const Span<MPoly> polys = me->polys(); | ||||
| const Span<MLoop> loops = me->loops(); | const Span<MLoop> loops = me->loops(); | ||||
| ▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines | |||||