Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_NodeOperation.cc
| Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| NodeOperation &operation = getOperation(); | NodeOperation &operation = getOperation(); | ||||
| if (operation.get_flags().is_resolution_set) { | if (operation.get_flags().is_resolution_set) { | ||||
| resolution[0] = operation.getWidth(); | resolution[0] = operation.getWidth(); | ||||
| resolution[1] = operation.getHeight(); | resolution[1] = operation.getHeight(); | ||||
| } | } | ||||
| else { | else { | ||||
| operation.determineResolution(resolution, preferredResolution); | operation.determineResolution(resolution, preferredResolution); | ||||
| if (resolution[0] > 0 && resolution[1] > 0) { | |||||
| operation.setResolution(resolution); | operation.setResolution(resolution); | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| std::ostream &operator<<(std::ostream &os, const NodeOperationFlags &node_operation_flags) | std::ostream &operator<<(std::ostream &os, const NodeOperationFlags &node_operation_flags) | ||||
| { | { | ||||
| if (node_operation_flags.complex) { | if (node_operation_flags.complex) { | ||||
| os << "complex,"; | os << "complex,"; | ||||
| } | } | ||||
| if (node_operation_flags.open_cl) { | if (node_operation_flags.open_cl) { | ||||
| os << "open_cl,"; | os << "open_cl,"; | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||