diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-28 01:56:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-28 01:56:28 +0400 |
commit | 2810331119f09fde9e5f8a090100412c96e6d2e6 (patch) | |
tree | 15ec5d00a9633b8038181a33c091f9d43a184a58 /source/blender/compositor/intern/COM_compositor.cpp | |
parent | 25e82fe62d3f6e18d0121146dc4cd91397281372 (diff) |
minor changes, BLI_uvproject_from_view was doing matrix multiply for no reason, quiet float/double warning.
Diffstat (limited to 'source/blender/compositor/intern/COM_compositor.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_compositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/intern/COM_compositor.cpp b/source/blender/compositor/intern/COM_compositor.cpp index a0eb5206805..a0df8fd1934 100644 --- a/source/blender/compositor/intern/COM_compositor.cpp +++ b/source/blender/compositor/intern/COM_compositor.cpp @@ -67,7 +67,7 @@ void COM_execute(RenderData *rd, bNodeTree *editingtree, int rendering, * Don't create previews in advance, this is done when adding preview operations. * Reserved preview size is determined by render output for now. */ - float aspect = rd->xsch > 0 ? (float)rd->ysch / (float)rd->xsch : 1.0; + float aspect = rd->xsch > 0 ? (float)rd->ysch / (float)rd->xsch : 1.0f; BKE_node_preview_init_tree(editingtree, COM_PREVIEW_SIZE, (int)(COM_PREVIEW_SIZE * aspect), FALSE); /* initialize workscheduler, will check if already done. TODO deinitialize somewhere */ |