Merge pull request #7878 from RebelliousX/else
Bunch of missing `else` statements and general logic
This commit is contained in:
commit
a1cbe8e22b
32 changed files with 41 additions and 39 deletions
|
|
@ -329,7 +329,7 @@ PropertyInfo VisualScriptBuiltinFunc::get_input_value_port_info(int p_idx) const
|
|||
case LOGIC_CLAMP: {
|
||||
if (p_idx==0)
|
||||
return PropertyInfo(Variant::REAL,"a");
|
||||
else if (p_idx==0)
|
||||
else if (p_idx==0) // is it ok to test p_idx == 0 twice?
|
||||
return PropertyInfo(Variant::REAL,"min");
|
||||
else
|
||||
return PropertyInfo(Variant::REAL,"max");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue