Cleanup: make format

This commit is contained in:
2022-09-01 19:59:55 +02:00
parent 9a86255da8
commit 16adfff1c6
6 changed files with 12 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ ConvertColorSpaceNode::ConvertColorSpaceNode(bNode *editorNode) : Node(editorNod
void ConvertColorSpaceNode::convert_to_operations(NodeConverter &converter,
const CompositorContext &UNUSED(context)) const
{
const bNode *b_node = get_bnode();
const bNode *b_node = get_bnode();
NodeInput *inputSocketImage = this->get_input_socket(0);
NodeOutput *outputSocketImage = this->get_output_socket(0);
@@ -50,7 +50,7 @@ void ConvertColorSpaceNode::convert_to_operations(NodeConverter &converter,
bool ConvertColorSpaceNode::performs_conversion(NodeConvertColorSpace &settings) const
{
const bNode *b_node = get_bnode();
const bNode *b_node = get_bnode();
if (IMB_colormanagement_space_name_is_data(settings.from_color_space)) {
CLOG_INFO(&LOG,

View File

@@ -21,7 +21,7 @@ void GlareNode::convert_to_operations(NodeConverter &converter,
const CompositorContext & /*context*/) const
{
const bNode *node = this->get_bnode();
const NodeGlare *glare = (const NodeGlare *)node->storage;
const NodeGlare *glare = (const NodeGlare *)node->storage;
GlareBaseOperation *glareoperation = nullptr;
switch (glare->type) {

View File

@@ -16,7 +16,7 @@ void SunBeamsNode::convert_to_operations(NodeConverter &converter,
{
NodeInput *input_socket = this->get_input_socket(0);
NodeOutput *output_socket = this->get_output_socket(0);
const NodeSunBeams *data = (const NodeSunBeams *)get_bnode()->storage;
const NodeSunBeams *data = (const NodeSunBeams *)get_bnode()->storage;
SunBeamsOperation *operation = new SunBeamsOperation();
operation->set_data(*data);

View File

@@ -1218,8 +1218,12 @@ void DepsgraphNodeBuilder::build_driver_id_property(ID *id, const char *rna_path
/* Custom properties of bones are placed in their components to improve granularity. */
if (RNA_struct_is_a(ptr.type, &RNA_PoseBone)) {
const bPoseChannel *pchan = static_cast<const bPoseChannel *>(ptr.data);
ensure_operation_node(
ptr.owner_id, NodeType::BONE, pchan->name, OperationCode::ID_PROPERTY, nullptr, prop_identifier);
ensure_operation_node(ptr.owner_id,
NodeType::BONE,
pchan->name,
OperationCode::ID_PROPERTY,
nullptr,
prop_identifier);
}
else {
ensure_operation_node(

View File

@@ -402,7 +402,7 @@ void GPU_vertformat_from_shader(GPUVertFormat *format, const struct GPUShader *g
GPU_vertformat_clear(format);
uint attr_len = GPU_shader_get_attribute_len(gpushader);
int location_test = 0, attrs_added = 0;;
int location_test = 0, attrs_added = 0;
while (attrs_added < attr_len) {
char name[256];
Type gpu_type;

View File

@@ -7,7 +7,7 @@
#pragma once
#ifndef __cplusplus
#include "../generic/py_capi_utils.h"
# include "../generic/py_capi_utils.h"
#endif
/* Make sure that there is always a reference count for PyObjects of type String as the strings are