panel features
add compensate_curvature and ignore_orientation to panel
This commit is contained in:
parent
4bc0ee69f1
commit
0c0d8d0a7f
1 changed files with 14 additions and 0 deletions
14
__init__.py
14
__init__.py
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue