Fixed a graphics bug during cloning
This commit is contained in:
Max Smirnov
2024-06-15 22:43:50 +03:00
committed by GitHub
parent 881e86c9d0
commit f1437b60af
+1 -1
View File
@@ -28,7 +28,7 @@ class MXSlider
{
this.outputs[0].name = "";
this.widgets_start_y = -8;
this.intpos.x = (this.properties.value - this.properties.min) / (this.properties.max - this.properties.min);
this.intpos.x = clamp((this.properties.value-this.properties.min)/(this.properties.max-this.properties.min),0,1);
this.outputs[0].type = (this.properties.decimals > 0)?"FLOAT":"INT";
if (this.size) if (this.size.length) if (this.size[1] > LiteGraph.NODE_SLOT_HEIGHT*1.5) this.size[1] = LiteGraph.NODE_SLOT_HEIGHT*1.5;
};