mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
See #1227. Clear cache when activating drawings.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user