Skip to content

Commit

Permalink
Merge pull request #465 from HENDRIX-ZT2/develop
Browse files Browse the repository at this point in the history
Remove trailing dots for descriptions and UI items - closes #246
  • Loading branch information
HENDRIX-ZT2 committed Oct 4, 2021
2 parents 34514d3 + e94b199 commit 06b9a7f
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 46 deletions.
20 changes: 10 additions & 10 deletions io_scene_niftools/operators/common_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,31 @@ class CommonDevOperator:
"""Abstract base class for import and export user interface."""

error_level_map = (
("DEBUG", "Debug", "Show all messages (only useful for debugging).", 10),
("INFO", "Info", "Show some informative messages, warnings, and errors.", 20),
("WARNING", "Warning", "Only show warnings and errors.", 30),
("ERROR", "Error", "Only show errors.", 40),
("CRITICAL", "Critical", "Only show extremely critical errors.", 50),
("DEBUG", "Debug", "Show all messages (only useful for debugging)", 10),
("INFO", "Info", "Show some informative messages, warnings, and errors", 20),
("WARNING", "Warning", "Only show warnings and errors", 30),
("ERROR", "Error", "Only show errors", 40),
("CRITICAL", "Critical", "Only show extremely critical errors", 50),
)

# Level of verbosity on the console.
plugin_log_level: bpy.props.EnumProperty(
items=error_level_map,
name="Plugin Log Level",
description="Blender Nif Plugin log level of verbosity on the console.",
description="Blender Nif Plugin log level of verbosity on the console",
default="INFO")

# Level of verbosity on the console.
pyffi_log_level: bpy.props.EnumProperty(
items=error_level_map,
name="Pyffi Log Level",
description="Pyffi log level of verbosity on the console.",
description="Pyffi log level of verbosity on the console",
default="INFO")

# Name of file where Python profiler dumps the profile.
profile_path: bpy.props.StringProperty(
name="Profile Path",
description="File where Python profiler dumps the profile. Set to empty string to turn off profiling.",
description="File where Python profiler dumps the profile. Set to empty string to turn off profiling",
maxlen=1024,
default="",
subtype="FILE_PATH",
Expand All @@ -76,7 +76,7 @@ class CommonDevOperator:
# Used for checking equality between floats.
epsilon: bpy.props.FloatProperty(
name="Epsilon",
description="Used for checking equality between floats.",
description="Used for checking equality between floats",
default=0.0005,
min=0.0, max=1.0, precision=5,
options={'HIDDEN'})
Expand All @@ -93,7 +93,7 @@ def set_import_scale(self, scale):
# Number of nif units per blender unit.
scale_correction: bpy.props.FloatProperty(
name="Scale Correction",
description="Changes size of mesh to fit onto Blender's default grid.",
description="Changes size of mesh to fit onto Blender's default grid",
get=get_import_scale,
set=set_import_scale,
default=0.1,
Expand Down
2 changes: 1 addition & 1 deletion io_scene_niftools/operators/kf_export_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class KfExportOperator(Operator, ExportHelper, CommonDevOperator, CommonScale, C
# Use BSAnimationNode (for Morrowind).
bs_animation_node: bpy.props.BoolProperty(
name="Use NiBSAnimationNode",
description="Use NiBSAnimationNode (for Morrowind).",
description="Use NiBSAnimationNode (for Morrowind)",
default=False)

def execute(self, context):
Expand Down
24 changes: 12 additions & 12 deletions io_scene_niftools/operators/nif_export_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,68 +58,68 @@ class NifExportOperator(Operator, ExportHelper, CommonDevOperator, CommonNif, Co
# How to export animation.
animation: bpy.props.EnumProperty(
items=[
('ALL_NIF', "All (nif)", "Geometry and animation to a single nif."),
('GEOM_NIF', "Geometry only (nif)", "Only geometry to a single nif."),
('ALL_NIF', "All (nif)", "Geometry and animation to a single nif"),
('GEOM_NIF', "Geometry only (nif)", "Only geometry to a single nif"),
],
name="Animation export",
description="Selects which parts of the blender file to export.",
description="Selects which parts of the blender file to export",
default='ALL_NIF')

# Use BSAnimationNode (for Morrowind).
bs_animation_node: bpy.props.BoolProperty(
name="Use NiBSAnimationNode",
description="Use NiBSAnimationNode (for Morrowind).",
description="Use NiBSAnimationNode (for Morrowind)",
default=False)

# Stripify geometries. Deprecate? (Strips are slower than triangle shapes.)
stripify: bpy.props.BoolProperty(
name="Stripify Geometries",
description="Stripify geometries.",
description="Stripify geometries",
default=False,
options={'HIDDEN'})

# Stitch strips. Deprecate? (Strips are slower than triangle shapes.)
stitch_strips: bpy.props.BoolProperty(
name="Stitch Strips",
description="Stitch strips.",
description="Stitch strips",
default=True,
options={'HIDDEN'})

# Flatten skin.
flatten_skin: bpy.props.BoolProperty(
name="Flatten Skin",
description="Flatten skin.",
description="Flatten skin",
default=False)

# Export skin partition.
skin_partition: bpy.props.BoolProperty(
name="Skin Partition",
description="Export skin partition.",
description="Export skin partition",
default=True)

# Pad and sort bones.
pad_bones: bpy.props.BoolProperty(
name="Pad & Sort Bones",
description="Pad and sort bones.",
description="Pad and sort bones",
default=False)

# Maximum number of bones per skin partition.
max_bones_per_partition: bpy.props.IntProperty(
name="Max Partition Bones",
description="Maximum number of bones per skin partition.",
description="Maximum number of bones per skin partition",
default=18, min=4, max=63)

# Maximum number of bones per vertex in skin partitions.
max_bones_per_vertex: bpy.props.IntProperty(
name="Max Vertex Bones",
description="Maximum number of bones per vertex in skin partitions.",
description="Maximum number of bones per vertex in skin partitions",
default=4, min=1,
)

# Pad and sort bones.
force_dds: bpy.props.BoolProperty(
name="Force DDS",
description="Force texture .dds extension.",
description="Force texture .dds extension",
default=True)

# Whether or not to remove duplicate materials
Expand Down
24 changes: 12 additions & 12 deletions io_scene_niftools/operators/nif_import_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,58 +58,58 @@ class NifImportOperator(Operator, ImportHelper, CommonScale, CommonDevOperator,
# Whether or not to import the header information into the scene
override_scene_info: bpy.props.BoolProperty(
name="Override Scene Information",
description="This will overwrite any previously stored scene information with the Nif header info.",
description="This will overwrite any previously stored scene information with the Nif header info",
default=True)

# Import animation.
animation: bpy.props.BoolProperty(
name="Animation",
description="Import animation.",
description="Import animation",
default=False)

# Merge skeleton roots.
merge_skeleton_roots: bpy.props.BoolProperty(
name="Merge Skeleton Roots",
description="Merge skeleton roots.",
description="Merge skeleton roots",
default=False)

# Send all geometries to their bind position.
send_geoms_to_bind_pos: bpy.props.BoolProperty(
name="Send Geometries To Bind Position",
description="Send all geometries to their bind position.",
description="Send all geometries to their bind position",
default=False)

# Send all detached geometries to the position of their parent node.
send_detached_geoms_to_node_pos: bpy.props.BoolProperty(
name="Send Detached Geometries To Node Position",
description="Send all detached geometries to the position of their parent node.",
description="Send all detached geometries to the position of their parent node",
default=False)

# Apply skin deformation to all skinned geometries.
apply_skin_deformation: bpy.props.BoolProperty(
name="Apply Skin Deformation",
description="Apply skin deformation to all skinned geometries.",
description="Apply skin deformation to all skinned geometries",
default=False)

# What should be imported.
process: bpy.props.EnumProperty(
items=(
("EVERYTHING", "Everything", "Import everything."),
("SKELETON_ONLY", "Skeleton Only", "Import skeleton only and make it parent of selected geometry."),
("GEOMETRY_ONLY", "Geometry Only", "Import geometry only and parent them to selected skeleton."),
("EVERYTHING", "Everything", "Import everything"),
("SKELETON_ONLY", "Skeleton Only", "Import skeleton only and make it parent of selected geometry"),
("GEOMETRY_ONLY", "Geometry Only", "Import geometry only and parent them to selected skeleton"),
),
name="Process",
description="Parts of nif to be imported.",
description="Parts of nif to be imported",
default="EVERYTHING")

use_custom_normals: bpy.props.BoolProperty(
name="Use Custom Normals",
description="Store NIF normals as custom normals.",
description="Store NIF normals as custom normals",
default=True)

combine_vertices: bpy.props.BoolProperty(
name="Combine Vertices",
description="Merge vertices that have identical location and normal values.",
description="Merge vertices that have identical location and normal values",
default=False)

use_embedded_texture: bpy.props.BoolProperty(
Expand Down
6 changes: 3 additions & 3 deletions io_scene_niftools/properties/constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ class ConstraintProperty(PropertyGroup):

LHMaxFriction: FloatProperty(
name='LHMaxFriction',
description='Havok limited hinge max friction.',
description='Havok limited hinge max friction',
)

tau: FloatProperty(
name='tau',
description='Havok limited hinge max friction.',
description='Havok limited hinge max friction',
)

damping: FloatProperty(
name='damping',
description='Havok limited hinge max friction.'
description='Havok limited hinge max friction'
)


Expand Down
10 changes: 5 additions & 5 deletions io_scene_niftools/properties/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ObjectProperty(PropertyGroup):

rootnode: EnumProperty(
name='Nif Root Node',
description='Type of property used to display meshes.',
description='Type of property used to display meshes',
items=(
('NiNode', 'NiNode', "", 0),
('BSFadeNode', 'BSFadeNode', "", 1)),
Expand Down Expand Up @@ -160,28 +160,28 @@ class BsInventoryMarker(PropertyGroup):

bs_inv_x: FloatProperty(
name="Inv X value",
description="Rotation of object in inventory around the x axis.",
description="Rotation of object in inventory around the x axis",
default=0,
subtype = "ANGLE"
)

bs_inv_y: FloatProperty(
name="Inv Y value",
description="Rotation of object in inventory around the y axis.",
description="Rotation of object in inventory around the y axis",
default=0,
subtype = "ANGLE"
)

bs_inv_z: FloatProperty(
name="Inv Z value",
description="Rotation of object in inventory around the z axis.",
description="Rotation of object in inventory around the z axis",
default=0,
subtype = "ANGLE"
)

bs_inv_zoom: FloatProperty(
name="Inv Zoom Value",
description="Inventory object Zoom level.",
description="Inventory object Zoom level",
default=1
)

Expand Down
4 changes: 2 additions & 2 deletions io_scene_niftools/properties/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Scene(PropertyGroup):
[x for x in NifFormat.games.keys() if x != '?'])
],
name="Game",
description="For which game to export.",
description="For which game to export",
default='NONE',
update=update_version_from_game)

Expand All @@ -115,7 +115,7 @@ class Scene(PropertyGroup):

scale_correction: bpy.props.FloatProperty(
name="Scale Correction",
description="Changes size of mesh to fit onto Blender's default grid.",
description="Changes size of mesh to fit onto Blender's default grid",
default=0.1,
min=0.001, max=100.0, precision=2)

Expand Down
2 changes: 1 addition & 1 deletion io_scene_niftools/properties/shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ShaderProps(PropertyGroup):

bs_shadertype: EnumProperty(
name='Shader Type',
description='Type of property used to display meshes.',
description='Type of property used to display meshes',
items=(
('None', 'None', "", 0),
('BSShaderProperty', 'BS Shader Property', "", 1),
Expand Down

0 comments on commit 06b9a7f

Please sign in to comment.