Match SVG-document units with Blender units:
Test files with different SVG units:
Differential D4319
SVG import: Match document units with Blender units Authored by Michael Soluyanov (crantisz) on Feb 7 2019, 1:51 PM. Tags None Subscribers None
Details Match SVG-document units with Blender units: Test files with different SVG units:
Diff Detail Event TimelineComment Actions @Michael Soluyanov (crantisz) I have tested inserting your code in the modified add-on that supports grease pencil and it looks is working fine. Now the scale is correct. Anyway, in the new add-on, we have a parameter to define the final scale because the SVG sizes usually are very small for common Blender scenes. Testing with a scale of 1.0, works fine and gets the same size. If @Jacques Lucke (JacquesLucke) thinks is ok, we could move the change to current master add-on and I will incorporate this change in my development version. Example of GPencil object imported with scale=1.0. Left plane is 10 cm x 10 cm. Comment Actions Haven't checked if the code works myself, but it's probably fine when you say it works.
Sure, that's fine. You can do the commit. Comment Actions I have tested and works as expected. Not sure if the code has any issue. Anyway, the patch is ok with the code in development (no merge conflicts), so no problem to move it to master. |