Fix #132112: Grease Pencil: Draw overlays for active object
`object_is_paint_mode()` returns true for objects that are not in active interaction mode. This results in drawing of overlays for each Grease Pencil object. Now fixed with adjusted condition. Pull Request: https://projects.blender.org/blender/blender/pulls/132159
This commit is contained in:
committed by
Falk David
parent
a6b293daac
commit
25286dd2cd
@@ -602,7 +602,7 @@ bool Instance::object_is_selected(const ObjectRef &ob_ref)
|
||||
|
||||
bool Instance::object_is_paint_mode(const Object *object)
|
||||
{
|
||||
if (object->type == OB_GREASE_PENCIL && (state.object_mode & OB_MODE_ALL_PAINT_GPENCIL)) {
|
||||
if (object->type == OB_GREASE_PENCIL && (object->mode & OB_MODE_ALL_PAINT_GPENCIL)) {
|
||||
return true;
|
||||
}
|
||||
return (object == state.object_active) && (state.object_mode & OB_MODE_ALL_PAINT);
|
||||
|
||||
Reference in New Issue
Block a user