Class: RuboCop::Cop::SketchupDeprecations::SetTextureProjection
- Inherits:
-
SketchUp::Cop
- Object
- SketchUp::WorkaroundCop
- SketchUp::Cop
- RuboCop::Cop::SketchupDeprecations::SetTextureProjection
- Defined in:
- lib/rubocop/sketchup/cop/deprecations/set_texture_projection.rb
Overview
Method is deprecated because it creates invalid UV mapping. Saving the model will display a dialog indicating that the model needs to be repaired. Once repaired the UV mapping will visually change.
Constant Summary collapse
- MSG =
'Method is deprecated. It can create invalid UV mapping.'
Constants included from SketchUp::Config
SketchUp::Config::DEFAULT_CONFIGURATION
Instance Method Summary collapse
Methods inherited from SketchUp::Cop
Instance Method Details
#on_send(node) ⇒ Object
17 18 19 20 21 |
# File 'lib/rubocop/sketchup/cop/deprecations/set_texture_projection.rb', line 17 def on_send(node) return unless set_texture_projection?(node) add_offense(node, location: :selector) end |