Cleanup: Correcting default cases in node.cc #107339

Merged
Hans Goudey merged 10 commits from mod_moder/blender:tmp_cleanup_ensure_default_cases into main 2023-06-06 19:19:59 +02:00
1 changed files with 6 additions and 3 deletions

View File

@ -1943,7 +1943,8 @@ const char *nodeStaticSocketType(const int type, const int subtype)
return "NodeSocketTexture";
case SOCK_MATERIAL:
return "NodeSocketMaterial";
default:
case SOCK_CUSTOM:
case __SOCK_MESH:
break;
}
return nullptr;
@ -2022,7 +2023,8 @@ const char *nodeStaticSocketInterfaceType(const int type, const int subtype)
return "NodeSocketInterfaceTexture";
case SOCK_MATERIAL:
return "NodeSocketInterfaceMaterial";
default:
case SOCK_CUSTOM:
case __SOCK_MESH:
break;
}
return nullptr;
@ -2057,7 +2059,8 @@ const char *nodeStaticSocketLabel(const int type, const int /*subtype*/)
return "Texture";
case SOCK_MATERIAL:
return "Material";
default:
case SOCK_CUSTOM:
case __SOCK_MESH:
break;
}
return nullptr;