Fix (unreported) wrong logic in gpencil UI code.

This commit is contained in:
Bastien Montagne
2018-07-31 13:37:23 +02:00
parent c1185f3d0d
commit 29f13476f0

View File

@@ -728,7 +728,7 @@ class GreasePencilDataPanel:
layout.template_ID(gpd_owner, "grease_pencil", new="gpencil.data_add", unlink="gpencil.data_unlink")
# List of layers/notes.
if gpd or gpd.layers:
if gpd and gpd.layers:
self.draw_layers(context, layout, gpd)
def draw_layers(self, context, layout, gpd):