Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of commented-out code #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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*(# )?<?https?://\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
Expand Down
5 changes: 0 additions & 5 deletions addon/MaterialPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class MaterialPanel(bpy.types.Panel):

@classmethod
def poll(cls, context):
# MPItemIdUpdate(self, context)
return True

def draw(self, context):
Expand All @@ -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)
Expand Down Expand Up @@ -161,7 +157,6 @@ def draw(self, context):
layout.label(text="Nothing is here")

def check(self, context):
# MPItemIdUpdate(self, context)
return True


Expand Down
2 changes: 1 addition & 1 deletion addon/mapHelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion addon/utils/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("/"):
Expand Down