fix: wrong grease pencil frame after layer update
This commit is contained in:
@ -226,7 +226,6 @@ def load_layer(layer_data, layer):
|
|||||||
load_frame(frame_data, target_frame)
|
load_frame(frame_data, target_frame)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class BlGpencil(BlDatablock):
|
class BlGpencil(BlDatablock):
|
||||||
bl_id = "grease_pencils"
|
bl_id = "grease_pencils"
|
||||||
bl_class = bpy.types.GreasePencil
|
bl_class = bpy.types.GreasePencil
|
||||||
@ -265,6 +264,7 @@ class BlGpencil(BlDatablock):
|
|||||||
|
|
||||||
load_layer(layer_data, target_layer)
|
load_layer(layer_data, target_layer)
|
||||||
|
|
||||||
|
target.layers.update()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user