Ver código fonte

Fix pylint errors on shader_functions.

Ryan Roden-Corrent 6 anos atrás
pai
commit
236ab0d482

+ 14 - 7
io_scene_godot/converters/material/script_shader/shader_functions.py

@@ -464,13 +464,15 @@ void node_math_sqrt_no_clamp(float value1, float value2, out float result) {
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_absolute_no_clamp(float value1, float value2, out float result) {
+void node_math_absolute_no_clamp(float value1, float value2,
+        out float result) {
     result = abs(value1);
     result = abs(value1);
 }
 }
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_minimum_no_clamp(float value1, float value2, out float result) {
+void node_math_minimum_no_clamp(float value1, float value2,
+        out float result) {
     result = min(value1, value2);
     result = min(value1, value2);
 }
 }
 """),
 """),
@@ -482,13 +484,15 @@ void node_math_maximum_no_clamp(float value1, float value2, out float result) {
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_less_than_no_clamp(float value1, float value2, out float result) {
+void node_math_less_than_no_clamp(float value1, float value2,
+        out float result) {
     result = float(value1 < value2);
     result = float(value1 < value2);
 }
 }
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_greater_than_no_clamp(float value1, float value2, out float result) {
+void node_math_greater_than_no_clamp(float value1, float value2,
+        out float result) {
     result = float(value1 > value2);
     result = float(value1 > value2);
 }
 }
 """),
 """),
@@ -551,7 +555,8 @@ void node_math_arcsine_no_clamp(float value1, float value2, out float result) {
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_arccosine_no_clamp(float value1, float value2, out float result) {
+void node_math_arccosine_no_clamp(float value1, float value2,
+        out float result) {
     if (value1 < 0.0 || value1 > 1.0)
     if (value1 < 0.0 || value1 > 1.0)
         result = 0.0;
         result = 0.0;
     else
     else
@@ -560,7 +565,8 @@ void node_math_arccosine_no_clamp(float value1, float value2, out float result)
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_arctangent_no_clamp(float value1, float value2, out float result) {
+void node_math_arctangent_no_clamp(float value1, float value2,
+        out float result) {
     result = atan(value1);
     result = atan(value1);
 }
 }
 """),
 """),
@@ -644,7 +650,8 @@ void node_math_less_than_clamp(float value1, float value2, out float result) {
 """),
 """),
 
 
     ShaderFunction(code="""
     ShaderFunction(code="""
-void node_math_greater_than_clamp(float value1, float value2, out float result) {
+void node_math_greater_than_clamp(float value1, float value2,
+        out float result) {
     result = clamp(float(value1 > value2), 0.0, 1.0);
     result = clamp(float(value1 > value2), 0.0, 1.0);
 }
 }
 """),
 """),