[Bf-blender-cvs] [60d36203e5] app-templates: Cleanup

Campbell Barton noreply at git.blender.org
Fri Mar 24 00:08:08 CET 2017


Commit: 60d36203e55c6a5aac87b61925516496507a58d2
Author: Campbell Barton
Date:   Fri Mar 24 08:42:22 2017 +1100
Branches: app-templates
https://developer.blender.org/rB60d36203e55c6a5aac87b61925516496507a58d2

Cleanup

===================================================================

M	release/scripts/modules/bl_app_template_utils.py

===================================================================

diff --git a/release/scripts/modules/bl_app_template_utils.py b/release/scripts/modules/bl_app_template_utils.py
index 5f490f6156..0ff75a7c81 100644
--- a/release/scripts/modules/bl_app_template_utils.py
+++ b/release/scripts/modules/bl_app_template_utils.py
@@ -60,7 +60,7 @@ def _enable(template_id, *, handle_error=None, ignore_not_found=False):
             import traceback
             traceback.print_exc()
 
-    # Split registering up into 3 steps so we can undo
+    # Split registering up into 2 steps so we can undo
     # if it fails par way through.
 
     # disable the context, using the context at all is
@@ -78,10 +78,7 @@ def _enable(template_id, *, handle_error=None, ignore_not_found=False):
             handle_error(ex)
             return None
 
-        # 2) try register collected modules
-        # removed, templates need to handle own registration now.
-
-        # 3) try run the modules register function
+        # 2) try run the modules register function
         try:
             mod.register()
         except Exception as ex:




More information about the Bf-blender-cvs mailing list