diff options
author | Greg Zaal <gregzzmail@gmail.com> | 2015-05-02 19:01:56 +0300 |
---|---|---|
committer | Greg Zaal <gregzzmail@gmail.com> | 2015-05-02 19:03:49 +0300 |
commit | b5afec7389dde946c18571675775b0cb8bf22124 (patch) | |
tree | 9e1b9a5ebb929066a12dbc092cc07fecf9db00b2 /render_copy_settings | |
parent | 7faa91ddc07db7a548b54a7ed7856d1990193ac8 (diff) |
Auto Tile Size: Fix minor bug
Tile size would be recalculated constantly (every scene update) when the calculated size was less than 8 pixels (blender's own hard limit)
diff --git a/render_auto_tile_size.py b/render_auto_tile_size.py
index a773281..00f848e 100644
--- a/render_auto_tile_size.py
+++ b/render_auto_tile_size.py
@@ -20,7 +20,7 @@ bl_info = {
"name": "Auto Tile Size",
"description": "Estimate and set the tile size that will render the fastest",
"author": "Greg Zaal",
- "version": (3, 0),
+ "version": (3, 1),
"blender": (2, 74, 0),
"location": "Render Settings > Performance",
"warning": "",
@@ -300,6 +300,12 @@ def do_set_tile_size(context):
else:
settings.threads_error = False
+ # Make sure tile sizes are within the internal limit
+ tile_x = max(8, tile_x)
+ tile_y = max(8, tile_y)
+ tile_x = min(65536, tile_x)
+ tile_y = min(65536, tile_y)
+
render.tile_x = tile_x
render.tile_y = tile_y
Diffstat (limited to 'render_copy_settings')
0 files changed, 0 insertions, 0 deletions