17 Commits

Author SHA1 Message Date
df34f4f1db Cleanup: fix source comment typos
Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D14312
2022-03-15 18:31:13 +01:00
b8d86ccc0a File headers: use SPDX license identifiers
See T95597
2022-02-11 16:05:07 +11:00
d68dca98ce Cleanup: fix typos in source code
Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D5801
2022-01-05 15:46:41 +01:00
1d91e8c12a Cleanup: trailing space & tabs to spaces 2021-12-01 10:43:38 +11:00
d76acfa90c PDT: Update version to 1.5.1
Fix a few speling issues in comments.
2021-05-17 23:29:03 +02:00
162f7c7682 PDT: Fix the Fillet Vertices command
The Fillet Vertices command was inadvertently shadowed by the newly introduced View Normal command.

The View Normal command now uses 'n' as its mnemonic.
2021-05-17 23:27:45 +02:00
e2516bfae6 PDT: Add "View Normal" Operation enhancement
This enhancement enables the user to work always Normal to the View
as defined by "Working Plane" in PDT Design Functions Section.

For example: If the working plane is set to Front and the Operation is "Extrude Geometry"
the system will extrude along the Y axis by the amount specified in the "Distance" Entry Box.
Specifying Working Plane as "View" cause the system to work always Normal to the current
view orientation, i.e. into, or out of your screen.

This enhancement is only available for Blender 2.9x builds.
2021-05-17 19:43:36 +02:00
a65fb17335 Cleanup: Remove trailing period in descriptions.
Reduces warnings while running tests.
Also fix some descriptions with strings concatenated but without a
space in between.

Reviewed by campbellbarton
Differential Revision: https://developer.blender.org/D9655
2021-02-12 10:31:55 +05:30
1a6900ade7 PDT: Docstring fixes and a small bug fix
All Docstrings have been examined for typos and format, etc.

Small code change to set Selection Mode to "SEL" if operation is not
"C" or "P" to avoid possible errors when using other operations.
2020-02-04 14:25:53 +01:00
0e4dd304d6 PDT: Rename more variables for readability 2020-02-01 16:44:02 +01:00
877308f917 PDT: Refactor per Pylint suggestions + readability
- Remove unused imports
- Add comments where appropriate
- Improve readability of variable names
- Re-implement a couple of functions using dictionaries instead of if-statements
- Results of Pylint & Black operations, plus some fixes to code.
2020-02-01 16:42:29 +01:00
7597a8b66d Add System Input Rounding
Applies system rounding to inputs as defined in Add-on Preferences.

Default is 5 places of decimal, values taken from UI, or by calculation are
rounded before command is submitted.
2020-02-01 16:42:03 +01:00
fccd99b832 PDT: Refactor codebase (stage 1 + 2)
Moved all PDT Design Operations and Tools to Command Line file to de-dupe
code. All can now be called from the command line, e.g. a command of "otc" sets
the active objects Origin To Cursor, etc. Needs extensive further testing to see if all
Operations in all Modes still work exactly as before.
Tools menu split out from PDT Design so it can be minimised when not in use.
2020-02-01 16:40:29 +01:00
2af992e518 PDT: Rename various variables for readability 2020-01-14 22:26:04 +01:00
0d40bb678c PDT: Modify Fillet functionality
This enables two non-connected edges to be filleted. The Process starts with an
intersection of the two edges, then fillets the corner according to input values
in the UI. This option is selected by setting the Int/Fillet checkbox.

The command Line version now takes the `fi...` format to intersect first. e.g.

`fi1.1,6,0.05` performs an intersected fillet of 1.6 units radius, 6 segments,
concave profile.
2020-01-14 22:25:04 +01:00
0c2d39adf6 PDT: Minor fixes to Intersect and Delta Move
Intersect Fix:

Changed priorities to give more weight to selection by Vertex than selection
by Edge. Selection by Edge without All/Active will now cause an error if first
vertex of edge is not closest to intersection. This can be overridden by either
setting All/Active, or by working in Vertex mode and ensuring vertex to be
extended is closest to the intersection, when doing both closest vertices is
not required.

Delta Move Fix:

Fixed minor error in Move by Delta operation, when in Object Mode,
Objects were both moved to same location.
2019-12-27 15:49:31 +01:00
e7594d45b1 Add Clockmender's Precision Drawing Tools v1.1.5
Accepted for inclusion per T70238
2019-12-09 00:52:27 +01:00