Cleanup: Compositor: List all types in switch case
Replace default cases with all types to make adding new types easier.
This commit is contained in:
@@ -748,8 +748,10 @@ class FileOutputOperation : public NodeOperation {
|
||||
});
|
||||
return buffer;
|
||||
}
|
||||
default:
|
||||
/* Other types are internal and needn't be handled by operations. */
|
||||
case ResultType::Int:
|
||||
case ResultType::Int2:
|
||||
case ResultType::Float2:
|
||||
/* Not supported. */
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -773,8 +773,10 @@ class RenderLayerOperation : public NodeOperation {
|
||||
case ResultType::Color:
|
||||
case ResultType::Float4:
|
||||
return "compositor_read_input_float4";
|
||||
default:
|
||||
/* Other types are internal and needn't be handled by operations. */
|
||||
case ResultType::Int:
|
||||
case ResultType::Int2:
|
||||
case ResultType::Float2:
|
||||
/* Not supported. */
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user