π‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Cannot clone Sketchup::Color objects
-
When you try to clone a Sketchup::Color object using .dup or .clone both methods return nil.
I ran into a case where I cloned a colour - at least I thought so - and gave it to a view.draw operation where SketchUp would then freeze.` c = Sketchup::Color.new('red')
Color(255, 0, 0, 255)
n = c.clone
nil
n = c.dup
nil`FYI
Advertisement