Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzBrueckner committed Dec 21, 2023
1 parent a67b5f5 commit 6c09dbb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions blender/arm/logicnode/sound/LN_play_sound.py
Expand Up @@ -42,7 +42,7 @@ def remove_extra_inputs(self, context):
self.add_input('ArmStringSocket', 'Sound Name')

property0: HaxePointerProperty('property0', name='', type=bpy.types.Sound)

property1: HaxeBoolProperty(
'property1',
name='Loop',
Expand Down Expand Up @@ -78,7 +78,6 @@ def remove_extra_inputs(self, context):
name='', default='Sound', update=remove_extra_inputs)

def arm_init(self, context):

self.add_input('ArmNodeSocketAction', 'Play')
self.add_input('ArmNodeSocketAction', 'Pause')
self.add_input('ArmNodeSocketAction', 'Stop')
Expand All @@ -90,14 +89,13 @@ def arm_init(self, context):
self.add_output('ArmNodeSocketAction', 'Done')

def draw_buttons(self, context, layout):

layout.prop(self, 'property6')

col = layout.column(align=True)

if self.property6 == 'Sound':
col.prop_search(self, 'property0', bpy.data, 'sounds', icon='NONE', text='')

col.prop(self, 'property5')
col.prop(self, 'property1')
col.prop(self, 'property2')
Expand Down

0 comments on commit 6c09dbb

Please sign in to comment.