Cleanup: use since quotes for enum values, wrap multi-line brackets
This commit is contained in:
parent
78fc3039a8
commit
790fea431f
|
@ -397,8 +397,10 @@ class InfoPropertyRNA:
|
|||
type_str = (mathutils_fmt % "Euler") + " rotation" + dimension_str
|
||||
elif self.array_length == 4:
|
||||
type_str = (mathutils_fmt % "Quaternion") + " rotation" + dimension_str
|
||||
elif self.subtype in {"COORDINATES", "TRANSLATION", "DIRECTION", "VELOCITY",
|
||||
"ACCELERATION", "XYZ", "XYZ_LENGTH"}:
|
||||
elif self.subtype in {
|
||||
'COORDINATES', 'TRANSLATION', 'DIRECTION', 'VELOCITY',
|
||||
'ACCELERATION', 'XYZ', 'XYZ_LENGTH',
|
||||
}:
|
||||
if 2 <= self.array_length <= 4:
|
||||
type_str = (mathutils_fmt % "Vector") + dimension_str
|
||||
|
||||
|
|
|
@ -447,8 +447,8 @@ def km_property_editor(params):
|
|||
("object.modifier_remove", {"type": 'DEL', "value": 'PRESS'}, {"properties": [("report", True)]}),
|
||||
("object.modifier_copy", {"type": 'D', "value": 'PRESS', "ctrl": True}, None),
|
||||
# Grease pencil modifier panels
|
||||
("object.gpencil_modifier_remove", {"type": 'BACK_SPACE',
|
||||
"value": 'PRESS'}, {"properties": [("report", True)]}),
|
||||
("object.gpencil_modifier_remove",
|
||||
{"type": 'BACK_SPACE', "value": 'PRESS'}, {"properties": [("report", True)]}),
|
||||
("object.gpencil_modifier_remove", {"type": 'DEL', "value": 'PRESS'}, {"properties": [("report", True)]}),
|
||||
("object.gpencil_modifier_copy", {"type": 'D', "value": 'PRESS', "ctrl": True}, None),
|
||||
# ShaderFX panels
|
||||
|
|
|
@ -89,15 +89,18 @@ def elems_depth_search(ele_init, depths, other_edges_over_cb, results_init=None)
|
|||
if type(ele_init) is bmesh.types.BMFace:
|
||||
test_ele = {
|
||||
l.face for v, depth in vert_depths.items()
|
||||
if depth >= depth_min for l in v.link_loops}
|
||||
if depth >= depth_min for l in v.link_loops
|
||||
}
|
||||
elif type(ele_init) is bmesh.types.BMEdge:
|
||||
test_ele = {
|
||||
e for v, depth in vert_depths.items()
|
||||
if depth >= depth_min for e in v.link_edges if not e.is_wire}
|
||||
if depth >= depth_min for e in v.link_edges if not e.is_wire
|
||||
}
|
||||
else:
|
||||
test_ele = {
|
||||
v for v, depth in vert_depths.items()
|
||||
if depth >= depth_min}
|
||||
if depth >= depth_min
|
||||
}
|
||||
|
||||
result_ele = set()
|
||||
|
||||
|
|
|
@ -882,11 +882,12 @@ class CLIP_OT_setup_tracking_scene(Operator):
|
|||
|
||||
@staticmethod
|
||||
def _getPlaneVertices(half_size, z):
|
||||
|
||||
return [(-half_size, -half_size, z),
|
||||
(half_size, -half_size, z),
|
||||
(half_size, half_size, z),
|
||||
(-half_size, half_size, z)]
|
||||
return [
|
||||
(-half_size, -half_size, z),
|
||||
(half_size, -half_size, z),
|
||||
(half_size, half_size, z),
|
||||
(-half_size, half_size, z),
|
||||
]
|
||||
|
||||
def _createGround(self, collection):
|
||||
vertices = self._getPlaneVertices(4.0, 0.0)
|
||||
|
|
|
@ -141,8 +141,10 @@ class MeshMirrorUV(Operator):
|
|||
if is_editmode:
|
||||
bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
|
||||
|
||||
meshes = [ob.data for ob in context.view_layer.objects.selected
|
||||
if ob.type == 'MESH' and ob.data.library is None]
|
||||
meshes = [
|
||||
ob.data for ob in context.view_layer.objects.selected
|
||||
if ob.type == 'MESH' and ob.data.library is None
|
||||
]
|
||||
|
||||
for mesh in meshes:
|
||||
mesh.tag = False
|
||||
|
|
|
@ -280,10 +280,11 @@ class NODE_OT_interface_item_new(NodeInterfaceOperator, Operator):
|
|||
item_type: EnumProperty(
|
||||
name="Item Type",
|
||||
description="Type of the item to create",
|
||||
items=[
|
||||
items=(
|
||||
('INPUT', "Input", ""),
|
||||
('OUTPUT', "Output", ""),
|
||||
('PANEL', "Panel", "")],
|
||||
('PANEL', "Panel", ""),
|
||||
),
|
||||
default='INPUT',
|
||||
)
|
||||
|
||||
|
|
|
@ -383,8 +383,7 @@ class ShapeTransfer(Operator):
|
|||
ob_add_shape(ob_other, orig_key_name)
|
||||
|
||||
# editing the final coords, only list that stores wrapped coords
|
||||
target_shape_coords = [v.co for v in
|
||||
ob_other.active_shape_key.data]
|
||||
target_shape_coords = [v.co for v in ob_other.active_shape_key.data]
|
||||
|
||||
median_coords = [[] for i in range(len(me.vertices))]
|
||||
|
||||
|
@ -464,8 +463,10 @@ class ShapeTransfer(Operator):
|
|||
|
||||
def execute(self, context):
|
||||
ob_act = context.active_object
|
||||
objects = [ob for ob in context.selected_editable_objects
|
||||
if ob != ob_act]
|
||||
objects = [
|
||||
ob for ob in context.selected_editable_objects
|
||||
if ob != ob_act
|
||||
]
|
||||
|
||||
if 1: # swap from/to, means we can't copy to many at once.
|
||||
if len(objects) != 1:
|
||||
|
@ -603,9 +604,11 @@ class MakeDupliFace(Operator):
|
|||
linked[obj.instance_collection].append(obj)
|
||||
|
||||
for data, objects in linked.items():
|
||||
face_verts = [axis for obj in objects
|
||||
for v in matrix_to_quad(obj.matrix_world)
|
||||
for axis in v]
|
||||
face_verts = [
|
||||
axis for obj in objects
|
||||
for v in matrix_to_quad(obj.matrix_world)
|
||||
for axis in v
|
||||
]
|
||||
nbr_verts = len(face_verts) // 3
|
||||
nbr_faces = nbr_verts // 4
|
||||
|
||||
|
|
|
@ -265,8 +265,10 @@ class QuickExplode(ObjectModeOperator, Operator):
|
|||
self.report({'ERROR'}, "Active object is not a mesh")
|
||||
return {'CANCELLED'}
|
||||
|
||||
mesh_objects = [obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH' and obj != obj_act]
|
||||
mesh_objects = [
|
||||
obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH' and obj != obj_act
|
||||
]
|
||||
mesh_objects.insert(0, obj_act)
|
||||
|
||||
if self.style == 'BLEND' and len(mesh_objects) != 2:
|
||||
|
@ -441,8 +443,10 @@ class QuickSmoke(ObjectModeOperator, Operator):
|
|||
return {'CANCELLED'}
|
||||
|
||||
context_override = context.copy()
|
||||
mesh_objects = [obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH']
|
||||
mesh_objects = [
|
||||
obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH'
|
||||
]
|
||||
min_co = Vector((100000.0, 100000.0, 100000.0))
|
||||
max_co = -min_co
|
||||
|
||||
|
@ -547,8 +551,10 @@ class QuickLiquid(Operator):
|
|||
return {'CANCELLED'}
|
||||
|
||||
context_override = context.copy()
|
||||
mesh_objects = [obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH']
|
||||
mesh_objects = [
|
||||
obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH'
|
||||
]
|
||||
min_co = Vector((100000.0, 100000.0, 100000.0))
|
||||
max_co = -min_co
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ class VIEW3D_OT_edit_mesh_extrude_move(Operator):
|
|||
# to use the user setting, see: #61637
|
||||
# "orient_type": 'NORMAL',
|
||||
# Not a popular choice, too restrictive for retopo.
|
||||
# "constraint_axis": (True, True, False)})
|
||||
# "constraint_axis": (True, True, False),
|
||||
"constraint_axis": (False, False, False),
|
||||
"release_confirm": False,
|
||||
"alt_navigation": alt_navigation,
|
||||
|
|
|
@ -3195,13 +3195,12 @@ class WM_MT_splash_quick_setup(Menu):
|
|||
col = split.column()
|
||||
col.operator(
|
||||
"preferences.copy_prev",
|
||||
text=iface_(
|
||||
"Load Blender %d.%d Settings",
|
||||
"Operator") %
|
||||
old_version, icon='DUPLICATE',
|
||||
translate=False)
|
||||
text=iface_("Load Blender %d.%d Settings", "Operator") % old_version,
|
||||
icon='DUPLICATE',
|
||||
translate=False,
|
||||
)
|
||||
col.operator(
|
||||
"wm.url_open", text="See What's New...", icon='URL'
|
||||
"wm.url_open", text="See What's New...", icon='URL',
|
||||
).url = "https://wiki.blender.org/wiki/Reference/Release_Notes/4.0"
|
||||
col.separator(factor=2.0)
|
||||
|
||||
|
|
|
@ -535,7 +535,8 @@ class BONE_PT_custom_props(BoneButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_property_type = bpy.types.Bone, bpy.types.EditBone, bpy.types.PoseBone
|
||||
|
||||
@property
|
||||
|
|
|
@ -29,7 +29,8 @@ class CAMERA_PT_presets(PresetPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
|
||||
class CAMERA_PT_safe_areas_presets(PresetPanel, Panel):
|
||||
|
@ -41,7 +42,8 @@ class CAMERA_PT_safe_areas_presets(PresetPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
|
||||
class DATA_PT_context_camera(CameraButtonsPanel, Panel):
|
||||
|
@ -51,7 +53,8 @@ class DATA_PT_context_camera(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -73,7 +76,8 @@ class DATA_PT_lens(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -146,7 +150,8 @@ class DATA_PT_camera_stereoscopy(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -199,7 +204,8 @@ class DATA_PT_camera(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header_preset(self, _context):
|
||||
CAMERA_PT_presets.draw_panel_header(self.layout)
|
||||
|
@ -284,7 +290,8 @@ class DATA_PT_camera_background_image(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cam = context.camera
|
||||
|
@ -395,7 +402,8 @@ class DATA_PT_camera_display(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -432,7 +440,8 @@ class DATA_PT_camera_display_composition_guides(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -463,7 +472,8 @@ class DATA_PT_camera_safe_areas(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cam = context.camera
|
||||
|
@ -497,7 +507,8 @@ class DATA_PT_camera_safe_areas_center_cut(CameraButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cam = context.camera
|
||||
|
@ -525,7 +536,8 @@ class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Camera
|
||||
|
||||
|
|
|
@ -123,7 +123,8 @@ class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -501,7 +502,8 @@ class DATA_PT_custom_props_curve(CurveButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Curve
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ class DATA_PT_context_curves(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -46,7 +47,8 @@ class DATA_PT_curves_surface(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -133,7 +135,8 @@ class DATA_PT_CURVES_attributes(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
curves = context.curves
|
||||
|
@ -162,7 +165,8 @@ class DATA_PT_custom_props_curves(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Curves if hasattr(bpy.types, "Curves") else None
|
||||
|
||||
|
|
|
@ -175,31 +175,31 @@ class DATA_PT_gpencil_layers(DataButtonsPanel, Panel):
|
|||
|
||||
class DATA_PT_gpencil_layer_masks(LayerDataButtonsPanel, GreasePencilLayerMasksPanel, Panel):
|
||||
bl_label = "Masks"
|
||||
bl_parent_id = 'DATA_PT_gpencil_layers'
|
||||
bl_parent_id = "DATA_PT_gpencil_layers"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DATA_PT_gpencil_layer_transform(LayerDataButtonsPanel, GreasePencilLayerTransformPanel, Panel):
|
||||
bl_label = "Transform"
|
||||
bl_parent_id = 'DATA_PT_gpencil_layers'
|
||||
bl_parent_id = "DATA_PT_gpencil_layers"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DATA_PT_gpencil_layer_adjustments(LayerDataButtonsPanel, GreasePencilLayerAdjustmentsPanel, Panel):
|
||||
bl_label = "Adjustments"
|
||||
bl_parent_id = 'DATA_PT_gpencil_layers'
|
||||
bl_parent_id = "DATA_PT_gpencil_layers"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DATA_PT_gpencil_layer_relations(LayerDataButtonsPanel, GreasePencilLayerRelationsPanel, Panel):
|
||||
bl_label = "Relations"
|
||||
bl_parent_id = 'DATA_PT_gpencil_layers'
|
||||
bl_parent_id = "DATA_PT_gpencil_layers"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DATA_PT_gpencil_layer_display(LayerDataButtonsPanel, GreasePencilLayerDisplayPanel, Panel):
|
||||
bl_label = "Display"
|
||||
bl_parent_id = 'DATA_PT_gpencil_layers'
|
||||
bl_parent_id = "DATA_PT_gpencil_layers"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
|
@ -390,7 +390,7 @@ class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
|
|||
|
||||
class DATA_PT_gpencil_canvas(DataButtonsPanel, Panel):
|
||||
bl_label = "Canvas"
|
||||
bl_parent_id = 'DATA_PT_gpencil_display'
|
||||
bl_parent_id = "DATA_PT_gpencil_display"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
def draw(self, context):
|
||||
|
|
|
@ -71,7 +71,8 @@ class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Lattice
|
||||
|
||||
|
|
|
@ -26,7 +26,8 @@ class DATA_PT_context_light(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -251,7 +252,8 @@ class DATA_PT_spot(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -278,7 +280,8 @@ class DATA_PT_custom_props_light(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Light
|
||||
|
||||
|
|
|
@ -167,7 +167,8 @@ class DATA_PT_context_mesh(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -189,7 +190,8 @@ class DATA_PT_normals(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -215,7 +217,8 @@ class DATA_PT_texture_space(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -239,7 +242,8 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -301,7 +305,8 @@ class DATA_PT_shape_keys(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -402,7 +407,8 @@ class DATA_PT_uv_texture(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -428,7 +434,8 @@ class DATA_PT_remesh(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -462,7 +469,8 @@ class DATA_PT_customdata(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -486,7 +494,8 @@ class DATA_PT_custom_props_mesh(MeshButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Mesh
|
||||
|
||||
|
@ -539,7 +548,8 @@ class DATA_PT_mesh_attributes(MeshButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
mesh = context.mesh
|
||||
|
@ -672,7 +682,8 @@ class DATA_PT_vertex_colors(DATA_PT_mesh_attributes, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
mesh = context.mesh
|
||||
|
|
|
@ -63,7 +63,8 @@ class DATA_PT_mball_texture_space(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -122,7 +123,8 @@ class DATA_PT_custom_props_metaball(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.MetaBall
|
||||
|
||||
|
|
|
@ -14,10 +14,14 @@ class ModifierButtonsPanel:
|
|||
|
||||
|
||||
class ModifierAddMenu:
|
||||
MODIFIER_TYPES_TO_LABELS = {enum_it.identifier: enum_it.name
|
||||
for enum_it in bpy.types.Modifier.bl_rna.properties['type'].enum_items_static}
|
||||
MODIFIER_TYPES_TO_ICONS = {enum_it.identifier: enum_it.icon
|
||||
for enum_it in bpy.types.Modifier.bl_rna.properties['type'].enum_items_static}
|
||||
MODIFIER_TYPES_TO_LABELS = {
|
||||
enum_it.identifier: enum_it.name
|
||||
for enum_it in bpy.types.Modifier.bl_rna.properties['type'].enum_items_static
|
||||
}
|
||||
MODIFIER_TYPES_TO_ICONS = {
|
||||
enum_it.identifier: enum_it.icon
|
||||
for enum_it in bpy.types.Modifier.bl_rna.properties['type'].enum_items_static
|
||||
}
|
||||
MODIFIER_TYPES_I18N_CONTEXT = bpy.types.Modifier.bl_rna.properties['type'].translation_context
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -25,7 +25,8 @@ class DATA_PT_context_pointcloud(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -108,7 +109,8 @@ class DATA_PT_pointcloud_attributes(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
pointcloud = context.pointcloud
|
||||
|
@ -137,7 +139,8 @@ class DATA_PT_custom_props_pointcloud(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.PointCloud if hasattr(bpy.types, "PointCloud") else None
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ class DATA_PT_context_speaker(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -46,7 +47,8 @@ class DATA_PT_speaker(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -72,7 +74,8 @@ class DATA_PT_distance(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -100,7 +103,8 @@ class DATA_PT_cone(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -126,7 +130,8 @@ class DATA_PT_custom_props_speaker(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Speaker
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ class DATA_PT_context_volume(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -46,7 +47,8 @@ class DATA_PT_volume_file(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -95,7 +97,8 @@ class DATA_PT_volume_grids(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -112,7 +115,8 @@ class DATA_PT_volume_render(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -148,7 +152,8 @@ class DATA_PT_volume_viewport_display(DataButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -171,12 +176,13 @@ class DATA_PT_volume_viewport_display(DataButtonsPanel, Panel):
|
|||
|
||||
class DATA_PT_volume_viewport_display_slicing(DataButtonsPanel, Panel):
|
||||
bl_label = ""
|
||||
bl_parent_id = 'DATA_PT_volume_viewport_display'
|
||||
bl_parent_id = "DATA_PT_volume_viewport_display"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
layout = self.layout
|
||||
|
@ -206,7 +212,8 @@ class DATA_PT_custom_props_volume(DataButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "object.data"
|
||||
_property_type = bpy.types.Volume
|
||||
|
||||
|
|
|
@ -68,7 +68,8 @@ class MATERIAL_PT_custom_props(MaterialButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "material"
|
||||
_property_type = bpy.types.Material
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ class MATERIAL_PT_gpencil_surface(GPMaterialButtonsPanel, Panel):
|
|||
|
||||
class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel):
|
||||
bl_label = "Stroke"
|
||||
bl_parent_id = 'MATERIAL_PT_gpencil_surface'
|
||||
bl_parent_id = "MATERIAL_PT_gpencil_surface"
|
||||
|
||||
def draw_header(self, context):
|
||||
ma = context.material
|
||||
|
@ -164,7 +164,7 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel):
|
|||
|
||||
class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel):
|
||||
bl_label = "Fill"
|
||||
bl_parent_id = 'MATERIAL_PT_gpencil_surface'
|
||||
bl_parent_id = "MATERIAL_PT_gpencil_surface"
|
||||
|
||||
def draw_header(self, context):
|
||||
ma = context.material
|
||||
|
|
|
@ -49,7 +49,8 @@ class RENDER_PT_format(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
_frame_rate_args_prev = None
|
||||
_preset_class = None
|
||||
|
@ -131,7 +132,8 @@ class RENDER_PT_frame_range(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -154,7 +156,8 @@ class RENDER_PT_time_stretching(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -175,7 +178,8 @@ class RENDER_PT_post_processing(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -197,7 +201,8 @@ class RENDER_PT_stamp(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -235,7 +240,8 @@ class RENDER_PT_stamp_note(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
rd = context.scene.render
|
||||
|
@ -259,7 +265,8 @@ class RENDER_PT_stamp_burn(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
rd = context.scene.render
|
||||
|
@ -287,7 +294,8 @@ class RENDER_PT_output(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -320,7 +328,8 @@ class RENDER_PT_output_views(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -344,7 +353,8 @@ class RENDER_PT_output_color_management(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
scene = context.scene
|
||||
|
@ -383,7 +393,8 @@ class RENDER_PT_encoding(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header_preset(self, _context):
|
||||
RENDER_PT_ffmpeg_presets.draw_panel_header(self.layout)
|
||||
|
@ -412,7 +423,8 @@ class RENDER_PT_encoding_video(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -492,7 +504,8 @@ class RENDER_PT_encoding_audio(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -538,7 +551,8 @@ class RENDER_PT_stereoscopy(RenderOutputButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
def draw_header(self, context):
|
||||
|
|
|
@ -59,7 +59,8 @@ class PARTICLE_MT_context_menu(Menu):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -102,7 +103,8 @@ class PARTICLE_PT_hair_dynamics_presets(PresetPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
|
||||
class ParticleButtonsPanel:
|
||||
|
@ -160,7 +162,8 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -258,7 +261,8 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -314,7 +318,8 @@ class PARTICLE_PT_emission_source(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -355,7 +360,8 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -442,7 +448,8 @@ class PARTICLE_PT_hair_dynamics_collision(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -478,7 +485,8 @@ class PARTICLE_PT_hair_dynamics_structure(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -513,7 +521,8 @@ class PARTICLE_PT_hair_dynamics_volume(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -548,7 +557,8 @@ class PARTICLE_PT_cache(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -585,7 +595,8 @@ class PARTICLE_PT_velocity(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -638,7 +649,8 @@ class PARTICLE_PT_rotation(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -697,7 +709,8 @@ class PARTICLE_PT_rotation_angular_velocity(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -726,7 +739,8 @@ class PARTICLE_PT_physics(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -783,7 +797,8 @@ class PARTICLE_PT_physics_fluid_advanced(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -832,7 +847,8 @@ class PARTICLE_PT_physics_fluid_springs(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -860,7 +876,8 @@ class PARTICLE_PT_physics_fluid_springs_viscoelastic(ParticleButtonsPanel, Panel
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -900,7 +917,8 @@ class PARTICLE_PT_physics_fluid_springs_advanced(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -928,7 +946,8 @@ class PARTICLE_PT_physics_boids_movement(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -985,7 +1004,8 @@ class PARTICLE_PT_physics_boids_battle(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1016,7 +1036,8 @@ class PARTICLE_PT_physics_boids_misc(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1045,7 +1066,8 @@ class PARTICLE_PT_physics_relations(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1104,7 +1126,8 @@ class PARTICLE_PT_physics_fluid_interaction(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1149,7 +1172,8 @@ class PARTICLE_PT_physics_deflection(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1179,7 +1203,8 @@ class PARTICLE_PT_physics_forces(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1210,7 +1235,8 @@ class PARTICLE_PT_physics_integration(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1248,7 +1274,8 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1350,7 +1377,8 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1401,7 +1429,8 @@ class PARTICLE_PT_render_extra(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1429,7 +1458,8 @@ class PARTICLE_PT_render_path(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1455,7 +1485,8 @@ class PARTICLE_PT_render_path_timing(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1487,7 +1518,8 @@ class PARTICLE_PT_render_object(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1516,7 +1548,8 @@ class PARTICLE_PT_render_collection(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1550,7 +1583,8 @@ class PARTICLE_PT_render_collection_use_count(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1602,7 +1636,8 @@ class PARTICLE_PT_draw(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1665,7 +1700,8 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1722,7 +1758,8 @@ class PARTICLE_PT_children_parting(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1757,7 +1794,8 @@ class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1797,7 +1835,8 @@ class PARTICLE_PT_children_clumping_noise(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
|
||||
|
@ -1825,7 +1864,8 @@ class PARTICLE_PT_children_roughness(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1870,7 +1910,8 @@ class PARTICLE_PT_children_kink(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1924,7 +1965,8 @@ class PARTICLE_PT_field_weights(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1949,7 +1991,8 @@ class PARTICLE_PT_force_fields(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -1969,7 +2012,8 @@ class PARTICLE_PT_force_fields_type1(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -1990,7 +2034,8 @@ class PARTICLE_PT_force_fields_type2(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -2012,7 +2057,8 @@ class PARTICLE_PT_force_fields_type1_falloff(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -2032,7 +2078,8 @@ class PARTICLE_PT_force_fields_type2_falloff(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -2051,7 +2098,8 @@ class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -2144,7 +2192,8 @@ class PARTICLE_PT_textures(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -2180,7 +2229,8 @@ class PARTICLE_PT_hair_shape(ParticleButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -2212,7 +2262,8 @@ class PARTICLE_PT_custom_props(ParticleButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "particle_system.settings"
|
||||
_property_type = bpy.types.ParticleSettings
|
||||
|
||||
|
|
|
@ -41,7 +41,8 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header_preset(self, _context):
|
||||
CLOTH_PT_presets.draw_panel_header(self.layout)
|
||||
|
@ -65,12 +66,13 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_physical_properties(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Physical Properties"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth'
|
||||
bl_parent_id = "PHYSICS_PT_cloth"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -93,12 +95,13 @@ class PHYSICS_PT_cloth_physical_properties(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Stiffness"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth_physical_properties'
|
||||
bl_parent_id = "PHYSICS_PT_cloth_physical_properties"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -128,12 +131,13 @@ class PHYSICS_PT_cloth_stiffness(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_damping(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Damping"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth_physical_properties'
|
||||
bl_parent_id = "PHYSICS_PT_cloth_physical_properties"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -163,12 +167,13 @@ class PHYSICS_PT_cloth_damping(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_internal_springs(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Internal Springs"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth_physical_properties'
|
||||
bl_parent_id = "PHYSICS_PT_cloth_physical_properties"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cloth = context.cloth.settings
|
||||
|
@ -209,12 +214,13 @@ class PHYSICS_PT_cloth_internal_springs(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_pressure(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Pressure"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth_physical_properties'
|
||||
bl_parent_id = "PHYSICS_PT_cloth_physical_properties"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cloth = context.cloth.settings
|
||||
|
@ -256,13 +262,14 @@ class PHYSICS_PT_cloth_pressure(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Cache"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth'
|
||||
bl_parent_id = "PHYSICS_PT_cloth"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
md = context.cloth
|
||||
|
@ -271,13 +278,14 @@ class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_shape(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Shape"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth'
|
||||
bl_parent_id = "PHYSICS_PT_cloth"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -325,13 +333,14 @@ class PHYSICS_PT_cloth_shape(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Collisions"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth'
|
||||
bl_parent_id = "PHYSICS_PT_cloth"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -350,12 +359,13 @@ class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_object_collision(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Object Collisions"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth_collision'
|
||||
bl_parent_id = "PHYSICS_PT_cloth_collision"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cloth = context.cloth.collision_settings
|
||||
|
@ -390,12 +400,13 @@ class PHYSICS_PT_cloth_object_collision(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_self_collision(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Self Collisions"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth_collision'
|
||||
bl_parent_id = "PHYSICS_PT_cloth_collision"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
cloth = context.cloth.collision_settings
|
||||
|
@ -430,13 +441,14 @@ class PHYSICS_PT_cloth_self_collision(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_property_weights(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Property Weights"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth'
|
||||
bl_parent_id = "PHYSICS_PT_cloth"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -488,13 +500,14 @@ class PHYSICS_PT_cloth_property_weights(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cloth_field_weights(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Field Weights"
|
||||
bl_parent_id = 'PHYSICS_PT_cloth'
|
||||
bl_parent_id = "PHYSICS_PT_cloth"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
cloth = context.cloth.settings
|
||||
|
|
|
@ -57,7 +57,8 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
|
|
@ -89,7 +89,8 @@ class PHYSICS_PT_dynamic_paint(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -109,12 +110,13 @@ class PHYSICS_PT_dynamic_paint(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_dynamic_paint_settings(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'PHYSICS_PT_dynamic_paint'
|
||||
bl_parent_id = "PHYSICS_PT_dynamic_paint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -202,7 +204,8 @@ class PHYSICS_PT_dp_surface_canvas(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -269,7 +272,8 @@ class PHYSICS_PT_dp_surface_canvas_paint_dry(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -309,7 +313,8 @@ class PHYSICS_PT_dp_surface_canvas_paint_dissolve(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -350,7 +355,8 @@ class PHYSICS_PT_dp_canvas_output(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -430,7 +436,8 @@ class PHYSICS_PT_dp_canvas_output_paintmaps(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -464,7 +471,8 @@ class PHYSICS_PT_dp_canvas_output_wetmaps(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -498,7 +506,8 @@ class PHYSICS_PT_dp_canvas_initial_color(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -536,13 +545,14 @@ class PHYSICS_PT_dp_canvas_initial_color(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_dp_effects(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Effects"
|
||||
bl_parent_id = 'PHYSICS_PT_dynamic_paint'
|
||||
bl_parent_id = "PHYSICS_PT_dynamic_paint"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -563,7 +573,8 @@ class PHYSICS_PT_dp_effects_spread(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -602,7 +613,8 @@ class PHYSICS_PT_dp_effects_drip(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -642,7 +654,8 @@ class PHYSICS_PT_dp_effects_drip_weights(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -670,7 +683,8 @@ class PHYSICS_PT_dp_effects_shrink(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -704,7 +718,8 @@ class PHYSICS_PT_dp_cache(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -728,7 +743,8 @@ class PHYSICS_PT_dp_brush_source(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -795,7 +811,8 @@ class PHYSICS_PT_dp_brush_source_color_ramp(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -826,7 +843,8 @@ class PHYSICS_PT_dp_brush_velocity(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -861,7 +879,8 @@ class PHYSICS_PT_dp_brush_velocity_color_ramp(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -886,7 +905,8 @@ class PHYSICS_PT_dp_brush_velocity_smudge(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -918,7 +938,8 @@ class PHYSICS_PT_dp_brush_wave(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
|
|
@ -33,7 +33,8 @@ class PHYSICS_PT_field(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -54,12 +55,13 @@ class PHYSICS_PT_field(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_field_settings(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'PHYSICS_PT_field'
|
||||
bl_parent_id = "PHYSICS_PT_field"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -145,12 +147,13 @@ class PHYSICS_PT_field_settings(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_field_settings_kink(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Kink"
|
||||
bl_parent_id = 'PHYSICS_PT_field_settings'
|
||||
bl_parent_id = "PHYSICS_PT_field_settings"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -183,12 +186,13 @@ class PHYSICS_PT_field_settings_kink(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_field_settings_texture_select(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Texture"
|
||||
bl_parent_id = 'PHYSICS_PT_field_settings'
|
||||
bl_parent_id = "PHYSICS_PT_field_settings"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -214,7 +218,8 @@ class PHYSICS_PT_field_falloff(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -243,7 +248,8 @@ class PHYSICS_PT_field_falloff_angular(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -286,7 +292,8 @@ class PHYSICS_PT_field_falloff_radial(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -334,7 +341,8 @@ class PHYSICS_PT_collision(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -369,7 +377,8 @@ class PHYSICS_PT_collision_particle(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -419,7 +428,8 @@ class PHYSICS_PT_collision_softbody(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
|
|
@ -102,7 +102,8 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -125,12 +126,13 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_settings(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -292,12 +294,13 @@ class PHYSICS_PT_settings(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_borders(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Border Collisions"
|
||||
bl_parent_id = 'PHYSICS_PT_settings'
|
||||
bl_parent_id = "PHYSICS_PT_settings"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -329,12 +332,13 @@ class PHYSICS_PT_borders(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Gas"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -365,13 +369,14 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_smoke_dissolve(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Dissolve"
|
||||
bl_parent_id = 'PHYSICS_PT_smoke'
|
||||
bl_parent_id = "PHYSICS_PT_smoke"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -413,13 +418,14 @@ class PHYSICS_PT_smoke_dissolve(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_fire(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Fire"
|
||||
bl_parent_id = 'PHYSICS_PT_smoke'
|
||||
bl_parent_id = "PHYSICS_PT_smoke"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -457,12 +463,13 @@ class PHYSICS_PT_fire(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_liquid(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Liquid"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -523,13 +530,14 @@ class PHYSICS_PT_liquid(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_flow_source(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Flow Source"
|
||||
bl_parent_id = 'PHYSICS_PT_settings'
|
||||
bl_parent_id = "PHYSICS_PT_settings"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -569,12 +577,13 @@ class PHYSICS_PT_flow_source(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_flow_initial_velocity(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Initial Velocity"
|
||||
bl_parent_id = 'PHYSICS_PT_settings'
|
||||
bl_parent_id = "PHYSICS_PT_settings"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -614,13 +623,14 @@ class PHYSICS_PT_flow_initial_velocity(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_flow_texture(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Texture"
|
||||
bl_parent_id = 'PHYSICS_PT_settings'
|
||||
bl_parent_id = "PHYSICS_PT_settings"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -669,13 +679,14 @@ class PHYSICS_PT_flow_texture(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_adaptive_domain(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Adaptive Domain"
|
||||
bl_parent_id = 'PHYSICS_PT_settings'
|
||||
bl_parent_id = "PHYSICS_PT_settings"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -725,13 +736,14 @@ class PHYSICS_PT_adaptive_domain(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_noise(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Noise"
|
||||
bl_parent_id = 'PHYSICS_PT_smoke'
|
||||
bl_parent_id = "PHYSICS_PT_smoke"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -809,13 +821,14 @@ class PHYSICS_PT_noise(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_mesh(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Mesh"
|
||||
bl_parent_id = 'PHYSICS_PT_liquid'
|
||||
bl_parent_id = "PHYSICS_PT_liquid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -908,13 +921,14 @@ class PHYSICS_PT_mesh(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_particles(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Particles"
|
||||
bl_parent_id = 'PHYSICS_PT_liquid'
|
||||
bl_parent_id = "PHYSICS_PT_liquid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1043,13 +1057,14 @@ class PHYSICS_PT_particles(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_viscosity(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Viscosity"
|
||||
bl_parent_id = 'PHYSICS_PT_liquid'
|
||||
bl_parent_id = "PHYSICS_PT_liquid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1087,13 +1102,14 @@ class PHYSICS_PT_viscosity(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_diffusion(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Diffusion"
|
||||
bl_parent_id = 'PHYSICS_PT_liquid'
|
||||
bl_parent_id = "PHYSICS_PT_liquid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1138,13 +1154,14 @@ class PHYSICS_PT_diffusion(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_guide(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Guides"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1208,13 +1225,14 @@ class PHYSICS_PT_guide(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_collections(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Collections"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1240,12 +1258,13 @@ class PHYSICS_PT_collections(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_cache(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Cache"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1327,13 +1346,14 @@ class PHYSICS_PT_cache(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_export(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Advanced"
|
||||
bl_parent_id = 'PHYSICS_PT_cache'
|
||||
bl_parent_id = "PHYSICS_PT_cache"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1376,13 +1396,14 @@ class PHYSICS_PT_export(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_field_weights(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Field Weights"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1398,7 +1419,7 @@ class PHYSICS_PT_field_weights(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_viewport_display(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Viewport Display"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
@ -1428,7 +1449,7 @@ class PHYSICS_PT_viewport_display(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_viewport_display_slicing(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Slice"
|
||||
bl_parent_id = 'PHYSICS_PT_viewport_display'
|
||||
bl_parent_id = "PHYSICS_PT_viewport_display"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
@ -1460,7 +1481,7 @@ class PHYSICS_PT_viewport_display_slicing(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_viewport_display_color(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Grid Display"
|
||||
bl_parent_id = 'PHYSICS_PT_viewport_display'
|
||||
bl_parent_id = "PHYSICS_PT_viewport_display"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
@ -1493,7 +1514,7 @@ class PHYSICS_PT_viewport_display_color(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_viewport_display_debug(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Vector Display"
|
||||
bl_parent_id = 'PHYSICS_PT_viewport_display'
|
||||
bl_parent_id = "PHYSICS_PT_viewport_display"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
@ -1534,7 +1555,7 @@ class PHYSICS_PT_viewport_display_debug(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_viewport_display_advanced(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Advanced"
|
||||
bl_parent_id = 'PHYSICS_PT_viewport_display'
|
||||
bl_parent_id = "PHYSICS_PT_viewport_display"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
@ -1569,13 +1590,14 @@ class PHYSICS_PT_viewport_display_advanced(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_fluid_domain_render(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Render"
|
||||
bl_parent_id = 'PHYSICS_PT_fluid'
|
||||
bl_parent_id = "PHYSICS_PT_fluid"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
|
|
@ -25,7 +25,8 @@ class PHYSICS_PT_rigid_body(PHYSICS_PT_rigidbody_panel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -59,12 +60,13 @@ class PHYSICS_PT_rigid_body(PHYSICS_PT_rigidbody_panel, Panel):
|
|||
|
||||
class PHYSICS_PT_rigid_body_settings(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -95,12 +97,13 @@ class PHYSICS_PT_rigid_body_settings(PHYSICS_PT_rigidbody_panel, Panel):
|
|||
|
||||
class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Collisions"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -148,13 +151,14 @@ class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel):
|
|||
|
||||
class PHYSICS_PT_rigid_body_collisions_surface(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Surface Response"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_collisions'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_collisions"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -180,13 +184,14 @@ class PHYSICS_PT_rigid_body_collisions_surface(PHYSICS_PT_rigidbody_panel, Panel
|
|||
|
||||
class PHYSICS_PT_rigid_body_collisions_sensitivity(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Sensitivity"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_collisions'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_collisions"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -221,13 +226,14 @@ class PHYSICS_PT_rigid_body_collisions_sensitivity(PHYSICS_PT_rigidbody_panel, P
|
|||
|
||||
class PHYSICS_PT_rigid_body_collisions_collections(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Collections"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_collisions'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_collisions"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -247,13 +253,14 @@ class PHYSICS_PT_rigid_body_collisions_collections(PHYSICS_PT_rigidbody_panel, P
|
|||
|
||||
class PHYSICS_PT_rigid_body_dynamics(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Dynamics"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -284,13 +291,14 @@ class PHYSICS_PT_rigid_body_dynamics(PHYSICS_PT_rigidbody_panel, Panel):
|
|||
|
||||
class PHYSICS_PT_rigid_body_dynamics_deactivation(PHYSICS_PT_rigidbody_panel, Panel):
|
||||
bl_label = "Deactivation"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_dynamics'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_dynamics"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
|
|
@ -19,7 +19,8 @@ class PHYSICS_PT_rigid_body_constraint(PHYSICS_PT_rigidbody_constraint_panel, Pa
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -38,12 +39,13 @@ class PHYSICS_PT_rigid_body_constraint(PHYSICS_PT_rigidbody_constraint_panel, Pa
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_settings(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -73,12 +75,13 @@ class PHYSICS_PT_rigid_body_constraint_settings(PHYSICS_PT_rigidbody_constraint_
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_objects(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Objects"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -98,12 +101,13 @@ class PHYSICS_PT_rigid_body_constraint_objects(PHYSICS_PT_rigidbody_constraint_p
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_override_iterations(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Override Iterations"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -128,12 +132,13 @@ class PHYSICS_PT_rigid_body_constraint_override_iterations(PHYSICS_PT_rigidbody_
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_limits(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Limits"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -149,12 +154,13 @@ class PHYSICS_PT_rigid_body_constraint_limits(PHYSICS_PT_rigidbody_constraint_pa
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_limits_linear(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Linear"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint_limits'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint_limits"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -210,12 +216,13 @@ class PHYSICS_PT_rigid_body_constraint_limits_linear(PHYSICS_PT_rigidbody_constr
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_limits_angular(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Angular"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint_limits'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint_limits"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -280,12 +287,13 @@ class PHYSICS_PT_rigid_body_constraint_limits_angular(PHYSICS_PT_rigidbody_const
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_motor(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Motor"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -301,12 +309,13 @@ class PHYSICS_PT_rigid_body_constraint_motor(PHYSICS_PT_rigidbody_constraint_pan
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_motor_angular(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Angular"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint_motor'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint_motor"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -341,12 +350,13 @@ class PHYSICS_PT_rigid_body_constraint_motor_angular(PHYSICS_PT_rigidbody_constr
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_motor_linear(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Linear"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint_motor'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint_motor"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -381,12 +391,13 @@ class PHYSICS_PT_rigid_body_constraint_motor_linear(PHYSICS_PT_rigidbody_constra
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_springs(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Springs"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -409,12 +420,13 @@ class PHYSICS_PT_rigid_body_constraint_springs(PHYSICS_PT_rigidbody_constraint_p
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_springs_angular(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Angular"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint_springs'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint_springs"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -461,12 +473,13 @@ class PHYSICS_PT_rigid_body_constraint_springs_angular(PHYSICS_PT_rigidbody_cons
|
|||
|
||||
class PHYSICS_PT_rigid_body_constraint_springs_linear(PHYSICS_PT_rigidbody_constraint_panel, Panel):
|
||||
bl_label = "Linear"
|
||||
bl_parent_id = 'PHYSICS_PT_rigid_body_constraint_springs'
|
||||
bl_parent_id = "PHYSICS_PT_rigid_body_constraint_springs"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
|
|
@ -34,7 +34,8 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -48,13 +49,14 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_object(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Object"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -80,13 +82,14 @@ class PHYSICS_PT_softbody_object(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_simulation(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Simulation"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -102,13 +105,14 @@ class PHYSICS_PT_softbody_simulation(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Cache"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
md = context.soft_body
|
||||
|
@ -117,13 +121,14 @@ class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Goal"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
softbody = context.soft_body.settings
|
||||
|
@ -146,13 +151,14 @@ class PHYSICS_PT_softbody_goal(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_goal_strengths(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Strengths"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody_goal'
|
||||
bl_parent_id = "PHYSICS_PT_softbody_goal"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -176,13 +182,14 @@ class PHYSICS_PT_softbody_goal_strengths(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_goal_settings(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody_goal'
|
||||
bl_parent_id = "PHYSICS_PT_softbody_goal"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -203,13 +210,14 @@ class PHYSICS_PT_softbody_goal_settings(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Edges"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
softbody = context.soft_body.settings
|
||||
|
@ -258,13 +266,14 @@ class PHYSICS_PT_softbody_edge(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_edge_aerodynamics(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Aerodynamics"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody_edge'
|
||||
bl_parent_id = "PHYSICS_PT_softbody_edge"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -285,13 +294,14 @@ class PHYSICS_PT_softbody_edge_aerodynamics(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_edge_stiffness(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Stiffness"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody_edge'
|
||||
bl_parent_id = "PHYSICS_PT_softbody_edge"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
softbody = context.soft_body.settings
|
||||
|
@ -313,13 +323,14 @@ class PHYSICS_PT_softbody_edge_stiffness(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Self Collision"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
softbody = context.soft_body.settings
|
||||
|
@ -352,13 +363,14 @@ class PHYSICS_PT_softbody_collision(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Solver"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -381,13 +393,14 @@ class PHYSICS_PT_softbody_solver(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_solver_diagnostics(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Diagnostics"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody_solver'
|
||||
bl_parent_id = "PHYSICS_PT_softbody_solver"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -404,13 +417,14 @@ class PHYSICS_PT_softbody_solver_diagnostics(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_solver_helpers(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Helpers"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody_solver'
|
||||
bl_parent_id = "PHYSICS_PT_softbody_solver"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -431,13 +445,14 @@ class PHYSICS_PT_softbody_solver_helpers(PhysicButtonsPanel, Panel):
|
|||
|
||||
class PHYSICS_PT_softbody_field_weights(PhysicButtonsPanel, Panel):
|
||||
bl_label = "Field Weights"
|
||||
bl_parent_id = 'PHYSICS_PT_softbody'
|
||||
bl_parent_id = "PHYSICS_PT_softbody"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
md = context.soft_body
|
||||
|
|
|
@ -54,7 +54,8 @@ class RENDER_PT_color_management(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
|
||||
|
@ -92,7 +93,8 @@ class RENDER_PT_color_management_display_settings(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -122,7 +124,8 @@ class RENDER_PT_color_management_curves(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
|
||||
|
@ -1057,7 +1060,8 @@ class RENDER_PT_gpencil(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -1149,7 +1153,8 @@ class RENDER_PT_simplify(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
rd = context.scene.render
|
||||
|
@ -1166,7 +1171,8 @@ class RENDER_PT_simplify_viewport(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -1199,7 +1205,8 @@ class RENDER_PT_simplify_render(RenderButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
|
|
@ -74,7 +74,8 @@ class TEXTURE_PT_preview(TextureButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -107,7 +108,8 @@ class TEXTURE_PT_context(TextureButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -150,7 +152,8 @@ class TEXTURE_PT_node(TextureButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -183,7 +186,8 @@ class TEXTURE_PT_clouds(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -219,7 +223,8 @@ class TEXTURE_PT_wood(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -260,7 +265,8 @@ class TEXTURE_PT_marble(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -298,7 +304,8 @@ class TEXTURE_PT_magic(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -321,7 +328,8 @@ class TEXTURE_PT_blend(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -347,7 +355,8 @@ class TEXTURE_PT_stucci(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -382,7 +391,8 @@ class TEXTURE_PT_image(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, _context):
|
||||
# TODO: maybe expose the template_ID from the template image here.
|
||||
|
@ -392,13 +402,14 @@ class TEXTURE_PT_image(TextureTypePanel, Panel):
|
|||
|
||||
class TEXTURE_PT_image_settings(TextureTypePanel, Panel):
|
||||
bl_label = "Settings"
|
||||
bl_parent_id = 'TEXTURE_PT_image'
|
||||
bl_parent_id = "TEXTURE_PT_image"
|
||||
tex_type = 'IMAGE'
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -424,7 +435,7 @@ def texture_filter_common(tex, layout):
|
|||
class TEXTURE_PT_image_sampling(TextureTypePanel, Panel):
|
||||
bl_label = "Sampling"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_parent_id = 'TEXTURE_PT_image'
|
||||
bl_parent_id = "TEXTURE_PT_image"
|
||||
tex_type = 'IMAGE'
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
|
||||
|
||||
|
@ -454,7 +465,7 @@ class TEXTURE_PT_image_sampling(TextureTypePanel, Panel):
|
|||
class TEXTURE_PT_image_alpha(TextureTypePanel, Panel):
|
||||
bl_label = "Alpha"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_parent_id = 'TEXTURE_PT_image'
|
||||
bl_parent_id = "TEXTURE_PT_image"
|
||||
tex_type = 'IMAGE'
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
|
||||
|
||||
|
@ -477,7 +488,7 @@ class TEXTURE_PT_image_alpha(TextureTypePanel, Panel):
|
|||
class TEXTURE_PT_image_mapping(TextureTypePanel, Panel):
|
||||
bl_label = "Mapping"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_parent_id = 'TEXTURE_PT_image'
|
||||
bl_parent_id = "TEXTURE_PT_image"
|
||||
tex_type = 'IMAGE'
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
|
||||
|
||||
|
@ -529,7 +540,7 @@ class TEXTURE_PT_image_mapping(TextureTypePanel, Panel):
|
|||
class TEXTURE_PT_image_mapping_crop(TextureTypePanel, Panel):
|
||||
bl_label = "Crop"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_parent_id = 'TEXTURE_PT_image_mapping'
|
||||
bl_parent_id = "TEXTURE_PT_image_mapping"
|
||||
tex_type = 'IMAGE'
|
||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
|
||||
|
||||
|
@ -557,7 +568,8 @@ class TEXTURE_PT_musgrave(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -606,7 +618,8 @@ class TEXTURE_PT_voronoi(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -643,7 +656,8 @@ class TEXTURE_PT_voronoi_feature_weights(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -668,7 +682,8 @@ class TEXTURE_PT_distortednoise(TextureTypePanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -697,7 +712,8 @@ class TextureSlotPanel(TextureButtonsPanel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -713,7 +729,8 @@ class TEXTURE_PT_mapping(TextureSlotPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -785,7 +802,8 @@ class TEXTURE_PT_influence(TextureSlotPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -871,7 +889,8 @@ class TEXTURE_PT_colors(TextureButtonsPanel, TextureColorsPoll, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
@ -899,12 +918,13 @@ class TEXTURE_PT_colors(TextureButtonsPanel, TextureColorsPoll, Panel):
|
|||
class TEXTURE_PT_colors_ramp(TextureButtonsPanel, TextureColorsPoll, Panel):
|
||||
bl_label = "Color Ramp"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_parent_id = 'TEXTURE_PT_colors'
|
||||
bl_parent_id = "TEXTURE_PT_colors"
|
||||
COMPAT_ENGINES = {
|
||||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw_header(self, context):
|
||||
tex = context.texture
|
||||
|
@ -929,7 +949,8 @@ class TEXTURE_PT_custom_props(TextureButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "texture"
|
||||
_property_type = Texture
|
||||
|
||||
|
|
|
@ -34,7 +34,8 @@ class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
|
|
@ -27,7 +27,8 @@ class WORLD_PT_context_world(WorldButtonsPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -75,7 +76,8 @@ class WORLD_PT_custom_props(WorldButtonsPanel, PropertyPanel, Panel):
|
|||
'BLENDER_RENDER',
|
||||
'BLENDER_EEVEE',
|
||||
'BLENDER_EEVEE_NEXT',
|
||||
'BLENDER_WORKBENCH'}
|
||||
'BLENDER_WORKBENCH',
|
||||
}
|
||||
_context_path = "world"
|
||||
_property_type = bpy.types.World
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class CLIP_PT_marker_display(Panel):
|
|||
bl_space_type = 'CLIP_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Marker Display"
|
||||
bl_parent_id = 'CLIP_PT_display'
|
||||
bl_parent_id = "CLIP_PT_display"
|
||||
bl_ui_units_x = 13
|
||||
|
||||
def draw(self, context):
|
||||
|
@ -77,7 +77,7 @@ class CLIP_PT_clip_display(Panel):
|
|||
bl_space_type = 'CLIP_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Clip Display"
|
||||
bl_parent_id = 'CLIP_PT_display'
|
||||
bl_parent_id = "CLIP_PT_display"
|
||||
bl_ui_units_x = 13
|
||||
|
||||
def draw(self, context):
|
||||
|
@ -849,7 +849,7 @@ class CLIP_PT_track_settings_extras(CLIP_PT_tracking_panel, Panel):
|
|||
bl_region_type = 'UI'
|
||||
bl_category = "Track"
|
||||
bl_label = "Tracking Settings Extras"
|
||||
bl_parent_id = 'CLIP_PT_track_settings'
|
||||
bl_parent_id = "CLIP_PT_track_settings"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
@ -915,7 +915,7 @@ class CLIP_PT_tracking_lens(Panel):
|
|||
bl_category = "Track"
|
||||
bl_label = "Lens"
|
||||
bl_translation_context = i18n_contexts.id_camera
|
||||
bl_parent_id = 'CLIP_PT_tracking_camera'
|
||||
bl_parent_id = "CLIP_PT_tracking_camera"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -846,31 +846,31 @@ class DOPESHEET_PT_gpencil_mode(LayersDopeSheetPanel, Panel):
|
|||
|
||||
class DOPESHEET_PT_gpencil_layer_masks(LayersDopeSheetPanel, GreasePencilLayerMasksPanel, Panel):
|
||||
bl_label = "Masks"
|
||||
bl_parent_id = 'DOPESHEET_PT_gpencil_mode'
|
||||
bl_parent_id = "DOPESHEET_PT_gpencil_mode"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DOPESHEET_PT_gpencil_layer_transform(LayersDopeSheetPanel, GreasePencilLayerTransformPanel, Panel):
|
||||
bl_label = "Transform"
|
||||
bl_parent_id = 'DOPESHEET_PT_gpencil_mode'
|
||||
bl_parent_id = "DOPESHEET_PT_gpencil_mode"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DOPESHEET_PT_gpencil_layer_adjustments(LayersDopeSheetPanel, GreasePencilLayerAdjustmentsPanel, Panel):
|
||||
bl_label = "Adjustments"
|
||||
bl_parent_id = 'DOPESHEET_PT_gpencil_mode'
|
||||
bl_parent_id = "DOPESHEET_PT_gpencil_mode"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DOPESHEET_PT_gpencil_layer_relations(LayersDopeSheetPanel, GreasePencilLayerRelationsPanel, Panel):
|
||||
bl_label = "Relations"
|
||||
bl_parent_id = 'DOPESHEET_PT_gpencil_mode'
|
||||
bl_parent_id = "DOPESHEET_PT_gpencil_mode"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
class DOPESHEET_PT_gpencil_layer_display(LayersDopeSheetPanel, GreasePencilLayerDisplayPanel, Panel):
|
||||
bl_label = "Display"
|
||||
bl_parent_id = 'DOPESHEET_PT_gpencil_mode'
|
||||
bl_parent_id = "DOPESHEET_PT_gpencil_mode"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
||||
|
|
|
@ -1528,7 +1528,7 @@ class IMAGE_PT_overlay_guides(Panel):
|
|||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Guides"
|
||||
bl_parent_id = 'IMAGE_PT_overlay'
|
||||
bl_parent_id = "IMAGE_PT_overlay"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1569,7 +1569,7 @@ class IMAGE_PT_overlay_uv_edit(Panel):
|
|||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "UV Editing"
|
||||
bl_parent_id = 'IMAGE_PT_overlay'
|
||||
bl_parent_id = "IMAGE_PT_overlay"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1597,7 +1597,7 @@ class IMAGE_PT_overlay_uv_edit_geometry(Panel):
|
|||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Geometry"
|
||||
bl_parent_id = 'IMAGE_PT_overlay'
|
||||
bl_parent_id = "IMAGE_PT_overlay"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1629,7 +1629,7 @@ class IMAGE_PT_overlay_texture_paint(Panel):
|
|||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Geometry"
|
||||
bl_parent_id = 'IMAGE_PT_overlay'
|
||||
bl_parent_id = "IMAGE_PT_overlay"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1651,7 +1651,7 @@ class IMAGE_PT_overlay_image(Panel):
|
|||
bl_space_type = 'IMAGE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Image"
|
||||
bl_parent_id = 'IMAGE_PT_overlay'
|
||||
bl_parent_id = "IMAGE_PT_overlay"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
|
|
@ -64,8 +64,9 @@ class NODE_HT_header(Header):
|
|||
|
||||
layout.separator_spacer()
|
||||
|
||||
types_that_support_material = {'MESH', 'CURVE', 'SURFACE', 'FONT', 'META',
|
||||
'GPENCIL', 'VOLUME', 'CURVES', 'POINTCLOUD'}
|
||||
types_that_support_material = {
|
||||
'MESH', 'CURVE', 'SURFACE', 'FONT', 'META', 'GPENCIL', 'VOLUME', 'CURVES', 'POINTCLOUD',
|
||||
}
|
||||
# disable material slot buttons when pinned, cannot find correct slot within id_from (#36589)
|
||||
# disable also when the selected object does not support materials
|
||||
has_material_slots = not snode.pin and ob_type in types_that_support_material
|
||||
|
@ -324,15 +325,15 @@ class NODE_MT_node(Menu):
|
|||
layout.operator("transform.resize")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("node.clipboard_copy", text="Copy", icon="COPYDOWN")
|
||||
layout.operator("node.clipboard_copy", text="Copy", icon='COPYDOWN')
|
||||
layout.operator_context = 'EXEC_DEFAULT'
|
||||
layout.operator("node.clipboard_paste", text="Paste", icon="PASTEDOWN")
|
||||
layout.operator("node.clipboard_paste", text="Paste", icon='PASTEDOWN')
|
||||
layout.operator_context = 'INVOKE_REGION_WIN'
|
||||
layout.operator("node.duplicate_move", icon="DUPLICATE")
|
||||
layout.operator("node.duplicate_move", icon='DUPLICATE')
|
||||
layout.operator("node.duplicate_move_linked")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("node.delete", icon="X")
|
||||
layout.operator("node.delete", icon='X')
|
||||
layout.operator("node.delete_reconnect")
|
||||
|
||||
layout.separator()
|
||||
|
@ -352,7 +353,7 @@ class NODE_MT_node(Menu):
|
|||
layout.operator("node.links_mute")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("node.group_make", icon="NODETREE")
|
||||
layout.operator("node.group_make", icon='NODETREE')
|
||||
layout.operator("node.group_insert", text="Insert Into Group")
|
||||
layout.operator("node.group_edit").exit = False
|
||||
layout.operator("node.group_ungroup")
|
||||
|
@ -362,7 +363,7 @@ class NODE_MT_node(Menu):
|
|||
|
||||
if is_compositor:
|
||||
layout.separator()
|
||||
layout.operator("node.read_viewlayers", icon="RENDERLAYERS")
|
||||
layout.operator("node.read_viewlayers", icon='RENDERLAYERS')
|
||||
|
||||
|
||||
class NODE_MT_view_pie(Menu):
|
||||
|
@ -437,8 +438,10 @@ class NODE_PT_geometry_node_tool_object_types(Panel):
|
|||
snode = context.space_data
|
||||
group = snode.node_tree
|
||||
|
||||
types = [("is_type_mesh", "Mesh", 'MESH_DATA'),
|
||||
("is_type_curve", "Curves", 'CURVES_DATA')]
|
||||
types = [
|
||||
("is_type_mesh", "Mesh", 'MESH_DATA'),
|
||||
("is_type_curve", "Curves", 'CURVES_DATA'),
|
||||
]
|
||||
if context.preferences.experimental.use_new_point_cloud_type:
|
||||
types.append(("is_type_point_cloud", "Point Cloud", 'POINTCLOUD_DATA'))
|
||||
|
||||
|
@ -465,8 +468,10 @@ class NODE_PT_geometry_node_tool_mode(Panel):
|
|||
snode = context.space_data
|
||||
group = snode.node_tree
|
||||
|
||||
modes = [("is_mode_edit", "Edit Mode", 'EDITMODE_HLT'),
|
||||
("is_mode_sculpt", "Sculpt Mode", 'SCULPTMODE_HLT')]
|
||||
modes = (
|
||||
("is_mode_edit", "Edit Mode", 'EDITMODE_HLT'),
|
||||
("is_mode_sculpt", "Sculpt Mode", 'SCULPTMODE_HLT'),
|
||||
)
|
||||
|
||||
col = layout.column()
|
||||
col.active = group.is_tool
|
||||
|
@ -661,7 +666,7 @@ class NODE_PT_active_node_color(Panel):
|
|||
bl_category = "Node"
|
||||
bl_label = "Color"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_parent_id = 'NODE_PT_active_node_generic'
|
||||
bl_parent_id = "NODE_PT_active_node_generic"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -1175,7 +1180,7 @@ def node_panel(cls):
|
|||
node_cls.bl_region_type = 'UI'
|
||||
node_cls.bl_category = "Options"
|
||||
if hasattr(node_cls, "bl_parent_id"):
|
||||
node_cls.bl_parent_id = 'NODE_' + node_cls.bl_parent_id
|
||||
node_cls.bl_parent_id = "NODE_" + node_cls.bl_parent_id
|
||||
|
||||
return node_cls
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ class OUTLINER_MT_context_menu(Menu):
|
|||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("OUTLINER_MT_liboverride", icon="LIBRARY_DATA_OVERRIDE")
|
||||
layout.menu("OUTLINER_MT_liboverride", icon='LIBRARY_DATA_OVERRIDE')
|
||||
|
||||
layout.separator()
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ class SEQUENCER_PT_overlay(Panel):
|
|||
class SEQUENCER_PT_preview_overlay(Panel):
|
||||
bl_space_type = 'SEQUENCE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'SEQUENCER_PT_overlay'
|
||||
bl_parent_id = "SEQUENCER_PT_overlay"
|
||||
bl_label = "Preview Overlays"
|
||||
|
||||
@classmethod
|
||||
|
@ -292,7 +292,7 @@ class SEQUENCER_PT_preview_overlay(Panel):
|
|||
class SEQUENCER_PT_sequencer_overlay(Panel):
|
||||
bl_space_type = 'SEQUENCE_EDITOR'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'SEQUENCER_PT_overlay'
|
||||
bl_parent_id = "SEQUENCER_PT_overlay"
|
||||
bl_label = "Sequencer Overlays"
|
||||
|
||||
@classmethod
|
||||
|
@ -941,9 +941,9 @@ class SEQUENCER_MT_strip_retiming(Menu):
|
|||
layout.operator("sequencer.retiming_reset")
|
||||
layout.separator()
|
||||
|
||||
icon = "CHECKBOX_DEHLT"
|
||||
icon = 'CHECKBOX_DEHLT'
|
||||
if context.active_sequence_strip.show_retiming_keys:
|
||||
icon = "CHECKBOX_HLT"
|
||||
icon = 'CHECKBOX_HLT'
|
||||
|
||||
layout.operator("sequencer.retiming_segment_speed_set")
|
||||
layout.operator("sequencer.retiming_show", icon=icon)
|
||||
|
@ -964,7 +964,7 @@ class SEQUENCER_MT_strip_retiming(Menu):
|
|||
layout.separator()
|
||||
|
||||
layout.operator("sequencer.retiming_segment_speed_set")
|
||||
layout.operator("sequencer.retiming_show", icon="CHECKBOX_HLT")
|
||||
layout.operator("sequencer.retiming_show", icon='CHECKBOX_HLT')
|
||||
|
||||
def draw(self, context):
|
||||
ed = context.scene.sequence_editor
|
||||
|
|
|
@ -1024,8 +1024,9 @@ class VIEW3D_MT_editor_menus(Menu):
|
|||
obj = context.active_object
|
||||
mode_string = context.mode
|
||||
edit_object = context.edit_object
|
||||
gp_edit = obj and obj.mode in {'EDIT_GPENCIL', 'PAINT_GPENCIL', 'SCULPT_GPENCIL',
|
||||
'WEIGHT_GPENCIL', 'VERTEX_GPENCIL'}
|
||||
gp_edit = obj and obj.mode in {
|
||||
'EDIT_GPENCIL', 'PAINT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL',
|
||||
}
|
||||
tool_settings = context.tool_settings
|
||||
|
||||
layout.menu("VIEW3D_MT_view")
|
||||
|
@ -1155,8 +1156,9 @@ class VIEW3D_MT_transform_base:
|
|||
layout.operator("transform.bend", text="Bend")
|
||||
layout.operator("transform.push_pull", text="Push/Pull")
|
||||
|
||||
if context.mode in {'EDIT_MESH', 'EDIT_ARMATURE', 'EDIT_SURFACE', 'EDIT_CURVE',
|
||||
'EDIT_LATTICE', 'EDIT_METABALL'}:
|
||||
if context.mode in {
|
||||
'EDIT_MESH', 'EDIT_ARMATURE', 'EDIT_SURFACE', 'EDIT_CURVE', 'EDIT_LATTICE', 'EDIT_METABALL',
|
||||
}:
|
||||
layout.operator("transform.vertex_warp", text="Warp")
|
||||
layout.operator_context = 'EXEC_REGION_WIN'
|
||||
layout.operator("transform.vertex_random", text="Randomize").offset = 0.1
|
||||
|
@ -2633,7 +2635,7 @@ class VIEW3D_MT_object(Menu):
|
|||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("VIEW3D_MT_object_liboverride", icon="LIBRARY_DATA_OVERRIDE")
|
||||
layout.menu("VIEW3D_MT_object_liboverride", icon='LIBRARY_DATA_OVERRIDE')
|
||||
layout.menu("VIEW3D_MT_object_relations")
|
||||
layout.menu("VIEW3D_MT_object_parent")
|
||||
layout.menu("VIEW3D_MT_object_constraints")
|
||||
|
@ -6321,7 +6323,7 @@ class VIEW3D_PT_shading_lighting(Panel):
|
|||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Lighting"
|
||||
bl_parent_id = 'VIEW3D_PT_shading'
|
||||
bl_parent_id = "VIEW3D_PT_shading"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -6443,7 +6445,7 @@ class VIEW3D_PT_shading_color(Panel):
|
|||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Wire Color"
|
||||
bl_parent_id = 'VIEW3D_PT_shading'
|
||||
bl_parent_id = "VIEW3D_PT_shading"
|
||||
|
||||
def _draw_color_type(self, context):
|
||||
layout = self.layout
|
||||
|
@ -6482,7 +6484,7 @@ class VIEW3D_PT_shading_options(Panel):
|
|||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Options"
|
||||
bl_parent_id = 'VIEW3D_PT_shading'
|
||||
bl_parent_id = "VIEW3D_PT_shading"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -6606,7 +6608,7 @@ class VIEW3D_PT_shading_render_pass(Panel):
|
|||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Render Pass"
|
||||
bl_parent_id = 'VIEW3D_PT_shading'
|
||||
bl_parent_id = "VIEW3D_PT_shading"
|
||||
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
||||
|
||||
@classmethod
|
||||
|
@ -6627,7 +6629,7 @@ class VIEW3D_PT_shading_compositor(Panel):
|
|||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_label = "Compositor"
|
||||
bl_parent_id = 'VIEW3D_PT_shading'
|
||||
bl_parent_id = "VIEW3D_PT_shading"
|
||||
bl_order = 10
|
||||
|
||||
@classmethod
|
||||
|
@ -6710,7 +6712,7 @@ class VIEW3D_PT_overlay(Panel):
|
|||
class VIEW3D_PT_overlay_guides(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay'
|
||||
bl_parent_id = "VIEW3D_PT_overlay"
|
||||
bl_label = "Guides"
|
||||
|
||||
def draw(self, context):
|
||||
|
@ -6777,7 +6779,7 @@ class VIEW3D_PT_overlay_guides(Panel):
|
|||
class VIEW3D_PT_overlay_object(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay'
|
||||
bl_parent_id = "VIEW3D_PT_overlay"
|
||||
bl_label = "Objects"
|
||||
|
||||
def draw(self, context):
|
||||
|
@ -6817,7 +6819,7 @@ class VIEW3D_PT_overlay_object(Panel):
|
|||
class VIEW3D_PT_overlay_geometry(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay'
|
||||
bl_parent_id = "VIEW3D_PT_overlay"
|
||||
bl_label = "Geometry"
|
||||
|
||||
def draw(self, context):
|
||||
|
@ -6869,7 +6871,7 @@ class VIEW3D_PT_overlay_geometry(Panel):
|
|||
class VIEW3D_PT_overlay_motion_tracking(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay'
|
||||
bl_parent_id = "VIEW3D_PT_overlay"
|
||||
bl_label = "Motion Tracking"
|
||||
|
||||
def draw_header(self, context):
|
||||
|
@ -6956,7 +6958,7 @@ class VIEW3D_PT_overlay_edit_mesh(Panel):
|
|||
class VIEW3D_PT_overlay_edit_mesh_shading(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh'
|
||||
bl_parent_id = "VIEW3D_PT_overlay_edit_mesh"
|
||||
bl_label = "Shading"
|
||||
|
||||
@classmethod
|
||||
|
@ -7033,7 +7035,7 @@ class VIEW3D_PT_overlay_edit_mesh_shading(Panel):
|
|||
class VIEW3D_PT_overlay_edit_mesh_measurement(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh'
|
||||
bl_parent_id = "VIEW3D_PT_overlay_edit_mesh"
|
||||
bl_label = "Measurement"
|
||||
|
||||
@classmethod
|
||||
|
@ -7064,7 +7066,7 @@ class VIEW3D_PT_overlay_edit_mesh_measurement(Panel):
|
|||
class VIEW3D_PT_overlay_edit_mesh_normals(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh'
|
||||
bl_parent_id = "VIEW3D_PT_overlay_edit_mesh"
|
||||
bl_label = "Normals"
|
||||
|
||||
@classmethod
|
||||
|
@ -7099,7 +7101,7 @@ class VIEW3D_PT_overlay_edit_mesh_normals(Panel):
|
|||
class VIEW3D_PT_overlay_edit_mesh_freestyle(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh'
|
||||
bl_parent_id = "VIEW3D_PT_overlay_edit_mesh"
|
||||
bl_label = "Freestyle"
|
||||
|
||||
@classmethod
|
||||
|
@ -7673,7 +7675,7 @@ class VIEW3D_PT_annotation_onion(AnnotationOnionSkin, Panel):
|
|||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
bl_category = "View"
|
||||
bl_parent_id = 'VIEW3D_PT_grease_pencil'
|
||||
bl_parent_id = "VIEW3D_PT_grease_pencil"
|
||||
|
||||
# NOTE: this is just a wrapper around the generic GP Panel
|
||||
|
||||
|
@ -8439,7 +8441,7 @@ class VIEW3D_PT_curves_sculpt_grow_shrink_scaling(Panel):
|
|||
class VIEW3D_PT_viewport_debug(Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'HEADER'
|
||||
bl_parent_id = 'VIEW3D_PT_overlay'
|
||||
bl_parent_id = "VIEW3D_PT_overlay"
|
||||
bl_label = "Viewport Debug"
|
||||
|
||||
@classmethod
|
||||
|
@ -8460,7 +8462,7 @@ class VIEW3D_AST_sculpt_brushes(bpy.types.AssetShelf):
|
|||
# "Asset Shelf" and the "Extended Asset Browser" experimental features are
|
||||
# enabled.
|
||||
|
||||
bl_space_type = "VIEW_3D"
|
||||
bl_space_type = 'VIEW_3D'
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
|
|
@ -1650,7 +1650,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_settings(Panel, View3DPanel, GreasePen
|
|||
class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_label = "Advanced"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_settings"
|
||||
bl_category = "Tool"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
bl_ui_units_x = 13
|
||||
|
@ -1730,7 +1730,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel):
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_settings"
|
||||
bl_label = "Stroke"
|
||||
bl_category = "Tool"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
@ -1749,7 +1749,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel):
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(Panel, View3DPanel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_stroke'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_stroke"
|
||||
bl_label = "Stabilize Stroke"
|
||||
bl_category = "Tool"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
@ -1783,7 +1783,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(Panel, View3DPanel):
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_brush_post_processing(View3DPanel, Panel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_stroke'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_stroke"
|
||||
bl_label = "Post-Processing"
|
||||
bl_category = "Tool"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
@ -1839,7 +1839,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_post_processing(View3DPanel, Panel):
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_brush_random(View3DPanel, Panel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_stroke'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_stroke"
|
||||
bl_label = "Randomize"
|
||||
bl_category = "Tool"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
@ -1956,7 +1956,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_paint_falloff(GreasePencilBrushFalloff
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_brush_gap_closure(View3DPanel, Panel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_advanced'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_advanced"
|
||||
bl_label = "Gap Closure"
|
||||
bl_category = "Tool"
|
||||
|
||||
|
@ -2064,7 +2064,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_sculpt_falloff(GreasePencilBrushFallof
|
|||
class VIEW3D_PT_tools_grease_pencil_sculpt_brush_advanced(GreasePencilSculptAdvancedPanel, View3DPanel, Panel):
|
||||
bl_context = ".greasepencil_sculpt"
|
||||
bl_label = "Advanced"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_sculpt_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_sculpt_settings"
|
||||
bl_category = "Tool"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
@ -2162,7 +2162,7 @@ class VIEW3D_PT_tools_grease_pencil_weight_paint_settings(Panel, View3DPanel, Gr
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_brush_weight_falloff(GreasePencilBrushFalloff, Panel, View3DPaintPanel):
|
||||
bl_context = ".greasepencil_weight"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_weight_paint_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_weight_paint_settings"
|
||||
bl_label = "Falloff"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
|
@ -2305,7 +2305,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_vertex_palette(View3DPanel, Panel):
|
|||
bl_context = ".greasepencil_vertex"
|
||||
bl_label = "Palette"
|
||||
bl_category = "Tool"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_vertex_color'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_vertex_color"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -2404,7 +2404,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_mix_palette(View3DPanel, Panel):
|
|||
bl_context = ".greasepencil_paint"
|
||||
bl_label = "Palette"
|
||||
bl_category = "Tool"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_mixcolor'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_mixcolor"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
|
@ -2449,7 +2449,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_mix_palette(View3DPanel, Panel):
|
|||
# Grease Pencil Brush Appearance (one for each mode)
|
||||
class VIEW3D_PT_tools_grease_pencil_paint_appearance(GreasePencilDisplayPanel, Panel, View3DPanel):
|
||||
bl_context = ".greasepencil_paint"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_brush_settings"
|
||||
bl_label = "Cursor"
|
||||
bl_category = "Tool"
|
||||
bl_ui_units_x = 15
|
||||
|
@ -2457,21 +2457,21 @@ class VIEW3D_PT_tools_grease_pencil_paint_appearance(GreasePencilDisplayPanel, P
|
|||
|
||||
class VIEW3D_PT_tools_grease_pencil_sculpt_appearance(GreasePencilDisplayPanel, Panel, View3DPanel):
|
||||
bl_context = ".greasepencil_sculpt"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_sculpt_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_sculpt_settings"
|
||||
bl_label = "Cursor"
|
||||
bl_category = "Tool"
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_grease_pencil_weight_appearance(GreasePencilDisplayPanel, Panel, View3DPanel):
|
||||
bl_context = ".greasepencil_weight"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_weight_paint_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_weight_paint_settings"
|
||||
bl_category = "Tool"
|
||||
bl_label = "Cursor"
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_grease_pencil_vertex_appearance(GreasePencilDisplayPanel, Panel, View3DPanel):
|
||||
bl_context = ".greasepencil_vertex"
|
||||
bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_vertex_paint_settings'
|
||||
bl_parent_id = "VIEW3D_PT_tools_grease_pencil_vertex_paint_settings"
|
||||
bl_category = "Tool"
|
||||
bl_label = "Cursor"
|
||||
|
||||
|
|
|
@ -501,9 +501,11 @@ class WholeCharacterMixin:
|
|||
# custom properties
|
||||
def doCustomProps(self, ks, bone):
|
||||
|
||||
prop_type_compat = {bpy.types.BoolProperty,
|
||||
bpy.types.IntProperty,
|
||||
bpy.types.FloatProperty}
|
||||
prop_type_compat = {
|
||||
bpy.types.BoolProperty,
|
||||
bpy.types.IntProperty,
|
||||
bpy.types.FloatProperty,
|
||||
}
|
||||
|
||||
# go over all custom properties for bone
|
||||
for prop in bone.keys():
|
||||
|
|
Loading…
Reference in New Issue