Cleanup: make format
This commit is contained in:
@@ -27,7 +27,7 @@ ConvertColorSpaceNode::ConvertColorSpaceNode(bNode *editorNode) : Node(editorNod
|
|||||||
void ConvertColorSpaceNode::convert_to_operations(NodeConverter &converter,
|
void ConvertColorSpaceNode::convert_to_operations(NodeConverter &converter,
|
||||||
const CompositorContext &UNUSED(context)) const
|
const CompositorContext &UNUSED(context)) const
|
||||||
{
|
{
|
||||||
const bNode *b_node = get_bnode();
|
const bNode *b_node = get_bnode();
|
||||||
|
|
||||||
NodeInput *inputSocketImage = this->get_input_socket(0);
|
NodeInput *inputSocketImage = this->get_input_socket(0);
|
||||||
NodeOutput *outputSocketImage = this->get_output_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
|
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)) {
|
if (IMB_colormanagement_space_name_is_data(settings.from_color_space)) {
|
||||||
CLOG_INFO(&LOG,
|
CLOG_INFO(&LOG,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ void GlareNode::convert_to_operations(NodeConverter &converter,
|
|||||||
const CompositorContext & /*context*/) const
|
const CompositorContext & /*context*/) const
|
||||||
{
|
{
|
||||||
const bNode *node = this->get_bnode();
|
const bNode *node = this->get_bnode();
|
||||||
const NodeGlare *glare = (const NodeGlare *)node->storage;
|
const NodeGlare *glare = (const NodeGlare *)node->storage;
|
||||||
|
|
||||||
GlareBaseOperation *glareoperation = nullptr;
|
GlareBaseOperation *glareoperation = nullptr;
|
||||||
switch (glare->type) {
|
switch (glare->type) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ void SunBeamsNode::convert_to_operations(NodeConverter &converter,
|
|||||||
{
|
{
|
||||||
NodeInput *input_socket = this->get_input_socket(0);
|
NodeInput *input_socket = this->get_input_socket(0);
|
||||||
NodeOutput *output_socket = this->get_output_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();
|
SunBeamsOperation *operation = new SunBeamsOperation();
|
||||||
operation->set_data(*data);
|
operation->set_data(*data);
|
||||||
|
|||||||
@@ -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. */
|
/* Custom properties of bones are placed in their components to improve granularity. */
|
||||||
if (RNA_struct_is_a(ptr.type, &RNA_PoseBone)) {
|
if (RNA_struct_is_a(ptr.type, &RNA_PoseBone)) {
|
||||||
const bPoseChannel *pchan = static_cast<const bPoseChannel *>(ptr.data);
|
const bPoseChannel *pchan = static_cast<const bPoseChannel *>(ptr.data);
|
||||||
ensure_operation_node(
|
ensure_operation_node(ptr.owner_id,
|
||||||
ptr.owner_id, NodeType::BONE, pchan->name, OperationCode::ID_PROPERTY, nullptr, prop_identifier);
|
NodeType::BONE,
|
||||||
|
pchan->name,
|
||||||
|
OperationCode::ID_PROPERTY,
|
||||||
|
nullptr,
|
||||||
|
prop_identifier);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ensure_operation_node(
|
ensure_operation_node(
|
||||||
|
|||||||
@@ -402,7 +402,7 @@ void GPU_vertformat_from_shader(GPUVertFormat *format, const struct GPUShader *g
|
|||||||
GPU_vertformat_clear(format);
|
GPU_vertformat_clear(format);
|
||||||
|
|
||||||
uint attr_len = GPU_shader_get_attribute_len(gpushader);
|
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) {
|
while (attrs_added < attr_len) {
|
||||||
char name[256];
|
char name[256];
|
||||||
Type gpu_type;
|
Type gpu_type;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
#include "../generic/py_capi_utils.h"
|
# include "../generic/py_capi_utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Make sure that there is always a reference count for PyObjects of type String as the strings are
|
/* Make sure that there is always a reference count for PyObjects of type String as the strings are
|
||||||
|
|||||||
Reference in New Issue
Block a user