Skip to content

Commit ba64334

Browse files
committed
minor change
1 parent 76e69ee commit ba64334

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

simloader/callback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import bpy
22
import fileseq
33

4-
# Code here are mostly about the callback functions and update functions used in properties.py
4+
# Code here are mostly about the callback/update/items functions used in properties.py
55

66

77
def update_path(self, context):
@@ -11,7 +11,7 @@ def update_path(self, context):
1111
context.scene.SIMLOADER.pattern = ""
1212

1313

14-
def callback_fileseq(self, context):
14+
def item_fileseq(self, context):
1515
'''
1616
Detects all the file sequences in the directory
1717
'''

simloader/properties.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SIMLOADER_scene_property(bpy.types.PropertyGroup):
1111
fileseq: bpy.props.EnumProperty(
1212
name="File Sequences",
1313
description="Please choose the file sequences you want",
14-
items=callback_fileseq,
14+
items=item_fileseq,
1515
)
1616
use_pattern: bpy.props.BoolProperty(name='Use pattern',
1717
description="whether or not to use manually typed pattern",
@@ -30,14 +30,15 @@ class SIMLOADER_scene_property(bpy.types.PropertyGroup):
3030
poll=poll_material,
3131
)
3232

33-
print:bpy.props.BoolProperty(name='print',
34-
description="whether or not to print additional information when rendering",
35-
default=True)
33+
print: bpy.props.BoolProperty(name='print',
34+
description="whether or not to print additional information when rendering",
35+
default=True)
3636

3737

3838
class SIMLOADER_obj_property(bpy.types.PropertyGroup):
3939
init: bpy.props.BoolProperty(default=False)
40-
enabled: bpy.props.BoolProperty(default=True)
40+
enabled: bpy.props.BoolProperty(default=True,
41+
description="When disbaled, the sequence won't be updated at each frame. Enabled by default")
4142
use_advance: bpy.props.BoolProperty(default=False)
4243
script_name: bpy.props.StringProperty()
4344
use_relative: bpy.props.BoolProperty(default=False)
@@ -46,4 +47,4 @@ class SIMLOADER_obj_property(bpy.types.PropertyGroup):
4647

4748
# set this property for mesh, not object (maybe change later?)
4849
class SIMLOADER_mesh_property(bpy.types.PropertyGroup):
49-
split_norm_att_name : bpy.props.StringProperty(default="")
50+
split_norm_att_name: bpy.props.StringProperty(default="")

0 commit comments

Comments
 (0)