diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index ed31a847933..71d6771c487 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -957,7 +957,7 @@ class _defs_vertex_paint: if context is None: return True ob = context.active_object - return (ob.type == 'MESH' and + return (ob and ob.type == 'MESH' and (ob.data.use_paint_mask or ob.data.use_paint_mask_vertex)) @@ -979,7 +979,7 @@ class _defs_texture_paint: if context is None: return True ob = context.active_object - return (ob.type == 'MESH' and + return (ob and ob.type == 'MESH' and (ob.data.use_paint_mask)) @staticmethod @@ -1000,7 +1000,7 @@ class _defs_weight_paint: if context is None: return True ob = context.active_object - return (ob.type == 'MESH' and + return (ob and ob.type == 'MESH' and (ob.data.use_paint_mask or ob.data.use_paint_mask_vertex)) |