Merge pull request #1894 from MoritzBrueckner/node-register

Automatically register new nodes and categories from libraries
This commit is contained in:
Lubos Lenco 2020-09-27 20:36:03 +02:00 committed by GitHub
commit 7042797185
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,16 @@
import importlib
import os
import sys
import bpy
import importlib
from bpy.app.handlers import persistent
import arm.utils
import arm.props as props
import arm.api
import arm.nodes_logic
import arm.make as make
import arm.make_state as state
import arm.api
import arm.props as props
import arm.utils
@persistent
def on_depsgraph_update_post(self):
@ -131,6 +134,9 @@ def on_load_post(context):
blender.register()
sys.path.remove(fp)
# Register newly added nodes and node categories
arm.nodes_logic.register_nodes()
# Show trait users as collections
arm.utils.update_trait_collections()