mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 14:06:23 +01:00
[Inspector Panel] Fix matrixbox display inline in spacious view.
This commit is contained in:
parent
6bb6ac0ebc
commit
da3c628ec2
3 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,12 +37,9 @@ function Node_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con
|
|||
|
||||
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",
|
||||
-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 = [];
|
||||
|
||||
|
|
|
@ -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.;
|
||||
|
|
Loading…
Reference in a new issue