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;
|
break;
|
||||||
|
|
||||||
case "matrixGrid" :
|
case "matrixGrid" :
|
||||||
breakLine = wid.size > 5;
|
breakLine |= wid.size > 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,13 +36,10 @@ function Node_Shape(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) con
|
||||||
newInput(1, nodeValue_Bool("Background", self, false));
|
newInput(1, nodeValue_Bool("Background", self, false));
|
||||||
|
|
||||||
shape_types = [
|
shape_types = [
|
||||||
"Rectangle", "Diamond", "Trapezoid", "Parallelogram",
|
"Rectangle", "Diamond", "Trapezoid", "Parallelogram",
|
||||||
-1,
|
-1, "Ellipse", "Arc", "Donut", "Crescent", "Disk Segment", "Pie", "Squircle",
|
||||||
"Ellipse", "Arc", "Donut", "Crescent", "Disk Segment", "Pie", "Squircle",
|
-1, "Regular polygon", "Star", "Cross", "Rounded Cross",
|
||||||
-1,
|
-1, "Teardrop", "Leaf", "Heart", "Arrow", "Gear",
|
||||||
"Regular polygon", "Star", "Cross", "Rounded Cross",
|
|
||||||
-1,
|
|
||||||
"Teardrop", "Leaf", "Heart", "Arrow", "Gear",
|
|
||||||
];
|
];
|
||||||
shape_types_str = [];
|
shape_types_str = [];
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ void main() {
|
||||||
sum = 0.;
|
sum = 0.;
|
||||||
int amo = size * size;
|
int amo = size * size;
|
||||||
for(int i = 0; i < amo; i++) sum += kernel[i];
|
for(int i = 0; i < amo; i++) sum += kernel[i];
|
||||||
|
|
||||||
|
if(sum == 0.) sum = 1.;
|
||||||
}
|
}
|
||||||
|
|
||||||
float st = -(float(size) - 1.) / 2.;
|
float st = -(float(size) - 1.) / 2.;
|
||||||
|
|
Loading…
Reference in a new issue