node socket UI

This commit is contained in:
itsmattkc
2019-04-11 11:48:20 +10:00
parent 358d1ba16a
commit 1285d70c62
14 changed files with 103 additions and 11 deletions
+10
View File
@@ -60,6 +60,11 @@ void EffectRow::AddField(EffectField *field)
fields_.append(field);
}
void EffectRow::AddNodeInput(olive::nodes::DataType type)
{
accepted_datatypes_.append(type);
}
bool EffectRow::IsKeyframing() {
return keyframing_;
}
@@ -102,6 +107,11 @@ void EffectRow::SetEnabled(bool enabled)
}
}
bool EffectRow::CanConnectNodes()
{
return !accepted_datatypes_.isEmpty();
}
void EffectRow::SetKeyframingEnabled(bool enabled) {
if (enabled == keyframing_) {
return;