hasJoints.lua 704 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Check if the Model uses joints for skeletal animation.',
  3. description = 'Returns whether the Model has any skeletal animations.',
  4. arguments = {},
  5. returns = {
  6. jointed = {
  7. type = 'boolean',
  8. description = 'Whether the animation uses joint nodes for skeletal animation.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'jointed' }
  15. }
  16. },
  17. notes = [[
  18. This will return when there's at least one skin in the model, as returned by
  19. `ModelData:getSkinCount`.
  20. Even if this function returns true, the model could still have non-skeletal animations.
  21. Right now a model can only be drawn with one skeletal pose per frame.
  22. ]]
  23. }