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
2022-02-11File headers: use SPDX license identifiersCampbell Barton
See T95597
2022-02-11Revert "Split io_scene_obj into separate io_import_obj and io_export_obj."Howard Trickey
This reverts commit d364a7b4253e974ad3cc5c76e08478fa69ca0a46.
2022-02-03Split io_scene_obj into separate io_import_obj and io_export_obj.Howard Trickey
Also put an " - Old" by the name of the exporter. The intention is that we won't load the Python exporter, but if a user wants it, they can enable that addon.
2022-01-10Fix T94516: OBJ/MTL Material Roughness imported and exported inaccurately.Bastien Montagne
The addon would assume an OBJ range of [0.0-900.0] for the Ns value, when it actually is supposed to be [0.0-1000.0]. WARNING: This is introducing a slight incompatibility (value shifting of the roughness parameter) with older OBJ files exported by Blender.
2022-01-05Cleanup: fix typos in source codeBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D5801
2020-12-15Fix T83671: OBJ Import: Ignore invalid lines (with 'command' but no data).Jens
OBJ files require that parameters are specified after every line start element except the "end" command. This patch skips all lines that are missing that information unless there is a multi line context. Reviewed By: mont29 Maniphest Tasks: T83671 Differential Revision: https://developer.blender.org/D9828
2020-12-09Fix T84328: Correct errors caused by renamingRobert Guetzkow
In rBA6aa8e130eff59059886e203ff95221609f63b222 all occurrences of "lamp" where replaced with "light" which also accidentally renamed "clamp" to "clight". In case of the x3d importer and object carver add-on this broke some functionality. This commit fixes the names to match the use the correct properties of the Python API and use semantically correct names for other add-on where the renaming didn't cause functional changes. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9782
2020-09-17Shaders: update OBJ and FBX for for Principled BSDF emission strengthBrecht Van Lommel
2019-12-16Fix T72148: OBJ import could fail with spaces in filenamesPhilipp Oeser
Thing here was that files could actually be loaded ('obj_image_load' has smart code for this), but tokenizing the corresponding line afterwards could still fail [would have part of a filename still in image_data list]. Now also correct this 'image_data' list in case 'obj_image_load' found images with filename spaces. Maniphest Tasks: T72148 Differential Revision: https://developer.blender.org/D6358
2019-12-08Fix T72241: error importing OBJ with NURBS curveBrecht Van Lommel
2019-12-03Cleanup: io_scene_obj, unused imports, varsCampbell Barton
2019-11-18Fix T71618: Can't import OBJs that have single-value colors in their MTL file.Bastien Montagne
MTL standard does consider g and b values as optional...
2019-10-10Fix T70666: OBJ IO: Add support for new Emission option of Principled BSDF.Bastien Montagne
2019-10-01Fix typos in source comments and descriptionsBrecht Van Lommel
Patch contributed by luzpaz. Differential Revision: https://developer.blender.org/D5800
2019-08-05Fix T68249: Obj import will error if texture coordinates do not have 2 values.Bastien Montagne
2019-07-31Fix T66087: OBJ file import does not show edges until entering edit mode.Bastien Montagne
Looks like loose edges need to be properly tagged as such nowadays...
2019-07-30Fix T67889: Object Importer Error.Bastien Montagne
Clamp input values to avoid invalid ones.
2019-07-26Fix T67673: Import .obj with more than one unnamed object fails.Bastien Montagne
2019-07-22Fix T67266: .obj import error with mtllib name in quotes - regression from ↵Bastien Montagne
2.79b. While this is not officialy part of OBJ format, some softwares 'solve' the spaces-in-filenames issue by delimiting those with quotes. Since this is not too much a hassle, let's add back support for this. Based on work from Robert Guetzkow (@rjg), thanks. Note: not sure whether this should be ported to 2.80 release, while this change should be reasonably safe, it's not an obvious one-liner either, and the issue is not really critical (don’t think any major software uses that trick?)...
2019-06-03Fix T65326: OBJ import is broken when no material is in OBJ file.Bastien Montagne
Caused by rB8252cc7044ea (fix for T65215), we actually need a default material in edges-only case too, not to exclude None (default) one in that case...
2019-05-28Fix T65215: export/import a simple cube to/from wavefront (.obj) format ↵Bastien Montagne
fails on re-import if object has adges but no faces.
2019-05-16Addons: Adopt for Dependency Graph API changesSergey Sharybin
Mainly search-and-replace approach. Tested the enabled-by-default export/import addons. Seems to work with an exception of X3D which is still referencing Blender Internal material properties. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4866
2019-05-15OBJ IO: Use Principled BSDF's Alpha new setting.Bastien Montagne
Much better than using Principled's Transmission setting as we did before... Part of T64609.
2019-03-18Fix T62695: OBJ mtllib fails when filename contains spacesCampbell Barton
2019-03-05OBJ importer: do not do 'smart' init of new UV layers.Bastien Montagne
Not really important here (we expect to set a value for all items), but avoids useless computation anyway.
2019-02-07Cleanup OBJ debug prints from recent own commit.Bastien Montagne
Thanks to @BzztPloink for the headup.
2019-02-07Fix T61254: Import OBJ error:Bastien Montagne
We cannot clear a face's vnors/uvs indices in case none are defined in the OBJ file, we need indices for all loops when defining them in Blender's mesh...
2019-02-05Don't split groups by default when importing .obj filesJacques Lucke
As discussed in D4303.
2019-02-05Fix T61179: Import OBJ groups bug.Bastien Montagne
Regression/side effect from rBA9448cef00d1b3, while we do want to get one Blender object per 'o' line (object declaration) in OBJ file, we do want to 'reuse' same objects when same OBJ groups ('g' lines) are used inside of a same object, in case we split OBJ groups into objects... Thanks to Jacques Lucke (@JacquesLucke) for initial investigation.
2019-01-30Fix: Material.diffuse_color has an alpha component nowJacques Lucke
2019-01-25import_obj: Comment why getting an int as a float is neededCampbell Barton
2019-01-11Fix T60387: Blender 2.8 OBJ file format not work in import mode.Bastien Montagne
Bloody stupid mistake in 'speed-up parsing' work, yet annoyingly difficult to spot on... :(
2019-01-11Fix second part of T60381: OBJ import of textures would fail when map ↵Bastien Montagne
scale/offset was specified.
2019-01-10Fix first part of T60381: OBJ import broken in case of multiple OBJ objects ↵Bastien Montagne
named the same. Ensure we use a different key for each OBJ object (usung similar naming increment as Blender one).
2019-01-04OBJ Import: better handling for metallicPhilipp Oeser
retrival of metallic (ab)uses OBJ material ambient term. this can be non-zero, but in case of no reflections (OBJ 'illum' < 3) metallic should be zero. Fixes T60150
2019-01-04OBJ Import: Fix finalize material code not being performed on last material.Bastien Montagne
Issue noticed by Philipp Oeser (@lichtwerk), thanks!
2018-12-07Fix T58896: Addons with ob.vertex_groups.new without name keyworkDalai Felinto
Original report: OBJ file import fails for objects with vertex groups defined when polygroups option is selected
2018-11-28Fix T58094: Failure to import .obj files without material data.Bastien Montagne
Not sure how we did this in old code, but we certainly cannot ignore None (a.k.a. default place holder) material anymore... Do not generate it when not needed, though!
2018-11-20OBJ Import: Improve mesh building performances (over 20% speedup).Bastien Montagne
This commit essentially replaces several face data setting done into a regular loop by calls to magic 'foreach_set'. This increases seed of affected code by over 200%, global mesh building by over 40%, and overall typical OBJ import by 20%.
2018-11-20OBJ Import: Improve parsing performances (overall 5% speedup).Bastien Montagne
This commits mainly add a specific, optimized handling for vertex data (coos, nors, UVs) expressed on single lines. Nearly all OBJ files I've come accross use a single line per vertex data. This code cand be up to 40% quicker on vertex data parsing, making typical parsing about 8% quicker, and typical import about 5% quicker. Note that I tried applying same kind of optimizations on faces parsing, but we need to perform rather more complex checks there, so could not get any interesting improvements. Also, fixing some logical flaw in invalid nor/uvtex indices, which also gives marginal speed improvements.
2018-11-20OBJ import: minor cleanup and optimizations.Bastien Montagne
Does not give any measurable benefit though.
2018-11-15OBJ import: Fix specPhilipp Oeser
2018-11-08Update for changes in Blender's APICampbell Barton
2018-11-06Updates for change in ViewLayer RNA API.Bastien Montagne
2018-11-05OBJ import: fix (remove) deprecated viewlayer handling code.Bastien Montagne
Guess that was added when layercollection of view layer could still be edited, that is no more the case (reading code), now view layers appear to always only have the scene's master collection, all others being children of that one.
2018-11-01Merge branch 'master' into blender2.8Campbell Barton
2018-11-01Update for changes to Blender's APICampbell Barton
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-10-17Potential fix for T57280 (OBJ import: typo in material handling code).Bastien Montagne