[Bf-blender-cvs] [94d2a116365] functions: more debug time checks
Jacques Lucke
noreply at git.blender.org
Mon Jul 15 18:13:01 CEST 2019
Commit: 94d2a1163650fe5a3c0b1dc8e1ce7149a0d75b09
Author: Jacques Lucke
Date: Mon Jul 15 17:25:19 2019 +0200
Branches: functions
https://developer.blender.org/rB94d2a1163650fe5a3c0b1dc8e1ce7149a0d75b09
more debug time checks
===================================================================
M source/blender/functions/functions/ranges.cpp
===================================================================
diff --git a/source/blender/functions/functions/ranges.cpp b/source/blender/functions/functions/ranges.cpp
index 96c15c701bf..19b7485f042 100644
--- a/source/blender/functions/functions/ranges.cpp
+++ b/source/blender/functions/functions/ranges.cpp
@@ -13,9 +13,9 @@ using namespace Types;
class FloatRange : public TupleCallBody {
void call(Tuple &fn_in, Tuple &fn_out, ExecutionContext &UNUSED(ctx)) const override
{
- int amount = fn_in.get<int>(0);
- float start = fn_in.get<float>(1);
- float step = fn_in.get<float>(2);
+ int amount = this->get_input<int>(fn_in, 0, "Amount");
+ float start = this->get_input<float>(fn_in, 1, "Start");
+ float step = this->get_input<float>(fn_in, 2, "Step");
if (amount < 0) {
amount = 0;
More information about the Bf-blender-cvs
mailing list