We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a115a4a commit dfae647Copy full SHA for dfae647
src/scratch/input.cpp
@@ -63,7 +63,6 @@ Value Input::value() const
63
case Type::Shadow:
64
return m_primaryValue.value();
65
case Type::NoShadow:
66
- return Value();
67
case Type::ObscuredShadow: {
68
switch (m_primaryValue.type()) {
69
case InputValue::Type::Variable: {
@@ -85,7 +84,8 @@ Value Input::value() const
85
84
default: {
86
auto block = m_primaryValue.valueBlock();
87
if (!block) {
88
- std::cout << "warning: attempted to get value of an input shadow obscured by a null block" << std::endl;
+ if (m_type == Type::ObscuredShadow)
+ std::cout << "warning: attempted to get value of an input shadow obscured by a null block" << std::endl;
89
return Value();
90
}
91
return block->run();
0 commit comments