Browse Source

assignement to itself is unnessecary

https://lgtm.com/projects/g/mrdoob/three.js/snapshot/9787df2d17f268a60d2b194a532620a8ee502111/files/utils/converters/fbx/convert_to_threejs.py?sort=name&dir=ASC&mode=heatmap&excluded=false#xaaf74a80914aab53:1
gero3 7 years ago
parent
commit
c713e695b9
1 changed files with 0 additions and 2 deletions
  1. 0 2
      utils/converters/fbx/convert_to_threejs.py

+ 0 - 2
utils/converters/fbx/convert_to_threejs.py

@@ -338,7 +338,6 @@ def generate_material_object(material):
         emissive  = getHex(material.Emissive.Get())
         opacity   = 1.0 - material.TransparencyFactor.Get()
         opacity   = 1.0 if opacity == 0 else opacity
-        opacity   = opacity
         transparent = False
         reflectivity = 1
 
@@ -363,7 +362,6 @@ def generate_material_object(material):
         specular  = getHex(material.Specular.Get())
         opacity   = 1.0 - material.TransparencyFactor.Get()
         opacity   = 1.0 if opacity == 0 else opacity
-        opacity   = opacity
         shininess = material.Shininess.Get()
         transparent = False
         reflectivity = 1