[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58454] branches/soc-2013-cycles_mblur/ intern/cycles/blender/blender_object.cpp: I modified the object_mblur_steps () function to return the number of
Gavin Howard
gavin.d.howard at gmail.com
Sat Jul 20 19:52:25 CEST 2013
Revision: 58454
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58454
Author: gdh
Date: 2013-07-20 17:52:25 +0000 (Sat, 20 Jul 2013)
Log Message:
-----------
I modified the object_mblur_steps() function to return the number of
steps that Cycles is looking for.
We always need to have an odd number of steps, so Brecht and I decided
to only have the user set one "side" of steps. We would then double it
and add 1.
Modified Paths:
--------------
branches/soc-2013-cycles_mblur/intern/cycles/blender/blender_object.cpp
Modified: branches/soc-2013-cycles_mblur/intern/cycles/blender/blender_object.cpp
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/blender/blender_object.cpp 2013-07-20 17:12:33 UTC (rev 58453)
+++ branches/soc-2013-cycles_mblur/intern/cycles/blender/blender_object.cpp 2013-07-20 17:52:25 UTC (rev 58454)
@@ -103,14 +103,17 @@
{
PointerRNA cmblur = RNA_pointer_get(&b_ob.ptr, "cycles_mblur");
- // 1 is the default.
+ /* 1 is the default. */
uint steps = 1;
steps = get_int(cmblur, "mblur_steps");
- // Make sure we get the minimum.
+ /* Make sure we get the minimum. */
steps = steps >= 1 ? steps : 1;
+ /* The user only sets one side. We need to return the true number. */
+ steps += (steps + 1);
+
return steps;
}
More information about the Bf-blender-cvs
mailing list