See #1227. Clear cache when activating drawings.

This commit is contained in:
Dion Moult
2025-03-17 23:05:07 +11:00
parent 778a839e5f
commit e67753eb4f
2 changed files with 3 additions and 1 deletions
@@ -1595,6 +1595,9 @@ class CutDecorator:
@classmethod
def install(cls, context):
DecoratorData.cut_cache.clear()
DecoratorData.slice_cache.clear()
DecoratorData.fill_cache.clear()
if cls.installed:
cls.uninstall()
handler = cls()
@@ -2180,7 +2180,6 @@ class ActivateDrawing(bpy.types.Operator, ActivateDrawingBase):
@classmethod
def poll(cls, context):
props = tool.Drawing.get_document_props()
if not tool.Drawing.get_active_drawing_item():
cls.poll_message_set("No drawing selected.")
return False