UI: Improved Area Icon Using a SpaceType Callback #124556
@ -1343,7 +1343,7 @@ static blender::StringRefNull node_space_name_get(ScrArea *area)
|
||||
|
||||
static int node_space_icon_get(ScrArea *area)
|
||||
{
|
||||
SpaceNode *snode = (SpaceNode *)area->spacedata.first;
|
||||
SpaceNode *snode = static_cast<SpaceNode *>(area->spacedata.first);
|
||||
Harley marked this conversation as resolved
Outdated
|
||||
bke::bNodeTreeType *tree_type = bke::ntreeTypeFind(snode->tree_idname);
|
||||
return tree_type->ui_icon;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user
static_cast
Will post a separate PR changing to static_cast for node_space_name_get and other places in the same file.