From c1d2eec91b80cad7e91e67bcc5b5ec853b05680c Mon Sep 17 00:00:00 2001 From: Film Freedom Project <84346803+filmfreedom-org@users.noreply.github.com> Date: Sat, 29 May 2021 00:53:55 -0500 Subject: [PATCH] Delete context.py Redundant file removed (this code is in abx_ui.py now). --- abx/context.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 abx/context.py diff --git a/abx/context.py b/abx/context.py deleted file mode 100644 index 0ea3c65..0000000 --- a/abx/context.py +++ /dev/null @@ -1,26 +0,0 @@ -# context.py -""" -Combines context sources to create AbxContext object (dictionary tree). -""" - -import bpy, bpy.app, bpy.data, bpy.ops - -from bpy.app.handlers import persistent -#from accumulate import UnionList, RecursiveDict - -from . import file_context - -if os.path.exists(bpy.data.filepath): - BlendfileContext = file_context.FileContext(bpy.data.filepath) -else: - BlendfileContext = file_context.FileContext() - -# Attach a handler to keep our filepath context up to date with Blender -@persistent -def update_handler(ctxt): - BlendfileContext.update(bpy.data.filepath) - -bpy.app.handlers.save_post.append(update_handler) -bpy.app.handlers.load_post.append(update_handler) -bpy.app.handlers.scene_update_post.append(update_handler) -