Pullusb 2021-07-30 18:24:54 +02:00
parent 985e395beb
commit e6ff824684
1 changed files with 6 additions and 6 deletions

View File

@ -500,11 +500,11 @@ def obj_layer_name_callback():
return return
if not res.group('name'): if not res.group('name'):
return return
print('grp:', res.group('grp')) # print('grp:', res.group('grp'))
print('tag:', res.group('tag')) # print('tag:', res.group('tag'))
print('name:', res.group('name')) # print('name:', res.group('name'))
print('sfix:', res.group('sfix')) # print('sfix:', res.group('sfix'))
print('inc:', res.group('inc')) # print('inc:', res.group('inc'))
bpy.context.scene.gptoolprops['layer_name'] = res.group('name') bpy.context.scene.gptoolprops['layer_name'] = res.group('name')
@persistent @persistent
@ -514,7 +514,7 @@ def subscribe_handler(dummy):
key=subscribe_to, key=subscribe_to,
# owner of msgbus subcribe (for clearing later) # owner of msgbus subcribe (for clearing later)
# owner=handle, # owner=handle,
owner=bpy.types.GreasePencil, # <-- can atach to an ID during all it's lifetime... owner=bpy.types.GreasePencil, # <-- can attach to an ID during all it's lifetime...
# Args passed to callback function (tuple) # Args passed to callback function (tuple)
args=(), args=(),
# Callback function for property update # Callback function for property update