Campbell Barton
1b462e5a51
Pass EvaluationContext instead of bContext
...
2.8x branch added bContext arg in many places,
pass eval-context instead since its not simple to reason about what
what nested functions do when they can access and change almost anything.
Also use const to prevent unexpected modifications.
This fixes crash loading files with shadows,
since off-screen buffers use a NULL context for rendering.
2017-08-16 12:46:04 +10:00
Luca Rood
1c4c288727
Pass EvaluationContext argument everywhere
...
Note that some little parts of code have been dissabled because eval_ctx
was not available there. This should be resolved once DerivedMesh is
replaced.
2017-07-21 14:47:26 +02:00
Campbell Barton
7a9ad029dd
Remove TexFace, per-face images
...
TexFace complicates the now more popular shading pipeline by having
per-face images, see: T51382 for details.
To keep the ability to select a per-material edit-image
(used with UV-mapping workflow), the material now stores an image
which will be set when changing images in edit-mode.
This is used as a bake-target when not using Cycles too.
2017-05-24 23:38:15 +10:00
Dalai Felinto
db0f67f464
Collada export cleanup
2017-04-04 20:44:22 +02:00
Dalai Felinto
fa317eb69c
Fix collada exporting for Blender 2.8
...
Instead of exporting all the scene objects, I'm exporting the scene
layer objects instead.
2017-04-04 17:45:55 +02:00
Gaia Clary
368b74315a
Collada - add flag to limit precision of exported data, mainly to simplify debugging
2017-04-03 10:48:00 +02:00
Gaia Clary
f65d6ea954
fix: collada - do proper conversion from int to bool (as with other nearby parameters)
2017-04-03 10:45:24 +02:00
Gaia Clary
092d673689
Added new option for storing bindpose matrix, see T50412
2017-03-23 14:14:22 +01:00
Gaia Clary
38410e6e25
changed use_connect from bool to a 3 state value (-1,0,1)
2016-06-03 18:31:51 +02:00
Gaia Clary
29aa13cfa2
fix: Import of meshes with holes is now reported as WARNING (unsupported)
...
improved: add support for bone tail export/import using Blender Collada profile
Differential Revision: https://developer.blender.org/D2031
2016-05-26 17:53:25 +02:00
Campbell Barton
ac163447f8
Cleanup: warnings. spelling
2016-04-30 04:10:34 +10:00
Gaia Clary
4e95807db3
fix T47484: Added proper error reporting for Collada Exporter
2016-02-20 21:42:12 +01:00
Campbell Barton
4ab47a7670
BLI_linklist, avoid full list search for append
...
For areas that require append, store the last node,
Previous behavior would too easily hide poorly performing code.
Also avoid (prepend, reverse) where possible.
2015-06-12 17:13:34 +10:00
Gaia Clary
e35b4bac0a
Collada Importer: Separated finding bone chains and fixing leaf bone orientations into 2 functions and added a separated import option
2014-12-01 20:31:59 +01:00
Gaia Clary
8d42c2f3ea
Improved Collada Armature Import
...
Collada does not support Bone length. It has only Joints.
This patch tries to improve the necessary "guesswork" for
importing Rigs.
Differential Revision: https://developer.blender.org/D920
2014-12-01 12:08:26 +01:00
gaiaclary
c0276251d2
fix T42022 Attempt to export empty set of objects resulted in an exception
2014-09-30 13:22:55 +02:00
Gaia Clary
c819fd4ee0
Changed some labels from Second Life to OpenSim
2013-10-03 14:24:54 +00:00
Gaia Clary
3741a588bc
Fix 36505: Collada exporter crashes Blender when exporting to locked file
2013-08-24 09:51:05 +00:00
Gaia Clary
8664d4b98b
Collada: Added option for how rot,loc,trans data is exported (improves flexibility for support of other 3D tools)
2013-03-06 23:21:52 +00:00
Campbell Barton
e39f05e5fa
patch [ #34103 ] fileops_1.patch
...
from Lawrence D'Oliveiro (ldo)
Add comments and use of bool type in fileops.c
2013-03-05 03:53:22 +00:00
Gaia Clary
be701b6278
Collada: Added support for ngon export/import and added triangulate option to export
2013-03-02 15:58:13 +00:00
Gaia Clary
debc3ac910
Collada export: Add ngon support (initial)
2013-02-27 13:53:43 +00:00
Gaia Clary
9fe4dbb9f1
Fix: Collada Import files with X_UP and Y_UP axis where imported with wrong orientation
2013-02-15 15:36:02 +00:00
Gaia Clary
f34d1d5585
[ #33437 ](partial fix) Collada: importing a scene changes units. Added an option to disable unit settings during import.
2013-02-09 16:19:30 +00:00
Gaia Clary
c263753d17
Added gsoc-2012 collada improvements from bratwurst branch
2013-01-21 13:45:49 +00:00
Gaia Clary
f3d261d795
Collada(exporter): Added error message when export file can not be created for whichever reason
2012-09-19 19:28:29 +00:00
Gaia Clary
8ef4c4762b
Added option for exporting material based textures. Cleaned up header files due to a bug in osx
2012-06-23 22:03:31 +00:00
Gaia Clary
adf3a5e332
Collada: (Export) Added export of surface textures, and control over exported uv layers
2012-06-22 16:16:58 +00:00
Gaia Clary
0df30d1063
Collada: (Exporter) add 'mesh type selection(view|render)' for Apply modifiers option
2012-06-16 23:35:53 +00:00
Campbell Barton
664c95d1eb
code cleanup: collada
...
- when bubble sorting names - dont convert to str::string just to compare strings
- use BLI_linklist_index() to check if an item is in the list
- quiet some warnings
2012-06-16 09:16:24 +00:00
Gaia Clary
9f6a66d5f9
Collada: (Exporter) Add new option 'deform bones only'
2012-06-15 22:00:25 +00:00
Gaia Clary
05a1a31693
Collada: Added export Option 'sort by object name' to fix an issue with Second Life import
2012-06-14 10:38:39 +00:00
Campbell Barton
2e8a2f7668
style cleanup
2012-06-12 22:05:33 +00:00
Gaia Clary
36ed4818e5
patch #31794 Collada: make exporter more robust, now uses BKE_object_relational_superset()
2012-06-12 21:25:29 +00:00
Gaia Clary
49a5141cde
[ #31739 ] Collada: New Export selections 'Include Armatures'
2012-06-07 17:55:26 +00:00
Gaia Clary
822362189b
[ #31607 ] Collada: (Exporter) Implementation of 'use Object Instantiation' Option
2012-05-26 22:46:28 +00:00
Gaia Clary
da67c969b3
Patch #31570 : Implementation of 'Include bone children' Option
2012-05-24 14:56:09 +00:00
Gaia Clary
98ba7dfecf
Collada: patch #31331 : Implementation of 'Apply Modifiers'
2012-05-07 18:09:59 +00:00
Campbell Barton
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
Domino Marama
2cb3fe3dfd
Patch #30050 by Juha Mäki-Kanto (kanttori)
...
Fixes for Collada exporter.
Adds Second Life compatibility for armatures
Adds objects parentinverse to exported transform if it's non-identity
Fix mismatch between add_inv_bind_mats and add_joints_source accessor counts
Fix bone exports in world space should be local space
2012-02-05 16:19:28 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Brecht Van Lommel
e417e011d5
Code cleanup: file operations merged into single header, some function names
...
made less cryptic and changed to indicate if they work on files or directories.
2011-10-22 15:35:49 +00:00
Brecht Van Lommel
88473fd49a
Code cleanup: remove BLI_exist, now there is only BLI_exists. One function just
...
called the other, they did the same thing.
2011-10-21 22:33:41 +00:00
Nathan Letwory
3dc0ee19c4
Introduce struct for export settings in COLLADA export code. This will make it easier to
...
add new options without having to change function signatures all over the place.
2011-09-07 18:23:30 +00:00
Nathan Letwory
6e9ff495eb
Add parser error handler.
...
OpenCOLLADA is a validating parser, so is pretty strict about document form. The added error handler will print out any errors the parser finds. A pop-up will be shown too, advising the user to check the console for the error log.
2011-09-05 20:41:58 +00:00
Nathan Letwory
cf43e48fc7
Apply patch 4636051. COLLADA: Export selection.
...
Original patch by Jan Diederich, adapted by Pelle Johnsen. Review assistance by Daniel Tavares.
This patch adds an option to export only the selection.
2011-07-04 08:59:28 +00:00
Campbell Barton
70d059161b
workaround/fix [ #27162 ] Running commands in python console crashes blender
2011-04-25 12:39:53 +00:00
Nathan Letwory
caf9fb6cce
doxygen: blender/collada tagged.
2011-02-27 20:30:35 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
Campbell Barton
0a4eb24ca0
fix for building with opencollada 833 on linux.
2011-02-12 06:25:04 +00:00