Cleanup: format

This commit is contained in:
Campbell Barton 2023-04-19 08:02:42 +10:00
parent eb2867de90
commit 88f5dd3c72
11 changed files with 11 additions and 12 deletions

View File

@ -1384,4 +1384,3 @@ macro(windows_process_platform_bundled_libraries library_deps)
endforeach()
endif()
endmacro()

View File

@ -14,4 +14,4 @@ set(SRC
include/renderdoc_api.hh
)
blender_add_lib(bf_intern_renderdoc_dynload "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
blender_add_lib(bf_intern_renderdoc_dynload "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")

View File

@ -1144,7 +1144,7 @@ static bool vfont_to_curve(Object *ob,
/* Set combined style flags for the selected string. Start with all styles then
* remove one if ANY characters do not have it. Break out if we've removed them all. */
ef->select_char_info_flag = CU_CHINFO_BOLD | CU_CHINFO_ITALIC | CU_CHINFO_UNDERLINE |
CU_CHINFO_SMALLCAPS;
CU_CHINFO_SMALLCAPS;
for (int k = selstart; k <= selend && ef->select_char_info_flag; k++) {
info = &custrinfo[k];
ef->select_char_info_flag &= info->flag;

View File

@ -113,7 +113,6 @@ ENUM_OPERATORS(eFileAttributes, FILE_ATTR_HARDLINK);
/** \} */
/* -------------------------------------------------------------------- */
/** \name External File Operations
* \{ */

View File

@ -9,9 +9,9 @@
#ifdef WIN32
# include <conio.h>
# include <shlwapi.h>
# include <stdio.h>
# include <stdlib.h>
# include <shlwapi.h>
# include "MEM_guardedalloc.h"

View File

@ -103,4 +103,4 @@ uint gbuffer_object_id_f16_unpack(float object_id_packed)
bool gbuffer_is_refraction(vec4 gbuffer)
{
return gbuffer.w < 1.0;
}
}

View File

@ -2006,7 +2006,6 @@ static bool file_os_operations_menu_poll(const bContext *C_const, MenuType *UNUS
return false;
}
void file_external_operations_menu_register(void)
{
MenuType *mt;

View File

@ -3,4 +3,4 @@
/** \file
* \ingroup gpu
*/
*/

View File

@ -3,4 +3,4 @@
/** \file
* \ingroup gpu
*/
*/

View File

@ -49,4 +49,4 @@ void convert_device_to_host(void *dst_buffer,
eGPUDataFormat host_format,
eGPUTextureFormat device_format);
}; // namespace blender::gpu
}; // namespace blender::gpu

View File

@ -1293,12 +1293,14 @@ static void rna_def_font(BlenderRNA *UNUSED(brna), StructRNA *srna)
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
prop = RNA_def_property(srna, "is_select_underline", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "editfont->select_char_info_flag", CU_CHINFO_UNDERLINE);
RNA_def_property_boolean_sdna(
prop, NULL, "editfont->select_char_info_flag", CU_CHINFO_UNDERLINE);
RNA_def_property_ui_text(prop, "Selected Underline", "Whether the selected text is underlined");
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
prop = RNA_def_property(srna, "is_select_smallcaps", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "editfont->select_char_info_flag", CU_CHINFO_SMALLCAPS);
RNA_def_property_boolean_sdna(
prop, NULL, "editfont->select_char_info_flag", CU_CHINFO_SMALLCAPS);
RNA_def_property_ui_text(prop, "Selected Smallcaps", "Whether the selected text is small caps");
RNA_def_property_clear_flag(prop, PROP_EDITABLE);