Browse Source

v0.12.17 and fix add fake user to autoload node groups

Joseph Brandenburg 2 months ago
parent
commit
cadf01da94
2 changed files with 7 additions and 2 deletions
  1. 6 1
      __init__.py
  2. 1 1
      blender_manifest.toml

+ 6 - 1
__init__.py

@@ -18,7 +18,7 @@ from .utilities import prRed
 
 MANTIS_VERSION_MAJOR=0
 MANTIS_VERSION_MINOR=12
-MANTIS_VERSION_SUB=16
+MANTIS_VERSION_SUB=17
 
 classLists = [module.TellClasses() for module in [
  link_nodes_ui,
@@ -345,6 +345,11 @@ def autoload_components(filename):
             do_import(json_data, context,
                        search_multi_files=True, filepath=path,
                        skip_existing=True)
+            # let's get the node trees and assign a fake user
+            for tree_name in json_data.keys():
+                tree = data.node_groups.get(tree_name)
+                tree.fake_user = True
+            
     # now we need to unlink the collections, and add fake users to them
     curves_collection = get_default_collection(collection_type="CURVE")
     armature_collection = get_default_collection(collection_type="ARMATURE")

+ 1 - 1
blender_manifest.toml

@@ -3,7 +3,7 @@ schema_version = "1.0.0"
 # Example of manifest file for a Blender extension
 # Change the values according to your extension
 id = "mantis"
-version = "0.12.16"
+version = "0.12.17"
 name = "Mantis"
 tagline = "Mantis is a rigging nodes toolkit"
 maintainer = "Nodespaghetti <josephbburg@protonmail.com>"