Cleanup: single quotes for Python enums, spelling
This commit is contained in:
@@ -163,7 +163,7 @@ class NODE_HT_header(Header):
|
|||||||
row.template_ID(snode, "node_tree", new="node.new_geometry_node_group_assign")
|
row.template_ID(snode, "node_tree", new="node.new_geometry_node_group_assign")
|
||||||
elif ob:
|
elif ob:
|
||||||
active_modifier = ob.modifiers.active
|
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:
|
if active_modifier.node_group:
|
||||||
row.template_ID(active_modifier, "node_group", new="node.copy_geometry_node_group_assign")
|
row.template_ID(active_modifier, "node_group", new="node.copy_geometry_node_group_assign")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -1282,8 +1282,8 @@ class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel):
|
|||||||
row = col.row(align=True)
|
row = col.row(align=True)
|
||||||
row.use_property_decorate = False
|
row.use_property_decorate = False
|
||||||
row.template_ID(strip, "font", open="font.open", unlink="font.unlink")
|
row.template_ID(strip, "font", open="font.open", unlink="font.unlink")
|
||||||
row.prop(strip, "use_bold", text="", icon="BOLD")
|
row.prop(strip, "use_bold", text="", icon='BOLD')
|
||||||
row.prop(strip, "use_italic", text="", icon="ITALIC")
|
row.prop(strip, "use_italic", text="", icon='ITALIC')
|
||||||
|
|
||||||
col.prop(strip, "font_size")
|
col.prop(strip, "font_size")
|
||||||
col.prop(strip, "color")
|
col.prop(strip, "color")
|
||||||
@@ -2016,7 +2016,7 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel):
|
|||||||
|
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
prop = col.prop(st, "use_proxies")
|
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.enabled = False
|
||||||
|
|
||||||
col = layout.column()
|
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
|
used_id = pinned_id if pinned_id else context.active_object
|
||||||
|
|
||||||
layout.prop(space, "object_eval_state", text="")
|
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="")
|
layout.prop(space, "geometry_component_type", text="")
|
||||||
if space.geometry_component_type != 'INSTANCES':
|
if space.geometry_component_type != 'INSTANCES':
|
||||||
layout.prop(space, "attribute_domain", text="")
|
layout.prop(space, "attribute_domain", text="")
|
||||||
|
|
||||||
if used_id:
|
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)
|
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).
|
* 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
|
* 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>
|
template<typename T, typename Func>
|
||||||
inline void devirtualize_varray(const VArray<T> &varray, const Func &func, bool enable = true)
|
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;
|
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) {
|
if (seq->strip->proxy == NULL) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user