Cleanup: use static sets for contains checks, remove f-string use
This commit is contained in:
@@ -593,7 +593,7 @@ class BONE_PT_custom_props(BoneButtonsPanel, rna_prop_ui.PropertyPanel, Panel):
|
||||
return "active_pose_bone"
|
||||
|
||||
bone_path = obj.pose.bones[context.bone.name].path_from_id()
|
||||
return f"object.{bone_path}"
|
||||
return "object." + bone_path
|
||||
|
||||
|
||||
classes = (
|
||||
|
||||
@@ -1086,7 +1086,7 @@ class NODE_PT_repeat_zone_items(Panel):
|
||||
if snode is None:
|
||||
return False
|
||||
node = context.active_node
|
||||
if node is None or node.bl_idname not in (cls.input_node_type, cls.output_node_type):
|
||||
if node is None or node.bl_idname not in {cls.input_node_type, cls.output_node_type}:
|
||||
return False
|
||||
if cls.get_output_node(context) is None:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user