panel features

add compensate_curvature and ignore_orientation to panel
This commit is contained in:
themancalledjakob 2024-08-08 11:30:05 +02:00
parent 4bc0ee69f1
commit 0c0d8d0a7f

View file

@ -183,6 +183,16 @@ class FONT3D_text_properties(bpy.types.PropertyGroup):
default=1.0, default=1.0,
subtype='NONE', subtype='NONE',
) )
compensate_curvature: bpy.props.BoolProperty(
update=update_callback,
name="Compensate Curvature",
default=True,
)
ignore_orientation: bpy.props.BoolProperty(
update=update_callback,
name="Ignore Orientation",
default=False,
)
distribution_type: bpy.props.StringProperty() distribution_type: bpy.props.StringProperty()
glyphs: bpy.props.CollectionProperty(type=FONT3D_glyph_properties) glyphs: bpy.props.CollectionProperty(type=FONT3D_glyph_properties)
@ -453,6 +463,8 @@ class FONT3D_PT_TextPropertiesPanel(bpy.types.Panel):
layout.row().prop(props, "text") layout.row().prop(props, "text")
layout.row().prop(props, "letter_spacing") layout.row().prop(props, "letter_spacing")
layout.row().prop(props, "font_size") layout.row().prop(props, "font_size")
layout.row().prop(props, "compensate_curvature")
layout.row().prop(props, "ignore_orientation")
layout.column().prop(props, "translation") layout.column().prop(props, "translation")
layout.column().prop(props, "orientation") layout.column().prop(props, "orientation")
@ -831,6 +843,8 @@ class FONT3D_PT_RightPropertiesPanel(bpy.types.Panel):
layout.row().prop(available_text, "text") layout.row().prop(available_text, "text")
layout.row().prop(available_text, "letter_spacing") layout.row().prop(available_text, "letter_spacing")
layout.row().prop(available_text, "font_size") layout.row().prop(available_text, "font_size")
layout.row().prop(available_text, "compensate_curvature")
layout.row().prop(available_text, "ignore_orientation")
layout.column().prop(available_text, "translation") layout.column().prop(available_text, "translation")
layout.column().prop(available_text, "orientation") layout.column().prop(available_text, "orientation")