[Bf-blender-cvs] [653e741] temp-sybren-poselib: Documented an assumption of the code in a comment.
Sybren A. Stüvel
noreply at git.blender.org
Thu Dec 15 11:07:39 CET 2016
Commit: 653e741e81b8f899c74d3d3afd84970e472f072f
Author: Sybren A. Stüvel
Date: Thu Dec 15 11:07:28 2016 +0100
Branches: temp-sybren-poselib
https://developer.blender.org/rB653e741e81b8f899c74d3d3afd84970e472f072f
Documented an assumption of the code in a comment.
===================================================================
M release/scripts/startup/bl_operators/poselib.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/poselib.py b/release/scripts/startup/bl_operators/poselib.py
index b0ff33d..24e8123 100644
--- a/release/scripts/startup/bl_operators/poselib.py
+++ b/release/scripts/startup/bl_operators/poselib.py
@@ -119,6 +119,7 @@ class POSELIB_OT_render_previews(Operator):
im = bpy.data.images['Render Result'].copy_from_render(scene=context.scene)
+ # Scale to image and then icon size. Assumption: icon size is smaller than image size.
im.scale(*self.image_size)
plib.preview.image_frame_img_set(plib_index, im)
More information about the Bf-blender-cvs
mailing list