Cleanup: format
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "BLI_vector.hh"
|
||||
#include "BLI_math_vector_types.hh"
|
||||
#include "BLI_span.hh"
|
||||
#include "BLI_vector.hh"
|
||||
|
||||
/** \file
|
||||
* \ingroup bke
|
||||
|
||||
@@ -1174,8 +1174,7 @@ void do_versions_after_linking_300(FileData * /*fd*/, Main *bmain)
|
||||
SOCK_OBJECT,
|
||||
SOCK_COLLECTION,
|
||||
SOCK_TEXTURE,
|
||||
SOCK_MATERIAL))
|
||||
{
|
||||
SOCK_MATERIAL)) {
|
||||
link->tosock = link->tosock->next;
|
||||
}
|
||||
}
|
||||
@@ -2646,8 +2645,7 @@ void blo_do_versions_300(FileData *fd, Library * /*lib*/, Main *bmain)
|
||||
|
||||
if (!MAIN_VERSION_ATLEAST(bmain, 300, 17)) {
|
||||
if (!DNA_struct_elem_find(
|
||||
fd->filesdna, "View3DOverlay", "float", "normals_constant_screen_size"))
|
||||
{
|
||||
fd->filesdna, "View3DOverlay", "float", "normals_constant_screen_size")) {
|
||||
LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) {
|
||||
LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) {
|
||||
LISTBASE_FOREACH (SpaceLink *, sl, &area->spacedata) {
|
||||
@@ -2675,8 +2673,7 @@ void blo_do_versions_300(FileData *fd, Library * /*lib*/, Main *bmain)
|
||||
|
||||
if (!MAIN_VERSION_ATLEAST(bmain, 300, 18)) {
|
||||
if (!DNA_struct_elem_find(
|
||||
fd->filesdna, "WorkSpace", "AssetLibraryReference", "asset_library_ref"))
|
||||
{
|
||||
fd->filesdna, "WorkSpace", "AssetLibraryReference", "asset_library_ref")) {
|
||||
LISTBASE_FOREACH (WorkSpace *, workspace, &bmain->workspaces) {
|
||||
BKE_asset_library_reference_init_default(&workspace->asset_library_ref);
|
||||
}
|
||||
|
||||
@@ -388,8 +388,7 @@ static bool node_group_ungroup(Main *bmain, bNodeTree *ntree, bNode *gnode)
|
||||
|
||||
/* find internal links to this output */
|
||||
for (bNodeLink *tlink = glinks_first->next; tlink != glinks_last->next;
|
||||
tlink = tlink->next)
|
||||
{
|
||||
tlink = tlink->next) {
|
||||
/* only use active output node */
|
||||
if (tlink->tonode->type == NODE_GROUP_OUTPUT && (tlink->tonode->flag & NODE_DO_OUTPUT)) {
|
||||
if (STREQ(tlink->tosock->identifier, identifier)) {
|
||||
@@ -706,8 +705,7 @@ static bool node_group_make_test_selected(bNodeTree &ntree,
|
||||
for (bNode *node : nodes_to_group) {
|
||||
const char *disabled_hint = nullptr;
|
||||
if (node->typeinfo->poll_instance &&
|
||||
!node->typeinfo->poll_instance(node, ngroup, &disabled_hint))
|
||||
{
|
||||
!node->typeinfo->poll_instance(node, ngroup, &disabled_hint)) {
|
||||
if (disabled_hint) {
|
||||
BKE_reportf(&reports,
|
||||
RPT_WARNING,
|
||||
|
||||
Reference in New Issue
Block a user