Cleanup: add const.
This commit is contained in:
parent
ef944b5020
commit
de296e8429
|
@ -158,21 +158,21 @@ void NodeInput::setLink(NodeOutput *link)
|
|||
m_link = link;
|
||||
}
|
||||
|
||||
float NodeInput::getEditorValueFloat()
|
||||
float NodeInput::getEditorValueFloat() const
|
||||
{
|
||||
PointerRNA ptr;
|
||||
RNA_pointer_create((ID *)getNode()->getbNodeTree(), &RNA_NodeSocket, getbNodeSocket(), &ptr);
|
||||
return RNA_float_get(&ptr, "default_value");
|
||||
}
|
||||
|
||||
void NodeInput::getEditorValueColor(float *value)
|
||||
void NodeInput::getEditorValueColor(float *value) const
|
||||
{
|
||||
PointerRNA ptr;
|
||||
RNA_pointer_create((ID *)getNode()->getbNodeTree(), &RNA_NodeSocket, getbNodeSocket(), &ptr);
|
||||
return RNA_float_get_array(&ptr, "default_value", value);
|
||||
}
|
||||
|
||||
void NodeInput::getEditorValueVector(float *value)
|
||||
void NodeInput::getEditorValueVector(float *value) const
|
||||
{
|
||||
PointerRNA ptr;
|
||||
RNA_pointer_create((ID *)getNode()->getbNodeTree(), &RNA_NodeSocket, getbNodeSocket(), &ptr);
|
||||
|
|
|
@ -281,9 +281,9 @@ class NodeInput {
|
|||
return m_link;
|
||||
}
|
||||
|
||||
float getEditorValueFloat();
|
||||
void getEditorValueColor(float *value);
|
||||
void getEditorValueVector(float *value);
|
||||
float getEditorValueFloat() const;
|
||||
void getEditorValueColor(float *value) const;
|
||||
void getEditorValueVector(float *value) const;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -294,7 +294,7 @@ void NodeOperationBuilder::add_operation_input_constants()
|
|||
}
|
||||
|
||||
void NodeOperationBuilder::add_input_constant_value(NodeOperationInput *input,
|
||||
NodeInput *node_input)
|
||||
const NodeInput *node_input)
|
||||
{
|
||||
switch (input->getDataType()) {
|
||||
case COM_DT_VALUE: {
|
||||
|
|
|
@ -123,7 +123,7 @@ class NodeOperationBuilder {
|
|||
|
||||
/** Construct a constant value operation for every unconnected input */
|
||||
void add_operation_input_constants();
|
||||
void add_input_constant_value(NodeOperationInput *input, NodeInput *node_input);
|
||||
void add_input_constant_value(NodeOperationInput *input, const NodeInput *node_input);
|
||||
|
||||
/** Replace proxy operations with direct links */
|
||||
void resolve_proxies();
|
||||
|
|
Loading…
Reference in New Issue