| 368 | } |
| 369 | |
| 370 | void 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 | |
| 381 | void SurfaceTool::set_smooth_group(uint32_t p_group) { |
| 382 | last_smooth_group = p_group; |
no outgoing calls
no test coverage detected