[Bf-blender-cvs] [29f13476f0d] blender2.8: Fix (unreported) wrong logic in gpencil UI code.
Bastien Montagne
noreply at git.blender.org
Tue Jul 31 13:42:27 CEST 2018
Commit: 29f13476f0d2a345b959e8ffbc2db7b9c42a19e0
Author: Bastien Montagne
Date: Tue Jul 31 13:37:23 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB29f13476f0d2a345b959e8ffbc2db7b9c42a19e0
Fix (unreported) wrong logic in gpencil UI code.
===================================================================
M release/scripts/startup/bl_ui/properties_grease_pencil_common.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index 7426d2d463f..42c75ec29ac 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -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):
More information about the Bf-blender-cvs
mailing list