forked from bartvdbraak/blender
Cleanup: pep8
Use 'autopep8 --ignore E721,E722' on our UI code, only minor changes.
This commit is contained in:
parent
d860d23e1a
commit
c68429bc03
@ -79,7 +79,7 @@ _modules = [
|
||||
"space_userpref",
|
||||
"space_view3d",
|
||||
"space_view3d_toolbar",
|
||||
]
|
||||
]
|
||||
|
||||
import bpy
|
||||
|
||||
@ -158,6 +158,8 @@ def unregister():
|
||||
|
||||
# Define a default UIList, when a list does not need any custom drawing...
|
||||
# Keep in sync with its #defined name in UI_interface.h
|
||||
|
||||
|
||||
class UI_UL_list(bpy.types.UIList):
|
||||
# These are common filtering or ordering operations (same as the default C ones!).
|
||||
@staticmethod
|
||||
|
@ -941,6 +941,7 @@ class BONE_PT_constraints(ConstraintButtonsPanel, Panel):
|
||||
for con in context.pose_bone.constraints:
|
||||
self.draw_constraint(context, con)
|
||||
|
||||
|
||||
classes = (
|
||||
OBJECT_PT_constraints,
|
||||
BONE_PT_constraints,
|
||||
|
@ -285,6 +285,7 @@ class DATA_PT_iksolver_itasc(ArmatureButtonsPanel, Panel):
|
||||
row.prop(itasc, "damping_max", text="Damp", slider=True)
|
||||
row.prop(itasc, "damping_epsilon", text="Eps", slider=True)
|
||||
|
||||
|
||||
from .properties_animviz import (
|
||||
MotionPathButtonsPanel,
|
||||
OnionSkinButtonsPanel,
|
||||
|
@ -78,7 +78,7 @@ class BONE_PT_transform(BoneButtonsPanel, Panel):
|
||||
if pchan.rotation_mode == 'QUATERNION':
|
||||
col.prop(pchan, "rotation_quaternion", text="Rotation")
|
||||
elif pchan.rotation_mode == 'AXIS_ANGLE':
|
||||
#col.label(text="Rotation")
|
||||
# col.label(text="Rotation")
|
||||
#col.prop(pchan, "rotation_angle", text="Angle")
|
||||
#col.prop(pchan, "rotation_axis", text="Axis")
|
||||
col.prop(pchan, "rotation_axis_angle", text="Rotation")
|
||||
|
@ -189,9 +189,10 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
|
||||
|
||||
col = layout.column()
|
||||
col.active = (
|
||||
(curve.bevel_depth > 0.0) or
|
||||
(curve.extrude > 0.0) or
|
||||
(curve.bevel_object is not None))
|
||||
(curve.bevel_depth > 0.0) or
|
||||
(curve.extrude > 0.0) or
|
||||
(curve.bevel_object is not None)
|
||||
)
|
||||
row = col.row(align=True)
|
||||
row.prop(curve, "bevel_factor_mapping_start", text="")
|
||||
row.prop(curve, "bevel_factor_start", text="Start")
|
||||
|
@ -168,7 +168,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
if bpy.app.debug:
|
||||
layout.prop(md, "debug_options")
|
||||
|
||||
|
||||
def BUILD(self, layout, ob, md):
|
||||
split = layout.split()
|
||||
|
||||
@ -329,7 +328,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
layout_info = layout
|
||||
|
||||
layout_info.label(text=iface_("Face Count: {:,}".format(md.face_count)),
|
||||
translate=False)
|
||||
translate=False)
|
||||
|
||||
def DISPLACE(self, layout, ob, md):
|
||||
has_texture = (md.texture is not None)
|
||||
|
@ -627,7 +627,7 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
|
||||
row = layout.row(align=True)
|
||||
row.prop(linestyle, "panel", expand=True)
|
||||
if linestyle.panel == 'STROKES':
|
||||
## Chaining
|
||||
# Chaining
|
||||
layout.prop(linestyle, "use_chaining", text="Chaining:")
|
||||
split = layout.split(align=True)
|
||||
split.active = linestyle.use_chaining
|
||||
@ -641,7 +641,7 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
|
||||
col = split.column()
|
||||
col.prop(linestyle, "use_same_object")
|
||||
|
||||
## Splitting
|
||||
# Splitting
|
||||
layout.label(text="Splitting:")
|
||||
split = layout.split(align=True)
|
||||
# First column
|
||||
@ -677,7 +677,7 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
|
||||
sub.prop(linestyle, "split_dash3", text="D3")
|
||||
sub.prop(linestyle, "split_gap3", text="G3")
|
||||
|
||||
## Sorting
|
||||
# Sorting
|
||||
layout.prop(linestyle, "use_sorting", text="Sorting:")
|
||||
col = layout.column()
|
||||
col.active = linestyle.use_sorting
|
||||
@ -691,7 +691,7 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
|
||||
row = col.row(align=True)
|
||||
row.prop(linestyle, "sort_order", expand=True)
|
||||
|
||||
## Selection
|
||||
# Selection
|
||||
layout.label(text="Selection:")
|
||||
split = layout.split(align=True)
|
||||
# First column
|
||||
@ -714,12 +714,12 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
|
||||
sub.active = linestyle.use_chain_count
|
||||
sub.prop(linestyle, "chain_count")
|
||||
|
||||
## Caps
|
||||
# Caps
|
||||
layout.label(text="Caps:")
|
||||
row = layout.row(align=True)
|
||||
row.prop(linestyle, "caps", expand=True)
|
||||
|
||||
## Dashed lines
|
||||
# Dashed lines
|
||||
layout.prop(linestyle, "use_dashed_line", text="Dashed Line:")
|
||||
row = layout.row(align=True)
|
||||
row.active = linestyle.use_dashed_line
|
||||
@ -787,9 +787,10 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
|
||||
|
||||
row = layout.row()
|
||||
props = row.operator(
|
||||
"wm.properties_context_change",
|
||||
text="Go to Linestyle Textures Properties",
|
||||
icon='TEXTURE')
|
||||
"wm.properties_context_change",
|
||||
text="Go to Linestyle Textures Properties",
|
||||
icon='TEXTURE',
|
||||
)
|
||||
props.context = 'TEXTURE'
|
||||
|
||||
elif linestyle.panel == 'MISC':
|
||||
|
@ -207,7 +207,7 @@ class PHYSICS_PT_game_collision_bounds(PhysicsButtonsPanel, Panel):
|
||||
game = context.object.game
|
||||
rd = context.scene.render
|
||||
return (rd.engine in cls.COMPAT_ENGINES) \
|
||||
and (game.physics_type in {'SENSOR', 'STATIC', 'DYNAMIC', 'RIGID_BODY', 'CHARACTER', 'SOFT_BODY'})
|
||||
and (game.physics_type in {'SENSOR', 'STATIC', 'DYNAMIC', 'RIGID_BODY', 'CHARACTER', 'SOFT_BODY'})
|
||||
|
||||
def draw_header(self, context):
|
||||
game = context.active_object.game
|
||||
@ -248,7 +248,7 @@ class PHYSICS_PT_game_obstacles(PhysicsButtonsPanel, Panel):
|
||||
game = context.object.game
|
||||
rd = context.scene.render
|
||||
return (rd.engine in cls.COMPAT_ENGINES) \
|
||||
and (game.physics_type in {'SENSOR', 'STATIC', 'DYNAMIC', 'RIGID_BODY', 'SOFT_BODY', 'CHARACTER', 'NO_COLLISION'})
|
||||
and (game.physics_type in {'SENSOR', 'STATIC', 'DYNAMIC', 'RIGID_BODY', 'SOFT_BODY', 'CHARACTER', 'NO_COLLISION'})
|
||||
|
||||
def draw_header(self, context):
|
||||
game = context.active_object.game
|
||||
|
@ -234,7 +234,6 @@ class GreasePencilStrokeEditPanel:
|
||||
if is_3d_view:
|
||||
layout.separator()
|
||||
|
||||
|
||||
layout.separator()
|
||||
col = layout.column(align=True)
|
||||
col.operator("gpencil.stroke_subdivide", text="Subdivide")
|
||||
@ -1075,11 +1074,11 @@ class GreasePencilPaletteColorPanel:
|
||||
|
||||
row = layout.row()
|
||||
sub = row.row(align=True)
|
||||
sub.label(text="Isolate:") # based on active color only
|
||||
sub.label(text="Isolate:") # based on active color only
|
||||
sub.operator("gpencil.palettecolor_isolate", icon='LOCKED', text="").affect_visibility = False
|
||||
sub.operator("gpencil.palettecolor_isolate", icon='RESTRICT_VIEW_OFF', text="").affect_visibility = True
|
||||
sub = row.row(align=True)
|
||||
sub.label(text="Lock:") # based on other stuff...
|
||||
sub.label(text="Lock:") # based on other stuff...
|
||||
sub.operator("gpencil.stroke_lock_color", icon='BORDER_RECT', text="")
|
||||
sub.operator("gpencil.palette_lock_layer", icon='COLOR', text="")
|
||||
|
||||
|
@ -43,8 +43,8 @@ class MASK_UL_layers(UIList):
|
||||
|
||||
class MASK_PT_mask:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'UI'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'UI'
|
||||
bl_label = "Mask Settings"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@ -66,8 +66,8 @@ class MASK_PT_mask:
|
||||
|
||||
class MASK_PT_layers:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'UI'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'UI'
|
||||
bl_label = "Mask Layers"
|
||||
|
||||
@classmethod
|
||||
@ -114,8 +114,8 @@ class MASK_PT_layers:
|
||||
|
||||
class MASK_PT_spline:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'UI'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'UI'
|
||||
bl_label = "Active Spline"
|
||||
|
||||
@classmethod
|
||||
@ -148,8 +148,8 @@ class MASK_PT_spline:
|
||||
|
||||
class MASK_PT_point:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'UI'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'UI'
|
||||
bl_label = "Active Point"
|
||||
|
||||
@classmethod
|
||||
@ -203,8 +203,8 @@ class MASK_PT_point:
|
||||
|
||||
class MASK_PT_display:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'UI'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'UI'
|
||||
bl_label = "Mask Display"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@ -229,8 +229,8 @@ class MASK_PT_display:
|
||||
|
||||
class MASK_PT_transforms:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'TOOLS'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'TOOLS'
|
||||
bl_label = "Transforms"
|
||||
bl_category = "Mask"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
@ -253,8 +253,8 @@ class MASK_PT_transforms:
|
||||
|
||||
class MASK_PT_tools:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'TOOLS'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'TOOLS'
|
||||
bl_label = "Mask Tools"
|
||||
bl_category = "Mask"
|
||||
|
||||
@ -291,8 +291,8 @@ class MASK_PT_tools:
|
||||
|
||||
class MASK_PT_add:
|
||||
# subclasses must define...
|
||||
#~ bl_space_type = 'CLIP_EDITOR'
|
||||
#~ bl_region_type = 'TOOLS'
|
||||
# ~ bl_space_type = 'CLIP_EDITOR'
|
||||
# ~ bl_region_type = 'TOOLS'
|
||||
bl_label = "Add"
|
||||
bl_category = "Mask"
|
||||
|
||||
|
@ -57,7 +57,7 @@ class OBJECT_PT_transform(ObjectButtonsPanel, Panel):
|
||||
if ob.rotation_mode == 'QUATERNION':
|
||||
row.column().prop(ob, "rotation_quaternion", text="Rotation")
|
||||
elif ob.rotation_mode == 'AXIS_ANGLE':
|
||||
#row.column().label(text="Rotation")
|
||||
# row.column().label(text="Rotation")
|
||||
#row.column().prop(pchan, "rotation_angle", text="Angle")
|
||||
#row.column().prop(pchan, "rotation_axis", text="Axis")
|
||||
row.column().prop(ob, "rotation_axis_angle", text="Rotation")
|
||||
@ -84,7 +84,7 @@ class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel):
|
||||
if ob.rotation_mode == 'QUATERNION':
|
||||
row.column().prop(ob, "delta_rotation_quaternion", text="Rotation")
|
||||
elif ob.rotation_mode == 'AXIS_ANGLE':
|
||||
#row.column().label(text="Rotation")
|
||||
# row.column().label(text="Rotation")
|
||||
#row.column().prop(pchan, "delta_rotation_angle", text="Angle")
|
||||
#row.column().prop(pchan, "delta_rotation_axis", text="Axis")
|
||||
#row.column().prop(ob, "delta_rotation_axis_angle", text="Rotation")
|
||||
|
@ -126,7 +126,7 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
|
||||
col.prop(brush, "gradient_stroke_mode", text="Mode")
|
||||
if brush.gradient_stroke_mode in {'SPACING_REPEAT', 'SPACING_CLAMP'}:
|
||||
col.prop(brush, "grad_spacing")
|
||||
else: # if brush.image_tool == 'FILL':
|
||||
else: # if brush.image_tool == 'FILL':
|
||||
col.prop(brush, "gradient_fill_mode")
|
||||
else:
|
||||
row = col.row(align=True)
|
||||
|
@ -485,7 +485,7 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel, Panel):
|
||||
row.prop(part, "object_factor", slider=True)
|
||||
row.prop(part, "factor_random")
|
||||
|
||||
#if part.type=='REACTOR':
|
||||
# if part.type=='REACTOR':
|
||||
# sub.prop(part, "reactor_factor")
|
||||
# sub.prop(part, "reaction_shape", slider=True)
|
||||
|
||||
@ -815,7 +815,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
|
||||
|
||||
# Currently boids can only use the first state so these are commented out for now.
|
||||
#row = layout.row()
|
||||
#row.template_list("UI_UL_list", "particle_boids", boids, "states",
|
||||
# row.template_list("UI_UL_list", "particle_boids", boids, "states",
|
||||
# boids, "active_boid_state_index", compact="True")
|
||||
#col = row.row()
|
||||
#sub = col.row(align=True)
|
||||
|
@ -256,6 +256,7 @@ class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel, Panel):
|
||||
cloth = context.cloth.settings
|
||||
effector_weights_ui(self, context, cloth.effector_weights, 'CLOTH')
|
||||
|
||||
|
||||
classes = (
|
||||
CLOTH_MT_presets,
|
||||
PHYSICS_PT_cloth,
|
||||
|
@ -275,7 +275,7 @@ def basic_force_field_settings_ui(self, context, field):
|
||||
elif field.type == 'HARMONIC':
|
||||
col.prop(field, "use_multiple_springs")
|
||||
if field.type == 'FORCE':
|
||||
col.prop(field, "use_gravity_falloff", text="Gravitation")
|
||||
col.prop(field, "use_gravity_falloff", text="Gravitation")
|
||||
|
||||
split = layout.split()
|
||||
|
||||
|
@ -117,7 +117,7 @@ class PHYSICS_PT_rigid_body_dynamics(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
rbo = ob.rigid_body
|
||||
|
||||
#col = layout.column(align=1)
|
||||
#col.label(text="Activation:")
|
||||
# col.label(text="Activation:")
|
||||
# XXX: settings such as activate on collison/etc.
|
||||
|
||||
split = layout.split()
|
||||
|
@ -19,10 +19,10 @@
|
||||
# <pep8 compliant>
|
||||
import bpy
|
||||
from bpy.types import (
|
||||
Menu,
|
||||
Panel,
|
||||
UIList,
|
||||
)
|
||||
Menu,
|
||||
Panel,
|
||||
UIList,
|
||||
)
|
||||
|
||||
from rna_prop_ui import PropertyPanel
|
||||
|
||||
@ -117,18 +117,19 @@ class SceneKeyingSetsPanel:
|
||||
@staticmethod
|
||||
def draw_keyframing_settings(context, layout, ks, ksp):
|
||||
SceneKeyingSetsPanel._draw_keyframing_setting(
|
||||
context, layout, ks, ksp, "Needed",
|
||||
"use_insertkey_override_needed", "use_insertkey_needed",
|
||||
userpref_fallback="use_keyframe_insert_needed")
|
||||
|
||||
context, layout, ks, ksp, "Needed",
|
||||
"use_insertkey_override_needed", "use_insertkey_needed",
|
||||
userpref_fallback="use_keyframe_insert_needed",
|
||||
)
|
||||
SceneKeyingSetsPanel._draw_keyframing_setting(
|
||||
context, layout, ks, ksp, "Visual",
|
||||
"use_insertkey_override_visual", "use_insertkey_visual",
|
||||
userpref_fallback="use_visual_keying")
|
||||
|
||||
context, layout, ks, ksp, "Visual",
|
||||
"use_insertkey_override_visual", "use_insertkey_visual",
|
||||
userpref_fallback="use_visual_keying",
|
||||
)
|
||||
SceneKeyingSetsPanel._draw_keyframing_setting(
|
||||
context, layout, ks, ksp, "XYZ to RGB",
|
||||
"use_insertkey_override_xyz_to_rgb", "use_insertkey_xyz_to_rgb")
|
||||
context, layout, ks, ksp, "XYZ to RGB",
|
||||
"use_insertkey_override_xyz_to_rgb", "use_insertkey_xyz_to_rgb",
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _draw_keyframing_setting(context, layout, ks, ksp, label, toggle_prop, prop, userpref_fallback=None):
|
||||
|
@ -1087,8 +1087,8 @@ class TEXTURE_PT_influence(TextureSlotPanel, Panel):
|
||||
factor_but(col, "use_map_warp", "warp_factor", "Warp")
|
||||
factor_but(col, "use_map_displacement", "displacement_factor", "Displace")
|
||||
|
||||
#~ sub = col.column()
|
||||
#~ sub.active = tex.use_map_translucency or tex.map_emit or tex.map_alpha or tex.map_raymir or tex.map_hardness or tex.map_ambient or tex.map_specularity or tex.map_reflection or tex.map_mirror
|
||||
# ~ sub = col.column()
|
||||
# ~ sub.active = tex.use_map_translucency or tex.map_emit or tex.map_alpha or tex.map_raymir or tex.map_hardness or tex.map_ambient or tex.map_specularity or tex.map_reflection or tex.map_mirror
|
||||
#~ sub.prop(tex, "default_value", text="Amount", slider=True)
|
||||
elif idblock.type == 'HALO':
|
||||
layout.label(text="Halo:")
|
||||
|
@ -1028,9 +1028,11 @@ class CLIP_PT_proxy(CLIP_PT_clip_view_panel, Panel):
|
||||
if clip.use_proxy_custom_directory:
|
||||
col.prop(clip.proxy, "directory")
|
||||
|
||||
col.operator("clip.rebuild_proxy",
|
||||
text="Build Proxy / Timecode" if clip.source == 'MOVIE'
|
||||
else "Build Proxy")
|
||||
col.operator(
|
||||
"clip.rebuild_proxy",
|
||||
text="Build Proxy / Timecode" if clip.source == 'MOVIE'
|
||||
else "Build Proxy"
|
||||
)
|
||||
|
||||
if clip.source == 'MOVIE':
|
||||
col2 = col.column()
|
||||
@ -1199,6 +1201,7 @@ class CLIP_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
||||
class CLIP_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
||||
bl_space_type = 'CLIP_EDITOR'
|
||||
|
||||
|
||||
class CLIP_MT_view(Menu):
|
||||
bl_label = "View"
|
||||
|
||||
|
@ -405,11 +405,11 @@ class DOPESHEET_MT_gpencil_channel(Menu):
|
||||
layout.operator("anim.channels_editable_toggle")
|
||||
|
||||
# XXX: to be enabled when these are ready for use!
|
||||
#layout.separator()
|
||||
#layout.operator("anim.channels_expand")
|
||||
#layout.operator("anim.channels_collapse")
|
||||
# layout.separator()
|
||||
# layout.operator("anim.channels_expand")
|
||||
# layout.operator("anim.channels_collapse")
|
||||
|
||||
#layout.separator()
|
||||
# layout.separator()
|
||||
#layout.operator_menu_enum("anim.channels_move", "direction", text="Move...")
|
||||
|
||||
|
||||
@ -430,9 +430,9 @@ class DOPESHEET_MT_gpencil_frame(Menu):
|
||||
layout.separator()
|
||||
layout.operator("action.keyframe_type")
|
||||
|
||||
#layout.separator()
|
||||
#layout.operator("action.copy")
|
||||
#layout.operator("action.paste")
|
||||
# layout.separator()
|
||||
# layout.operator("action.copy")
|
||||
# layout.operator("action.paste")
|
||||
|
||||
|
||||
class DOPESHEET_MT_delete(Menu):
|
||||
|
@ -301,6 +301,7 @@ class GRAPH_MT_delete(Menu):
|
||||
layout.operator("graph.clean").channels = False
|
||||
layout.operator("graph.clean", text="Clean Channels").channels = True
|
||||
|
||||
|
||||
classes = (
|
||||
GRAPH_HT_header,
|
||||
GRAPH_MT_editor_menus,
|
||||
|
@ -586,6 +586,7 @@ class IMAGE_PT_tools_mask(MASK_PT_tools, Panel):
|
||||
bl_region_type = 'TOOLS'
|
||||
bl_category = 'Mask'
|
||||
|
||||
|
||||
class IMAGE_PT_tools_mask_add(MASK_PT_add, Panel):
|
||||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'TOOLS'
|
||||
@ -1173,8 +1174,6 @@ class IMAGE_PT_uv_sculpt(Panel, ImagePaintPanel):
|
||||
col.prop(uvsculpt, "show_brush")
|
||||
|
||||
|
||||
|
||||
|
||||
class IMAGE_PT_options_uvs(Panel, UVToolsPanel):
|
||||
bl_label = "UV Options"
|
||||
bl_category = "Options"
|
||||
|
@ -318,34 +318,34 @@ class INFO_MT_help(Menu):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator(
|
||||
"wm.url_open", text="Manual", icon='HELP',
|
||||
).url = "https://docs.blender.org/manual/en/dev/"
|
||||
"wm.url_open", text="Manual", icon='HELP',
|
||||
).url = "https://docs.blender.org/manual/en/dev/"
|
||||
layout.operator(
|
||||
"wm.url_open", text="Release Log", icon='URL',
|
||||
).url = "http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/%d.%d" % bpy.app.version[:2]
|
||||
"wm.url_open", text="Release Log", icon='URL',
|
||||
).url = "http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/%d.%d" % bpy.app.version[:2]
|
||||
layout.separator()
|
||||
|
||||
layout.operator(
|
||||
"wm.url_open", text="Blender Website", icon='URL',
|
||||
).url = "https://www.blender.org"
|
||||
"wm.url_open", text="Blender Website", icon='URL',
|
||||
).url = "https://www.blender.org"
|
||||
layout.operator(
|
||||
"wm.url_open", text="Blender Store", icon='URL',
|
||||
).url = "https://store.blender.org"
|
||||
"wm.url_open", text="Blender Store", icon='URL',
|
||||
).url = "https://store.blender.org"
|
||||
layout.operator(
|
||||
"wm.url_open", text="Developer Community", icon='URL',
|
||||
).url = "https://www.blender.org/get-involved/"
|
||||
"wm.url_open", text="Developer Community", icon='URL',
|
||||
).url = "https://www.blender.org/get-involved/"
|
||||
layout.operator(
|
||||
"wm.url_open", text="User Community", icon='URL',
|
||||
).url = "https://www.blender.org/support/user-community"
|
||||
"wm.url_open", text="User Community", icon='URL',
|
||||
).url = "https://www.blender.org/support/user-community"
|
||||
layout.separator()
|
||||
layout.operator(
|
||||
"wm.url_open", text="Report a Bug", icon='URL',
|
||||
).url = "https://developer.blender.org/maniphest/task/edit/form/1"
|
||||
"wm.url_open", text="Report a Bug", icon='URL',
|
||||
).url = "https://developer.blender.org/maniphest/task/edit/form/1"
|
||||
layout.separator()
|
||||
|
||||
layout.operator(
|
||||
"wm.url_open", text="Python API Reference", icon='URL',
|
||||
).url = bpy.types.WM_OT_doc_view._prefix
|
||||
"wm.url_open", text="Python API Reference", icon='URL',
|
||||
).url = bpy.types.WM_OT_doc_view._prefix
|
||||
|
||||
layout.operator("wm.operator_cheat_sheet", icon='TEXT')
|
||||
layout.operator("wm.sysinfo", icon='TEXT')
|
||||
|
@ -510,11 +510,15 @@ class NODE_PT_tools_grease_pencil_sculpt(GreasePencilStrokeSculptPanel, Panel):
|
||||
bl_region_type = 'TOOLS'
|
||||
|
||||
# Grease Pencil drawing brushes
|
||||
|
||||
|
||||
class NODE_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
||||
bl_space_type = 'NODE_EDITOR'
|
||||
bl_region_type = 'TOOLS'
|
||||
|
||||
# Grease Pencil drawing curves
|
||||
|
||||
|
||||
class NODE_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
||||
bl_space_type = 'NODE_EDITOR'
|
||||
bl_region_type = 'TOOLS'
|
||||
@ -525,6 +529,7 @@ class NODE_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Pane
|
||||
def node_draw_tree_view(layout, context):
|
||||
pass
|
||||
|
||||
|
||||
classes = (
|
||||
NODE_HT_header,
|
||||
NODE_MT_editor_menus,
|
||||
|
@ -138,7 +138,6 @@ class USERPREF_MT_app_templates(Menu):
|
||||
layout.operator_context = 'INVOKE_DEFAULT'
|
||||
props = layout.operator("wm.app_template_install")
|
||||
|
||||
|
||||
def draw(self, context):
|
||||
self.draw_ex(context, use_splash=False, use_default=True, use_install=True)
|
||||
|
||||
@ -281,8 +280,8 @@ class USERPREF_PT_interface(Panel):
|
||||
row.separator()
|
||||
|
||||
col = row.column()
|
||||
#Toolbox doesn't exist yet
|
||||
#col.label(text="Toolbox:")
|
||||
# Toolbox doesn't exist yet
|
||||
# col.label(text="Toolbox:")
|
||||
#col.prop(view, "show_column_layout")
|
||||
#col.label(text="Open Toolbox Delay:")
|
||||
#col.prop(view, "open_left_mouse_delay", text="Hold LMB")
|
||||
@ -325,7 +324,6 @@ class USERPREF_PT_interface(Panel):
|
||||
col.prop(view, "show_view3d_cursor")
|
||||
|
||||
|
||||
|
||||
class USERPREF_PT_edit(Panel):
|
||||
bl_space_type = 'USER_PREFERENCES'
|
||||
bl_label = "Edit"
|
||||
@ -409,7 +407,7 @@ class USERPREF_PT_edit(Panel):
|
||||
|
||||
sub = col.column()
|
||||
|
||||
#~ sub.active = edit.use_keyframe_insert_auto # incorrect, time-line can enable
|
||||
# ~ sub.active = edit.use_keyframe_insert_auto # incorrect, time-line can enable
|
||||
sub.prop(edit, "use_keyframe_insert_available", text="Only Insert Available")
|
||||
|
||||
col.separator()
|
||||
@ -1217,7 +1215,7 @@ class USERPREF_PT_input(Panel):
|
||||
|
||||
#sub.prop(inputs, "use_mouse_mmb_paste")
|
||||
|
||||
#col.separator()
|
||||
# col.separator()
|
||||
|
||||
sub = col.column()
|
||||
sub.prop(inputs, "invert_zoom_wheel", text="Invert Wheel Zoom Direction")
|
||||
@ -1332,7 +1330,7 @@ class USERPREF_PT_addons(Panel):
|
||||
'OFFICIAL': 'FILE_BLEND',
|
||||
'COMMUNITY': 'POSE_DATA',
|
||||
'TESTING': 'MOD_EXPLODE',
|
||||
}
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
@ -1410,7 +1408,6 @@ class USERPREF_PT_addons(Panel):
|
||||
sub_col.label(" " + addon_file)
|
||||
sub_col.label(" " + addon_path)
|
||||
|
||||
|
||||
if addon_utils.error_encoding:
|
||||
self.draw_error(
|
||||
col,
|
||||
@ -1435,11 +1432,11 @@ class USERPREF_PT_addons(Panel):
|
||||
|
||||
# check if addon should be visible with current filters
|
||||
if ((filter == "All") or
|
||||
(filter == info["category"]) or
|
||||
(filter == "Enabled" and is_enabled) or
|
||||
(filter == "Disabled" and not is_enabled) or
|
||||
(filter == "User" and (mod.__file__.startswith((scripts_addons_folder, userpref_addons_folder))))
|
||||
):
|
||||
(filter == info["category"]) or
|
||||
(filter == "Enabled" and is_enabled) or
|
||||
(filter == "Disabled" and not is_enabled) or
|
||||
(filter == "User" and (mod.__file__.startswith((scripts_addons_folder, userpref_addons_folder))))
|
||||
):
|
||||
if search and search not in info["name"].lower():
|
||||
if info["author"]:
|
||||
if search not in info["author"].lower():
|
||||
|
@ -2966,6 +2966,7 @@ class VIEW3D_MT_edit_curve_segments(Menu):
|
||||
layout.operator("curve.subdivide")
|
||||
layout.operator("curve.switch_direction")
|
||||
|
||||
|
||||
class VIEW3D_MT_edit_curve_clean(Menu):
|
||||
bl_label = "Clean Up"
|
||||
|
||||
|
@ -1582,11 +1582,11 @@ class VIEW3D_PT_sculpt_dyntopo(Panel, View3DPaintPanel):
|
||||
def draw_header(self, context):
|
||||
layout = self.layout
|
||||
layout.operator(
|
||||
"sculpt.dynamic_topology_toggle",
|
||||
icon='CHECKBOX_HLT' if context.sculpt_object.use_dynamic_topology_sculpting else 'CHECKBOX_DEHLT',
|
||||
text="",
|
||||
emboss=False,
|
||||
)
|
||||
"sculpt.dynamic_topology_toggle",
|
||||
icon='CHECKBOX_HLT' if context.sculpt_object.use_dynamic_topology_sculpting else 'CHECKBOX_DEHLT',
|
||||
text="",
|
||||
emboss=False,
|
||||
)
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@ -2032,6 +2032,8 @@ class VIEW3D_PT_tools_grease_pencil_brush(GreasePencilBrushPanel, Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
|
||||
# Grease Pencil drawingcurves
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_grease_pencil_brushcurves(GreasePencilBrushCurvesPanel, Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user