Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-19Cleanup: Spelling in commentSergey Sharybin
2019-09-11SVG Import: Match SVG-document units with Blender units:Michael Soluyanov
Differential Revision: https://developer.blender.org/D4319
2019-09-11SVG Import: Fix offset while import SVG filesMichael Soluyanov
The file saved as Inkscape SVG moved to the top, regular SVG stays in place. Blender checks if SVG have an special attribute `inkscape:version`, and if it has one, it move all SVG to the top. The idea is to match bottom right corner with world origin, instead top right corner: But why height is not equal the real height of the SVG? Well, because it's not a height of SVG itself, it is size of SVG on printing or displaying in web-page or in previewer. The real height of SVG in SVG-units is located in viewbox attribute: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox So I suggest to move SVG content to real height of SVG located in viewbox attribute: Reviewers: sergey, antoniov Reviewed By: antoniov Subscribers: meta-androcto, antoniov, jms, sergey Tags: #add-ons Differential Revision: https://developer.blender.org/D5727
2019-03-25Fix T62883: Import SVG file remove fill color.Simon
rBbc5b0f7a091c changed the default fill mode for curves. Instead of being "fill" it is now "none". The creates a problem because the svg importer seems to rely on curves being filled by default. This diff should fix it. (Note that this is my first patch) Reviewers: sergey, mont29 Reviewed By: mont29 Subscribers: mont29 Differential Revision: https://developer.blender.org/D4582
2019-02-19Fix T61707: Use id attribute to initialize object and curve namesJacques Lucke
Reviewers: sergey Differential Revision: https://developer.blender.org/D4377
2019-02-01SVG: Properly handle values in exponential notationSergey Sharybin
Some SVG exporters outputs small values in an exponential notation. There is no big reason to reject those files. This change makes it so any notation of the value is accepted. Only do it in the path point parsing, since other areas are already dealing with this correct. Also covered the array parsing covered with a unit test which can be run as a stand-alone application. The parsing code is from Jacques Lucke, thanks! Differential Revision: https://developer.blender.org/D4234
2019-01-30Fix: Material.diffuse_color has an alpha component nowJacques Lucke
2018-10-29Merge branch 'master' into blender2.8Sergey Sharybin
2018-10-29SVG: Fix wrong closed path with quadratic segmentsSergey Sharybin
Fixes T55601: SVG import wrong shape
2018-10-29SVG: Fix wrong quadratic path when point is duplicateSergey Sharybin
2018-10-29SVG: Cleanup, don't use semicolonSergey Sharybin
2018-10-29SVG: Cleanup, indendationSergey Sharybin
2018-10-29SVG: Cleanup, space around operatorSergey Sharybin
2018-10-29Merge branch 'master' into blender2.8Sergey Sharybin
2018-10-29SVG: Fix for typosSergey Sharybin
Patch provided by @cyp
2018-10-24Cleanup: remove unneeded keyword argumentCampbell Barton
2018-10-22SVG Format: minor Blender 2.8 fixesJacques Lucke
2018-10-19Merge branch 'master' into blender2.8Brecht Van Lommel
2018-10-19Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3746
2018-08-21SVG Import: use '@' for matrix multiplyCampbell Barton
D3624 by @oirish
2018-07-05SVG: Port to 2.8Sergey Sharybin
2017-09-19Fix T52822: Incorrect dimensions of imported svg filesSergey Sharybin
Was caused by fix for T45460. Now both reports should be fixed properly.
2017-05-24Fix T51594: SVG Importer: circles and rectangles don't get datablocks named ↵Sergey Sharybin
after the original objects
2016-10-21Fix T49791: Distorted curves when importing SVGSergey Sharybin
2016-10-21SVG importer: Fix typo in commentSergey Sharybin
2016-10-14Fix T49476: SVG importer distorts the color informationSergey Sharybin
This is quite weak solution and not happy with it, but should cover most of the use-cases.
2016-04-19Fix T47580: Can not import specific SVGSergey Sharybin
2016-02-10SVGParseFloat() improved parsing of scientific notationSergey Sharybin
io_curve_svg.import_svg.SVGParseFloat() may parse a float containing scientific notation without an exponent sign. For example, 1e3 is a legal float value according to the <number> syntax: https://www.w3.org/TR/SVG11/types.html#DataTypeNumber Example SVG file: https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg Patch by Zac Mullett (aka zmullett), thanks! Reviewers: sergey Projects: #addons Differential Revision: https://developer.blender.org/D1755
2016-01-08Fix T45460: SVG importer scale issuesSergey Sharybin
Push SVG tag rectangle before calculating the matrix. This way scale will use proper SVG width and height.
2014-12-09Fix T42847: SVG importer: incorrectly imports valid SVG filesSergey Sharybin
Filled paths implies having final 'z' command to close the path.
2014-05-13Fix document height parsing when height contains unitsSergey Sharybin
2014-01-23Fix T38324: import SVG from Inkscape doesn't match space originSergey Sharybin
Made some tweaks to transformation matrix of <svg> node to make it so origin from Inkscape matches Blender origin. Currently only affects files from Inkscape, for others it's not so much clear what origin should be. Based on the patch from aldero (juanC), thanks!
2013-11-15Code cleanup: multiple spaces around keywordSergey Sharybin
2012-11-30correct typosCampbell Barton
2012-11-06Made SVG importer handle DPI properlySergey Sharybin
Apparently internally SVG importer was using 90 points per blender unit, not per inch. This made files importing with unexpectable dimensions which could be really harmful if you're importing blueprints as references. Now SVG importer is using 90 points per inch, which makes imported files has correct dimensions in both Metric and Imperal unit systems. However, there's one possible downside -- imported files would look smaller in blender units system.
2012-11-06SVG import: corretc multiplier for mm, cm and in to match blender's unit systemSergey Sharybin
2012-05-16Spell check fix (lenght -> length)Bastien Montagne
2012-04-23Fix #31056: SVG importer ignores fill color from parent containerSergey Sharybin
Additional changes: - Fixed wrong pop of rectangle area (function wasn't called) - Removed unused code
2011-12-31adjust for column major matrix changeCampbell Barton
2011-11-25minor pep8 editsCampbell Barton
2011-10-17fix spelling errors for commentsCampbell Barton
2011-07-25switch vector multiply orderCampbell Barton
2011-07-11cleanupCampbell Barton
- remove/comment unused variables - remove unused imports - fixed some bugs using incorrect variables
2011-05-22Fix #27456: Scalable Vector Graphics (SVG) file importing incorrectlySergey Sharybin
Update current point position when closing path is needed.
2011-04-04handle exceptions for reading non XML files - cant decode or parse, real ↵Campbell Barton
errors in code will still raise exceptions.
2011-03-21fix for loading some svg's with viewBox like this: viewBox="0,0 360,240"Campbell Barton
eg: XFCE file - /usr/share/xfce4/xkb/flags/tr.svg
2011-03-20Fix #26555: SVG Import (stars wrong scale)Sergey Sharybin
Transformation for non-container objects was applied twice when they were USEd. Get rid of confusing checks for special cases in USE.createGeom and use special flag (instancing) which tells geometry is it "normal" geometry creation or geometry creation initiated by USE node (SYMBOL would be handled differently int this two cases) Quick tests showed none regressions.
2011-03-20Fix #26556: SVG Import fails to parse Inkscape file.Sergey Sharybin
Suppose zero frictional part for case there's space or comma after dot in float value. Inkscape sometimes uses such weird format.
2011-03-20fix for 2 bugs importing SVGCampbell Barton
- transform() only requires a single argument. - support 'INVALID' as a unit suffix is present in some files created by docbook.
2011-03-20fix SVG loading when a float has whitespace prefix.Campbell Barton
file from report [#26555] was raising an error becaues of this. us.svg line 23 <use xlink:href="#star" x=" 0.126"/>