diff --git a/.pylintrc b/.pylintrc index 7d035f0..5e1b6a8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -98,7 +98,7 @@ expected-line-ending-format=LF # Regexp for a line that is allowed to be longer than the limit. ignore-long-lines=^\s*(# )??$ -# Number of spaces of indent required inside a hanging or continued line. +# Number of spaces of indent required inside a hanging or continued line. indent-after-paren=2 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 diff --git a/addon/MaterialPanel.py b/addon/MaterialPanel.py index b5a7785..9dd907d 100644 --- a/addon/MaterialPanel.py +++ b/addon/MaterialPanel.py @@ -84,7 +84,6 @@ class MaterialPanel(bpy.types.Panel): @classmethod def poll(cls, context): - # MPItemIdUpdate(self, context) return True def draw(self, context): @@ -95,9 +94,6 @@ def draw(self, context): name = wm.MPMaterials[wm.MPItemId].matName material = MM.MATERIALS[name] -# if name != "none": -# layout.template_preview(bpy.data.textures[material["fancyname"]], show_buttons=True) - layout.template_list("UIList", "", wm, "MPMaterials", wm, "MPItemId") row = layout.row(align=True) @@ -161,7 +157,6 @@ def draw(self, context): layout.label(text="Nothing is here") def check(self, context): - # MPItemIdUpdate(self, context) return True diff --git a/addon/mapHelpers.py b/addon/mapHelpers.py index 5524930..aa51a41 100644 --- a/addon/mapHelpers.py +++ b/addon/mapHelpers.py @@ -152,7 +152,7 @@ def draw(self, context): if result["light"] == 0: error = True - layout.label(text="There is no light in the map you need at least one light.", icon='CANCEL') + layout.label(text="There is no light in the map, you need at least one light.", icon='CANCEL') layout.separator() elif result["light"] > 5: self.light = result["light"] diff --git a/addon/utils/directory.py b/addon/utils/directory.py index b6cfd5e..6f91d00 100644 --- a/addon/utils/directory.py +++ b/addon/utils/directory.py @@ -58,7 +58,7 @@ def browse( def dictTransformKeys(data, prefix=""): - """Convert dictionary keys to as single string""" + """Convert dictionary keys to a single string""" values = {} for k, v in data.items(): if prefix and not prefix.endswith("/"):