[Bf-extensions-cvs] [648e953] master: Can use the mouse cursor progress indicator for baking now, since we're not using the main bake operator any more.

Lukas Tönne noreply at git.blender.org
Fri Dec 19 11:31:48 CET 2014


Commit: 648e9533d59013de10cc6b101640613e7380c8d4
Author: Lukas Tönne
Date:   Fri Dec 19 11:31:20 2014 +0100
Branches: master
https://developer.blender.org/rBAC648e9533d59013de10cc6b101640613e7380c8d4

Can use the mouse cursor progress indicator for baking now, since we're
not using the main bake operator any more.

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

M	object_physics_meadow/ui.py

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

diff --git a/object_physics_meadow/ui.py b/object_physics_meadow/ui.py
index 41a9e5a..cf0796a 100644
--- a/object_physics_meadow/ui.py
+++ b/object_physics_meadow/ui.py
@@ -31,11 +31,6 @@ from object_physics_meadow import progress
 def progress_default():
     progress.show_progress_bar = True
     progress.show_stdout = True
-# XXX baking: wm.progress updates are disabled for now,
-# because the bake operator overrides this with it's own progress numbers ...
-def progress_baking():
-    progress.show_progress_bar = False
-    progress.show_stdout = True
 
 class OBJECT_PT_Meadow(Panel):
     """Settings for meadow components"""
@@ -246,7 +241,7 @@ class MEADOW_OT_BakePhysics(MeadowOperatorBase, Operator):
     
     def execute(self, context):
         with ObjectSelection():
-            progress_baking()
+            progress_default()
             physics.scene_bake_all(context)
         return {'FINISHED'}
 
@@ -259,7 +254,7 @@ class MEADOW_OT_FreePhysics(MeadowOperatorBase, Operator):
     
     def execute(self, context):
         with ObjectSelection():
-            progress_baking()
+            progress_default()
             physics.scene_free_all(context)
         return {'FINISHED'}



More information about the Bf-extensions-cvs mailing list