Fixed issue with the second path.
This commit is contained in:
@@ -6,6 +6,7 @@ function Vector(rune)
|
||||
this.variables = {"fill_color" : "none","stroke_width" : 5,"stroke_color" : "#ffffff", "line_cap" : "square"};
|
||||
|
||||
this.layer = null;
|
||||
this.coordinates = [];
|
||||
|
||||
this.install = function()
|
||||
{
|
||||
@@ -27,6 +28,7 @@ function Vector(rune)
|
||||
|
||||
this.active = function(cmd)
|
||||
{
|
||||
this.coordinates = [];
|
||||
this.layer.clear();
|
||||
ronin.surface.active_layer.context().lineCap = cmd.variable("line_cap") ? cmd.variable("line_cap").value : "round";
|
||||
ronin.surface.active_layer.context().lineWidth = cmd.variable("stroke_width") ? cmd.variable("stroke_width").value : 5;
|
||||
@@ -51,8 +53,6 @@ function Vector(rune)
|
||||
}
|
||||
}
|
||||
|
||||
this.coordinates = [];
|
||||
|
||||
this.create_command = function()
|
||||
{
|
||||
var command = "+ ";
|
||||
|
Reference in New Issue
Block a user