Brushstroke Tools: Initial Version #328
@ -32,6 +32,8 @@ def find_context_brushstrokes(dummy):
|
|||||||
bs.method = ob['BSBST_method']
|
bs.method = ob['BSBST_method']
|
||||||
if name_prev == ob.name:
|
if name_prev == ob.name:
|
||||||
idx = len(settings.context_brushstrokes)-1
|
idx = len(settings.context_brushstrokes)-1
|
||||||
|
if not settings.context_brushstrokes:
|
||||||
|
return
|
||||||
if len_prev == len(settings.context_brushstrokes):
|
if len_prev == len(settings.context_brushstrokes):
|
||||||
settings.active_context_brushstrokes_index = idx
|
settings.active_context_brushstrokes_index = idx
|
||||||
SimonThommes marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
Generally, the code would be easier to read if line lengths were more limited. E.g. for Blender we have a 120 line length limit. That also makes it easier to have two files open next to each other. Such limits can be enforced automatically with auto-formatters like
autopep8
(what we currently use in Blender) or e.g.black
.