summarylogtreecommitdiffstats
path: root/fix-colision-with-git-package.patch
blob: 58d733966f8aaeb08e1a6ca9ac7c4abc41b465a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/animation_nodes/__init__.py b/animation_nodes/__init__.py
index 3d37c896..2d4fd0ad 100644
--- a/animation_nodes/__init__.py
+++ b/animation_nodes/__init__.py
@@ -171,8 +171,15 @@ updateSocketInfo()
 ##################################
 
 import bpy
+import addon_utils
 
 def register():
+    if "animation_nodes_test" in addon_utils.addons_fake_modules:
+        default,state = addon_utils.check("animation_nodes_test")
+        if state:
+            addon_utils.disable("animation_nodes_test")
+        #bpy.ops.wm.addon_disable(module="animation_nodes_test")
+        #bpy.utils.unregister_module("animation_nodes_test")
     bpy.utils.register_module(__name__)
     for module in modules:
         if hasattr(module, "register"):