Cleanup: single quotes for Python enums, spelling
This commit is contained in:
parent
3117de3a73
commit
bb78f38bd1
|
@ -163,7 +163,7 @@ class NODE_HT_header(Header):
|
|||
row.template_ID(snode, "node_tree", new="node.new_geometry_node_group_assign")
|
||||
elif ob:
|
||||
active_modifier = ob.modifiers.active
|
||||
if active_modifier and active_modifier.type == "NODES":
|
||||
if active_modifier and active_modifier.type == 'NODES':
|
||||
if active_modifier.node_group:
|
||||
row.template_ID(active_modifier, "node_group", new="node.copy_geometry_node_group_assign")
|
||||
else:
|
||||
|
|
|
@ -1282,8 +1282,8 @@ class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel):
|
|||
row = col.row(align=True)
|
||||
row.use_property_decorate = False
|
||||
row.template_ID(strip, "font", open="font.open", unlink="font.unlink")
|
||||
row.prop(strip, "use_bold", text="", icon="BOLD")
|
||||
row.prop(strip, "use_italic", text="", icon="ITALIC")
|
||||
row.prop(strip, "use_bold", text="", icon='BOLD')
|
||||
row.prop(strip, "use_italic", text="", icon='ITALIC')
|
||||
|
||||
col.prop(strip, "font_size")
|
||||
col.prop(strip, "color")
|
||||
|
@ -2016,7 +2016,7 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel):
|
|||
|
||||
col = layout.column()
|
||||
prop = col.prop(st, "use_proxies")
|
||||
if st.proxy_render_size in ('NONE', 'SCENE'):
|
||||
if st.proxy_render_size in {'NONE', 'SCENE'}:
|
||||
col.enabled = False
|
||||
|
||||
col = layout.column()
|
||||
|
|
|
@ -32,13 +32,13 @@ class SPREADSHEET_HT_header(bpy.types.Header):
|
|||
used_id = pinned_id if pinned_id else context.active_object
|
||||
|
||||
layout.prop(space, "object_eval_state", text="")
|
||||
if space.object_eval_state != "ORIGINAL":
|
||||
if space.object_eval_state != 'ORIGINAL':
|
||||
layout.prop(space, "geometry_component_type", text="")
|
||||
if space.geometry_component_type != 'INSTANCES':
|
||||
layout.prop(space, "attribute_domain", text="")
|
||||
|
||||
if used_id:
|
||||
layout.label(text=used_id.name, icon="OBJECT_DATA")
|
||||
layout.label(text=used_id.name, icon='OBJECT_DATA')
|
||||
|
||||
layout.operator("spreadsheet.toggle_pin", text="", icon='PINNED' if pinned_id else 'UNPINNED', emboss=False)
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ template<typename T> class VArrayForSingle final : public VArray<T> {
|
|||
* exponential number of function instantiations (increasing compile time and binary size).
|
||||
*
|
||||
* Generally, this function should only be used when the virtual method call overhead to get an
|
||||
* element from a virtual array is signifant.
|
||||
* element from a virtual array is significant.
|
||||
*/
|
||||
template<typename T, typename Func>
|
||||
inline void devirtualize_varray(const VArray<T> &varray, const Func &func, bool enable = true)
|
||||
|
|
|
@ -103,7 +103,7 @@ static eSpaceSeq_Proxy_RenderSize get_sequencer_render_size(Main *bmain)
|
|||
return render_size;
|
||||
}
|
||||
|
||||
static bool can_use_proxy(Sequence *seq, int psize)
|
||||
static bool can_use_proxy(const Sequence *seq, int psize)
|
||||
{
|
||||
if (seq->strip->proxy == NULL) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue