fixing paint switch

master
Mark MacKay 2021-04-15 19:24:06 -05:00
parent 1ecbba3852
commit c3d2eb1711
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ MD.PaintBox = function(container, type){
if (isNaN(stroke_opacity)) {stroke_opacity = 100;}
var fill_opacity = parseFloat(fill_rect.getAttribute("fill-opacity"));
if (isNaN(fill_opacity)) {fill_opacity = 100;}
var stroke = _self.getPaint(stroke_color, stroke_opacity, "stroke");
var fill = _self.getPaint(fill_color, fill_opacity, "fill");
var stroke = editor.paintBox.stroke.getPaint(stroke_color, stroke_opacity, "stroke");
var fill = editor.paintBox.fill.getPaint(fill_color, fill_opacity, "fill");
editor.paintBox.fill.setPaint(stroke, true);
editor.paintBox.stroke.setPaint(fill, true);
});