Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-22 17:17:43 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-08-22 17:17:43 +0400
commit9ccc60ed8c22ad7ce886273832dd885af3c2347d (patch)
tree7bd921e04cb8a39286f57d058836c88a8c10fc4a /intern/cycles/blender/addon/engine.py
parentf7b9c85871ad4e68dbd578556f3ae8ef55d6dc98 (diff)
Cycles:
* Update progress bar during render (patch by Thomas) * Show status/pass/time during render in 3d view
Diffstat (limited to 'intern/cycles/blender/addon/engine.py')
-rw-r--r--intern/cycles/blender/addon/engine.py36
1 files changed, 1 insertions, 35 deletions
diff --git a/intern/cycles/blender/addon/engine.py b/intern/cycles/blender/addon/engine.py
index 6879efcb24e..d25eb21eeb9 100644
--- a/intern/cycles/blender/addon/engine.py
+++ b/intern/cycles/blender/addon/engine.py
@@ -58,41 +58,7 @@ def draw(engine, region, v3d, rv3d):
rv3d = rv3d.as_pointer()
# draw render image
- status, substatus = lib.draw(engine.session, v3d, rv3d)
-
- # draw text over image
- if status != "":
- import blf
- import bgl
-
- fontid = 0 # todo, find out how to set this
- dim = blf.dimensions(fontid, status)
- dim_sub = blf.dimensions(fontid, substatus)
-
- padding = 5
-
- x = (region.width - max(dim[0], dim_sub[0]))*0.5 - padding
- y = (region.height - (dim[1] + dim_sub[1] + padding))*0.5 - padding
-
- bgl.glColor4f(0.0, 0.0, 0.0, 0.5)
- bgl.glEnable(bgl.GL_BLEND)
- bgl.glBlendFunc(bgl.GL_SRC_ALPHA, bgl.GL_ONE_MINUS_SRC_ALPHA)
- bgl.glRectf(x, y, x+max(dim[0], dim_sub[0])+padding+padding, y+dim[1]+dim_sub[1]+padding+padding+2)
- bgl.glDisable(bgl.GL_BLEND)
-
- x = (region.width - dim[0])*0.5
- y = (region.height - (dim[1] + dim_sub[1] + padding))*0.5 + dim_sub[1] + padding
-
- bgl.glColor3f(0.8, 0.8, 0.8)
- blf.position(fontid, x, y, 0)
- blf.draw(fontid, status)
-
- x = (region.width - dim_sub[0])*0.5
- y = (region.height - (dim[1] + dim_sub[1] + padding))*0.5
-
- bgl.glColor3f(0.6, 0.6, 0.6)
- blf.position(fontid, x, y, 0)
- blf.draw(fontid, substatus)
+ lib.draw(engine.session, v3d, rv3d)
def available_devices():
import libcycles_blender as lib