Class: Rgltf::Validation::Animations

Inherits:
Rule
  • Object
show all
Defined in:
lib/rgltf/validation/animations.rb

Constant Summary collapse

PATHS =
%w[translation rotation scale weights].freeze
INTERPOLATIONS =
%w[LINEAR STEP CUBICSPLINE].freeze

Instance Method Summary collapse

Methods inherited from Rule

#initialize

Constructor Details

This class inherits a constructor from Rgltf::Validation::Rule

Instance Method Details

#validateObject



9
10
11
12
13
# File 'lib/rgltf/validation/animations.rb', line 9

def validate
  array('animations').each_with_index do |raw, index|
    validate_animation(object(raw, "animations/#{index}"), index)
  end
end