EleotleCram / blender-cad-tools

a collection of Blender addons to make CAD design with Blender even more enjoyable
163 stars 7 forks source link

Update cad_mesh_dimensions.py #8

Open GOvEy1nw opened 8 months ago

GOvEy1nw commented 8 months ago

NOTE: I'm by no means a dev, but I can often patch minor things together. I was in need of the CAD Mesh Dimensions feature in Blender, so grabbed it and felt like a few trivial changes would make it more enjoyable to use, at least for me. So I'm submitting them as a Pull Req, in case they're handy for everyone.

Added: When in object mode, the object dimensions (same as 'dimensions' in N-Panel > Item > Transform) will show, instead of being empty. Added: When nothing is selected, dimensions read 0, 0, 0. Added: New button to apply scale, which appears as a warning whenever object scale is not 1,1,1. This is to act as a reminder, to avoid mis-aligned dimensions between object & edit mode. Change: Moved the panel to sit with the rest of the transform properties in the Object Properties Tab Change: Some minor layout/UI adjustments Change: Set the default orientation mode to 'Normal' Fix: Applied pybin fix as mentioned here: https://github.com/EleotleCram/blender-cad-tools/issues/3