mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
See #1227. Clear cache when activating drawings.
This commit is contained in:
@@ -1595,6 +1595,9 @@ class CutDecorator:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def install(cls, context):
|
def install(cls, context):
|
||||||
|
DecoratorData.cut_cache.clear()
|
||||||
|
DecoratorData.slice_cache.clear()
|
||||||
|
DecoratorData.fill_cache.clear()
|
||||||
if cls.installed:
|
if cls.installed:
|
||||||
cls.uninstall()
|
cls.uninstall()
|
||||||
handler = cls()
|
handler = cls()
|
||||||
|
|||||||
@@ -2180,7 +2180,6 @@ class ActivateDrawing(bpy.types.Operator, ActivateDrawingBase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
props = tool.Drawing.get_document_props()
|
|
||||||
if not tool.Drawing.get_active_drawing_item():
|
if not tool.Drawing.get_active_drawing_item():
|
||||||
cls.poll_message_set("No drawing selected.")
|
cls.poll_message_set("No drawing selected.")
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user