[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55291] branches/soc-2008-mxcurioni/ release/scripts/freestyle/style_modules/parameter_editor.py: Fix for the Selection by Image Border not taking account of resolution percentage .
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Fri Mar 15 01:30:22 CET 2013
Revision: 55291
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55291
Author: kjym3
Date: 2013-03-15 00:30:20 +0000 (Fri, 15 Mar 2013)
Log Message:
-----------
Fix for the Selection by Image Border not taking account of resolution percentage.
Problem report by octane98 in the BlenderArtists Freestyle thread in June 2012, thanks a lot!
Modified Paths:
--------------
branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
Modified: branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py 2013-03-15 00:22:04 UTC (rev 55290)
+++ branches/soc-2008-mxcurioni/release/scripts/freestyle/style_modules/parameter_editor.py 2013-03-15 00:30:20 UTC (rev 55291)
@@ -1043,8 +1043,9 @@
selection_criteria.append(upred)
# prepare selection criteria by image border
if lineset.select_by_image_border:
- w = scene.render.resolution_x
- h = scene.render.resolution_y
+ fac = scene.render.resolution_percentage / 100.0
+ w = scene.render.resolution_x * fac
+ h = scene.render.resolution_y * fac
if scene.render.use_border:
xmin = scene.render.border_min_x * w
xmax = scene.render.border_max_x * w
More information about the Bf-blender-cvs
mailing list