Code Style: Make Format
This commit is contained in:
parent
eeda9369b6
commit
a73b250fc5
|
@ -34,7 +34,8 @@
|
|||
|
||||
static void ghost_fatal_error_dialog(const char *msg)
|
||||
{
|
||||
@autoreleasepool {
|
||||
@autoreleasepool
|
||||
{
|
||||
NSString *message = [NSString stringWithFormat:@"Error opening window:\n%s", msg];
|
||||
|
||||
NSAlert *alert = [[NSAlert alloc] init];
|
||||
|
@ -337,7 +338,8 @@ static const OSType METAL_CORE_VIDEO_PIXEL_FORMAT = kCVPixelFormatType_32BGRA;
|
|||
|
||||
void GHOST_ContextCGL::metalInit()
|
||||
{
|
||||
@autoreleasepool {
|
||||
@autoreleasepool
|
||||
{
|
||||
id<MTLDevice> device = m_metalLayer.device;
|
||||
|
||||
// Create a command queue for blit/present operation
|
||||
|
@ -532,7 +534,8 @@ void GHOST_ContextCGL::metalUpdateFramebuffer()
|
|||
|
||||
void GHOST_ContextCGL::metalSwapBuffers()
|
||||
{
|
||||
@autoreleasepool {
|
||||
@autoreleasepool
|
||||
{
|
||||
updateDrawingContext();
|
||||
glFlush();
|
||||
|
||||
|
|
|
@ -1358,7 +1358,8 @@ bool GHOST_SystemCocoa::handleOpenDocumentRequest(void *filepathStr)
|
|||
|
||||
// Check open windows if some changes are not saved
|
||||
if (m_windowManager->getAnyModifiedState()) {
|
||||
@autoreleasepool {
|
||||
@autoreleasepool
|
||||
{
|
||||
NSAlert *alert = [[NSAlert alloc] init];
|
||||
NSString *title = [NSString stringWithFormat:@"Opening %@", [filepath lastPathComponent]];
|
||||
NSString *text = @"Current document has not been saved.\nDo you really want to proceed?";
|
||||
|
|
|
@ -2447,7 +2447,6 @@ static uiLayout *draw_constraint(uiLayout *layout, Object *ob, bConstraint *con)
|
|||
uiItemL(row, "", RNA_struct_ui_icon(ptr.type));
|
||||
UI_block_emboss_set(block, UI_EMBOSS);
|
||||
|
||||
|
||||
if (con->flag & CONSTRAINT_DISABLE) {
|
||||
uiLayoutSetRedAlert(row, true);
|
||||
}
|
||||
|
|
|
@ -3598,8 +3598,12 @@ static int repeat_history_invoke(bContext *C, wmOperator *op, const wmEvent *UNU
|
|||
|
||||
for (i = items - 1, lastop = wm->operators.last; lastop; lastop = lastop->prev, i--) {
|
||||
if ((lastop->type->flag & OPTYPE_REGISTER) && WM_operator_repeat_check(C, lastop)) {
|
||||
uiItemIntO(
|
||||
layout, WM_operatortype_name(lastop->type, lastop->ptr), ICON_NONE, op->type->idname, "index", i);
|
||||
uiItemIntO(layout,
|
||||
WM_operatortype_name(lastop->type, lastop->ptr),
|
||||
ICON_NONE,
|
||||
op->type->idname,
|
||||
"index",
|
||||
i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -112,7 +112,8 @@ short ED_fileselect_set_params(SpaceFile *sfile)
|
|||
const bool is_directory = (RNA_struct_find_property(op->ptr, "directory") != NULL);
|
||||
const bool is_relative_path = (RNA_struct_find_property(op->ptr, "relative_path") != NULL);
|
||||
|
||||
BLI_strncpy_utf8(params->title, WM_operatortype_name(op->type, op->ptr), sizeof(params->title));
|
||||
BLI_strncpy_utf8(
|
||||
params->title, WM_operatortype_name(op->type, op->ptr), sizeof(params->title));
|
||||
|
||||
if ((prop = RNA_struct_find_property(op->ptr, "filemode"))) {
|
||||
params->type = RNA_property_int_get(op->ptr, prop);
|
||||
|
|
|
@ -591,7 +591,8 @@ static int undo_history_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSE
|
|||
const EnumPropertyItem *item = rna_undo_itemf(C, &totitem);
|
||||
|
||||
if (totitem > 0) {
|
||||
uiPopupMenu *pup = UI_popup_menu_begin(C, WM_operatortype_name(op->type, op->ptr), ICON_NONE);
|
||||
uiPopupMenu *pup = UI_popup_menu_begin(
|
||||
C, WM_operatortype_name(op->type, op->ptr), ICON_NONE);
|
||||
uiLayout *layout = UI_popup_menu_layout(pup);
|
||||
uiLayout *split = uiLayoutSplit(layout, 0.0f, false);
|
||||
uiLayout *column = NULL;
|
||||
|
|
|
@ -1641,7 +1641,7 @@ static void rna_def_constraint_follow_path(BlenderRNA *brna)
|
|||
RNA_def_struct_ui_text(srna, "Follow Path Constraint", "Lock motion to the target path");
|
||||
RNA_def_struct_sdna_from(srna, "bFollowPathConstraint", "data");
|
||||
RNA_def_struct_ui_icon(srna, ICON_CON_FOLLOWPATH);
|
||||
|
||||
|
||||
prop = RNA_def_property(srna, "target", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "tar");
|
||||
RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_Curve_object_poll");
|
||||
|
@ -2351,7 +2351,7 @@ static void rna_def_constraint_distance_limit(BlenderRNA *brna)
|
|||
|
||||
RNA_def_struct_sdna_from(srna, "bDistLimitConstraint", "data");
|
||||
RNA_def_struct_ui_icon(srna, ICON_CON_DISTLIMIT);
|
||||
|
||||
|
||||
rna_def_constraint_target_common(srna);
|
||||
|
||||
prop = RNA_def_property(srna, "distance", PROP_FLOAT, PROP_DISTANCE);
|
||||
|
|
Loading…
Reference in New Issue