Cleanup: format

This commit is contained in:
Campbell Barton
2023-12-02 14:56:12 +11:00
parent a7afc5b1e8
commit 32c5ea6262
7 changed files with 9 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ set(SRC
set(LIB
)
# This library is currently windows only, for the other platforms an empty target is created this
# This library is currently windows only, for the other platforms an empty target is created this
# way we don't have to clutter if(WIN32) ... endif() all over the place to use this library.
if(WIN32)
list(APPEND SRC

View File

@@ -4632,7 +4632,7 @@ def km_grease_pencil_edit(params):
("grease_pencil.cyclical_set", {"type": 'F', "value": 'PRESS'}, {"properties": [("type", "CLOSE")]}),
("grease_pencil.cyclical_set", {"type": 'C', "value": 'PRESS',
"alt": True}, {"properties": [("type", "TOGGLE")]}),
("grease_pencil.duplicate_move", {"type": 'D', "value": 'PRESS', "shift": True}, None),
# Active layer

View File

@@ -273,6 +273,7 @@ class GPENCIL_MT_layer_active(Menu):
layout.operator("gpencil.layer_active", text=gpl.info, icon=icon).layer = i
i -= 1
class GREASE_PENCIL_MT_layer_active(Menu):
bl_label = "Change Active Layer"
@@ -288,7 +289,7 @@ class GREASE_PENCIL_MT_layer_active(Menu):
layout.separator()
for i in range(len(obd.layers) - 1, -1, -1):
for i in range(len(obd.layers) - 1, -1, -1):
layer = obd.layers[i]
if layer == obd.layers.active:
icon = 'GREASEPENCIL'
@@ -296,6 +297,7 @@ class GREASE_PENCIL_MT_layer_active(Menu):
icon = 'NONE'
layout.operator("grease_pencil.layer_active", text=layer.name, icon=icon).layer = i
class GPENCIL_MT_material_active(Menu):
bl_label = "Change Active Material"

View File

@@ -5808,6 +5808,7 @@ class VIEW3D_MT_edit_gpencil_showhide(Menu):
layout.operator("gpencil.hide", text="Hide Active Layer").unselected = False
layout.operator("gpencil.hide", text="Hide Inactive Layers").unselected = True
class VIEW3D_MT_edit_greasepencil_showhide(Menu):
bl_label = "Show/Hide"

View File

@@ -53,7 +53,7 @@
#include "BKE_anim_visualization.h"
#include "BKE_image.h"
#include "BKE_main.hh" /* for Main */
#include "BKE_main.hh" /* for Main */
#include "BKE_mesh.hh" /* for ME_ defines (patching) */
#include "BKE_mesh_legacy_convert.hh"
#include "BKE_modifier.hh"

View File

@@ -58,7 +58,7 @@
#include "BKE_deform.h"
#include "BKE_fcurve.h"
#include "BKE_lattice.hh"
#include "BKE_main.hh" /* for Main */
#include "BKE_main.hh" /* for Main */
#include "BKE_mesh.hh" /* for ME_ defines (patching) */
#include "BKE_mesh_legacy_convert.hh"
#include "BKE_modifier.hh"

View File

@@ -38,4 +38,4 @@ void ED_operatormacros_grease_pencil()
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false);
RNA_boolean_set(otmacro->ptr, "mirror", false);
}
}