Skip to content

Commit

Permalink
pep8 for cm_prefs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnroper100 committed Oct 2, 2016
1 parent 514aa50 commit 4a16607
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cm_prefs.py
Expand Up @@ -6,6 +6,7 @@
from . import icon_load
from . icon_load import cicon


class CMSavePrefs(bpy.types.Operator):
"""Save the CrowdMaster preferences """
bl_idname = "scene.cm_save_prefs"
Expand Down Expand Up @@ -73,13 +74,13 @@ class CMPreferences(AddonPreferences):
description="Start and stop the animation automatically when the start and stop sim buttons are pressed.",
default=True,
)

ask_to_save = BoolProperty(
name="Ask To Save",
description="Chose whether the current file has to be saved or not before simulating or generating.",
default=True,
)

use_node_color = BoolProperty(
name="Use Node Color",
description="Choose whether or not to show the node info colors while simulating.",
Expand All @@ -102,7 +103,7 @@ def draw(self, context):
if preferences.prefs_tab == "GEN":
row = layout.row()
row.prop(preferences, 'use_custom_icons', icon_value=cicon('plug'))

if preferences.use_custom_icons:
row.prop(preferences, 'play_animation', icon_value=cicon('shuffle'))
else:
Expand Down

0 comments on commit 4a16607

Please sign in to comment.