Begin port to GPv3 - change GP type
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ def update_layer_name(self, context):
|
||||
if not self.layer_name:
|
||||
# never replace by nothing (since there should be prefix/suffix)
|
||||
return
|
||||
if not context.object or context.object.type != 'GPENCIL':
|
||||
if not context.object or context.object.type != 'GREASEPENCIL':
|
||||
return
|
||||
if not context.object.data.layers.active:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user