Cleanup: Rename LayerTreeNode variable
Function is used by both layers and groups after e51fff61c5.
Keep the name more general.
Pull Request: https://projects.blender.org/blender/blender/pulls/135286
This commit is contained in:
committed by
Pratik Borhade
parent
4437782e00
commit
b69b201e20
@@ -3946,8 +3946,8 @@ static void *layer_setting_ptr(bAnimListElem *ale,
|
||||
static bool layer_channel_color(const bAnimListElem *ale, uint8_t r_color[3])
|
||||
{
|
||||
using namespace bke::greasepencil;
|
||||
GreasePencilLayerTreeNode &layer = *static_cast<GreasePencilLayerTreeNode *>(ale->data);
|
||||
rgb_float_to_uchar(r_color, layer.color);
|
||||
GreasePencilLayerTreeNode &node = *static_cast<GreasePencilLayerTreeNode *>(ale->data);
|
||||
rgb_float_to_uchar(r_color, node.color);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user