MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / set_weights

Method set_weights

scene/resources/surface_tool.cpp:370–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void SurfaceTool::set_weights(const Vector<float> &p_weights) {
371 ERR_FAIL_COND(!begun);
372 ERR_FAIL_COND(!first && !(format & Mesh::ARRAY_FORMAT_WEIGHTS));
373
374 format |= Mesh::ARRAY_FORMAT_WEIGHTS;
375 if (skin_weights == SKIN_8_WEIGHTS) {
376 format |= Mesh::ARRAY_FLAG_USE_8_BONE_WEIGHTS;
377 }
378 last_weights = p_weights;
379}
380
381void SurfaceTool::set_smooth_group(uint32_t p_group) {
382 last_smooth_group = p_group;

Callers 7

get_bones_meshMethod · 0.80
get_joints_meshMethod · 0.80
get_joints_meshMethod · 0.80
get_joints_meshMethod · 0.80
_create_mesh_surfacesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected