[Inspector Panel] Fix matrixbox display inline in spacious view.

This commit is contained in:
Tanasart 2024-10-09 08:56:39 +07:00
parent 6bb6ac0ebc
commit da3c628ec2
3 changed files with 7 additions and 8 deletions

View file

@ -34,7 +34,7 @@ function drawWidget(xx, yy, ww, _m, jun, global_var = true, _hover = false, _foc
break;
case "matrixGrid" :
breakLine = wid.size > 5;
breakLine |= wid.size > 5;
break;
}

View file

@ -36,13 +36,10 @@ function Node_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con
newInput(1, nodeValue_Bool("Background", self, false));
shape_types = [
"Rectangle", "Diamond", "Trapezoid", "Parallelogram",
-1,
"Ellipse", "Arc", "Donut", "Crescent", "Disk Segment", "Pie", "Squircle",
-1,
"Regular polygon", "Star", "Cross", "Rounded Cross",
-1,
"Teardrop", "Leaf", "Heart", "Arrow", "Gear",
"Rectangle", "Diamond", "Trapezoid", "Parallelogram",
-1, "Ellipse", "Arc", "Donut", "Crescent", "Disk Segment", "Pie", "Squircle",
-1, "Regular polygon", "Star", "Cross", "Rounded Cross",
-1, "Teardrop", "Leaf", "Heart", "Arrow", "Gear",
];
shape_types_str = [];

View file

@ -37,6 +37,8 @@ void main() {
sum = 0.;
int amo = size * size;
for(int i = 0; i < amo; i++) sum += kernel[i];
if(sum == 0.) sum = 1.;
}
float st = -(float(size) - 1.) / 2.;