9 years agoStyle cleanup, no functional changes
Sergey Sharybin [Wed, 4 Jul 2012 09:08:05 +0000 (09:08 +0000)]
Style cleanup, no functional changes

9 years agofix staic OCIO with cmake and a little correction in scons)
Jens Verwiebe [Wed, 4 Jul 2012 08:39:57 +0000 (08:39 +0000)]
fix staic OCIO with cmake and a little correction in scons)

9 years agoMerging r48575 through r48576 from trunk into soc-2011-tomato
Sergey Sharybin [Wed, 4 Jul 2012 07:37:21 +0000 (07:37 +0000)]
Merging r48575 through r48576 from trunk into soc-2011-tomato

9 years agoRevert the DNA pdef_stickness -> pdef_stickiness part of r48556.
Bastien Montagne [Wed, 4 Jul 2012 07:35:54 +0000 (07:35 +0000)]
Revert the DNA pdef_stickness -> pdef_stickiness part of r48556.

Forgot DNA needed stable names... :/ Correct spelling would involve keeping the old one for load code anyway, so better live with incorrect spelling here.

9 years agoMerging r48545 through r48574 from trunk into soc-2011-tomato
Sergey Sharybin [Wed, 4 Jul 2012 07:33:34 +0000 (07:33 +0000)]
Merging r48545 through r48574 from trunk into soc-2011-tomato

9 years agoMask node: create a copy of layers to be rasterized in initExecution
Sergey Sharybin [Wed, 4 Jul 2012 07:10:23 +0000 (07:10 +0000)]
Mask node: create a copy of layers to be rasterized in initExecution

This creates a list of splines to be rasterized in nitExecution which
is being called from main thread. This should resolve possible threading
issues discovered in tomato branch.

9 years agoadd support for scrubbing with the mouse
Campbell Barton [Tue, 3 Jul 2012 22:58:43 +0000 (22:58 +0000)]
add support for scrubbing with the mouse

9 years agomost keyboard events working again, but no scrub
Campbell Barton [Tue, 3 Jul 2012 22:10:59 +0000 (22:10 +0000)]
most keyboard events working again, but no scrub

9 years agofix error in node template and quiet warning.
Campbell Barton [Tue, 3 Jul 2012 21:03:39 +0000 (21:03 +0000)]
fix error in node template and quiet warning.

9 years agomake the last fix unhackish
Jens Verwiebe [Tue, 3 Jul 2012 19:40:01 +0000 (19:40 +0000)]
make the last fix unhackish

9 years agoMore spell and typo fixes (mostly visualise->visualize, grey->gray, normalise->normal...
Bastien Montagne [Tue, 3 Jul 2012 19:09:07 +0000 (19:09 +0000)]
More spell and typo fixes (mostly visualise->visualize, grey->gray, normalise->normalize).

9 years agoMinor updates.
Bastien Montagne [Tue, 3 Jul 2012 19:06:43 +0000 (19:06 +0000)]
Minor updates.

9 years agosome fixes and a hack to get osx with ocio compiled, todo: also add the missing libs
Jens Verwiebe [Tue, 3 Jul 2012 19:03:52 +0000 (19:03 +0000)]
some fixes and a hack to get osx with ocio compiled, todo: also add the missing libs

9 years agoFirst load of spell and typo fixes (mostly UI messages, but also one or two pieces...
Bastien Montagne [Tue, 3 Jul 2012 17:20:21 +0000 (17:20 +0000)]
First load of spell and typo fixes (mostly UI messages, but also one or two pieces of code using mis-spelled names).

9 years agoTomato: skip cache for Movieclip input node only when rendering
Sergey Sharybin [Tue, 3 Jul 2012 16:23:15 +0000 (16:23 +0000)]
Tomato: skip cache for Movieclip input node only when rendering

9 years agoTomato experimental option: disable cacheing for movie clip node
Sergey Sharybin [Tue, 3 Jul 2012 16:18:39 +0000 (16:18 +0000)]
Tomato experimental option: disable cacheing for movie clip node

9 years agoAlso fix Anim Player button for node editor
Sergey Sharybin [Tue, 3 Jul 2012 16:04:26 +0000 (16:04 +0000)]
Also fix Anim Player button for node editor

9 years agoTomato: fixed crash caused by interaction between color management and
Sergey Sharybin [Tue, 3 Jul 2012 16:00:57 +0000 (16:00 +0000)]
Tomato: fixed crash caused by interaction between color management and
movie clip caches resulting in some unchecked NULL pointers.

Probably it'll be better to separate memory limitors for cache and
clips or double-check priority functions are fine to deal with
such cases.

9 years agoTomato: correction to mask cache so parenting should work fine now
Sergey Sharybin [Tue, 3 Jul 2012 15:46:23 +0000 (15:46 +0000)]
Tomato: correction to mask cache so parenting should work fine now

9 years agoMerging r48538 through r48544 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 3 Jul 2012 15:14:14 +0000 (15:14 +0000)]
Merging r48538 through r48544 from trunk into soc-2011-tomato

9 years agoGrmph! module renaming broke the tool!
Bastien Montagne [Tue, 3 Jul 2012 15:05:10 +0000 (15:05 +0000)]
Grmph! module renaming broke the tool!

9 years agoFix #32002: "Anim Player" button on header doesn't appear
Sergey Sharybin [Tue, 3 Jul 2012 15:01:54 +0000 (15:01 +0000)]
Fix #32002: "Anim Player" button on header doesn't appear

9 years agoCorrections to default values for view settings
Sergey Sharybin [Tue, 3 Jul 2012 14:51:54 +0000 (14:51 +0000)]
Corrections to default values for view settings

9 years agoTomato: hack to cache result of rasterization
Sergey Sharybin [Tue, 3 Jul 2012 14:30:55 +0000 (14:30 +0000)]
Tomato: hack to cache result of rasterization

It shall be removed as soon as tile-based rasterization is here,
but to remove current stoppers should be fine.

9 years agoimage sequence - apply cyclic option AFTER the image offset,
Campbell Barton [Tue, 3 Jul 2012 14:25:06 +0000 (14:25 +0000)]
image sequence - apply cyclic option AFTER the image offset,
there was no way to properly loop on a sequence of images that didnt start frame 1.

9 years agosvn merge ^/trunk/blender -r48527:48537
Campbell Barton [Tue, 3 Jul 2012 14:05:18 +0000 (14:05 +0000)]
svn merge ^/trunk/blender -r48527:48537

9 years agodont display image sequences outside the frame range in the 3D viewport.
Campbell Barton [Tue, 3 Jul 2012 14:04:39 +0000 (14:04 +0000)]
dont display image sequences outside the frame range in the 3D viewport.

9 years agoFix for the "black F-Curves" bug on undo
Joshua Leung [Tue, 3 Jul 2012 13:47:13 +0000 (13:47 +0000)]
Fix for the "black F-Curves" bug on undo
(From personal stash of bugs - since early 2.5 versions)

F-Curve colors get applied only on Graph Editor "refresh()". In some cases, undo
was reverting back to a state where the colors had not yet been set. In these
cases, there would be no refresh() after that undo (until expanding a channel or
some other similar action), resulting in "black F-Curves" appearing. So, now we
force such an update after undo to ensure that the curves never display black.

(Noticed while investigating another bug for Mango related to
CLIP_OT_constraint_to_fcurve not sending notifiers required when new F-Curves
are added)

9 years agoMore exception words to the ui dico... :/
Bastien Montagne [Tue, 3 Jul 2012 13:24:13 +0000 (13:24 +0000)]
More exception words to the ui dico... :/

9 years agoMinor edits.
Bastien Montagne [Tue, 3 Jul 2012 13:15:23 +0000 (13:15 +0000)]
Minor edits.

9 years agoFix [#31977] Export Animated Mesh, terminate baking in fluid-sim
Bastien Montagne [Tue, 3 Jul 2012 12:40:19 +0000 (12:40 +0000)]
Fix [#31977] Export Animated Mesh, terminate baking in fluid-sim

* Elbeem exporter code now overrides user settings to No Slip in case the object is animated;
* UI of fluid obstacles now disables slip settings when export animated is enabled;
* Added in this later option's tooltip a mention that it enforces No Slip!

9 years agorename module to something less generic.
Campbell Barton [Tue, 3 Jul 2012 11:32:42 +0000 (11:32 +0000)]
rename module to something less generic.

9 years agosvn merge ^/trunk/blender -r48489:48527
Campbell Barton [Tue, 3 Jul 2012 11:03:39 +0000 (11:03 +0000)]
svn merge ^/trunk/blender -r48489:48527

9 years agoTomato: style cleanup, no functional changes
Sergey Sharybin [Tue, 3 Jul 2012 10:56:48 +0000 (10:56 +0000)]
Tomato: style cleanup, no functional changes

9 years agoTomato: improved cache management for movie clips
Sergey Sharybin [Tue, 3 Jul 2012 10:56:33 +0000 (10:56 +0000)]
Tomato: improved cache management for movie clips

Replace pseudo-LRU approach of determining which buffer
to remove when running out of space allowed for cache
with approach which would remove the frame which is most
far away from newly added frame.

This is still a bit tricky because it's impossible to
distinguish which frame to delete in situation of:


it's either user wants to extend left segment of cached
frames and buffers from right segment should be removed
or he wants to join this two segments and in that case
buffers from right segment should be removed.

Would need a bit more investigation which situation
is more common in general usecase.

9 years agofix (actually nasty workaround), for groups incorrectly drawing in the object panel...
Campbell Barton [Tue, 3 Jul 2012 10:32:10 +0000 (10:32 +0000)]
fix (actually nasty workaround), for groups incorrectly drawing in the object panel when the blend file has naming collisions with library data.

also minor style cleanup in bpy_rna.c

9 years agoOptimized the area of interest of the lensdistortion node.
Jeroen Bakker [Tue, 3 Jul 2012 09:05:19 +0000 (09:05 +0000)]
Optimized the area of interest of the lensdistortion node.
This will have faster feedback to the user, as lensdistortion is mostly
a node that is located at the end of a composite

9 years agoStyle edit (mostly), use """ for docstrings (not ''').
Bastien Montagne [Tue, 3 Jul 2012 09:02:41 +0000 (09:02 +0000)]
Style edit (mostly), use """ for docstrings (not ''').

Should also fix the broken py ops tips...

9 years agoCheck for nullpointers.
Jeroen Bakker [Tue, 3 Jul 2012 08:54:07 +0000 (08:54 +0000)]
Check for nullpointers.
The ID of group nodes are not always filled.

9 years agofix for memory leak in BKE_mesh_ensure_navmesh(), it would add 2 navmesh layers,...
Campbell Barton [Tue, 3 Jul 2012 08:16:14 +0000 (08:16 +0000)]
fix for memory leak in BKE_mesh_ensure_navmesh(), it would add 2 navmesh layers, once referencing the other.

9 years agofix for smoke writing uninitialized values to pointcache, not a big deal since they...
Campbell Barton [Tue, 3 Jul 2012 06:45:43 +0000 (06:45 +0000)]
fix for smoke writing uninitialized values to pointcache, not a big deal since they are ignored on reading.

9 years agoBugfix: Fix crashes with empty material slots
Joshua Leung [Tue, 3 Jul 2012 05:46:44 +0000 (05:46 +0000)]
Bugfix: Fix crashes with empty material slots

9 years agoFollowup for r.48515
Joshua Leung [Tue, 3 Jul 2012 05:30:19 +0000 (05:30 +0000)]
Followup for r.48515

* Removed material driver creation hack. However, the textures one remains, as
texture eval isn't ready yet
* Shuffled some code

9 years agoBugfix [#31834] Cycles materials cannot be manipulated using drivers
Joshua Leung [Tue, 3 Jul 2012 05:11:37 +0000 (05:11 +0000)]
Bugfix [#31834] Cycles materials cannot be manipulated using drivers

Until now, there was never any code for making drivers on materials get
recalculated when their dependencies were changed. However, since changing
material colors with drivers is something that is quite common, a workaround was
introduced to ensure that materials could still be driven (albeit with the
relevant drivers rooted at object level). This worked well enough so far with
traditional materials - though it was sometimes clunky and confusing for some
users - and would have been ok to tide us over until the depsgraph refactor.

The introduction of Cycles changed this, as it has in many other ways. Now that
people use Cycles to render, they'll need to drive the material colors through
the nested nodetree (and other things nested deeply within that). However, this
is much more difficult to generate hacks to create the relevant paths needed to
work around the problem.

== This Commit... ==
* Adds a recursive driver calculation step to the BKE_object_handle_update()
(which gets called whenever the depsgraph has finished tagging object datablocks
for updates), which goes through calculating the drivers attached to the object
(and the materials/nodetrees attached to that). This case gets handled everytime
the object is tagged as needing updates to its "data" (OB_RECALC_DATA)

* When building the depsgraph, every dependency that the drivers there have are
treated as if they were attached to instead. This should trick the
depsgraph into tagging OB_RECALC_DATA to force recalculation of drivers, at the
expense perhaps of modifiers getting recalculated again.

== Todo ==
* The old workarounds noted are still in place (will be commented out in the
next commit). This fix renders at least the material case redundant, although
the textures case still needs a bit more work.

* Check on whether similar hacks can be done for other datablock combinations

* So far, only simple test cases have been tested. There is probably some
performance penalty for heavy setups still (due to need to traverse down all
parts of material/node hierarchy to find things that need updates). If there
really is a problem here, we could try introducing some tags to limit this
traversal (which get added at depsgraph build time).  <--- USER TESTING

9 years agoBugfix [#31976] Bone Group Custom color set is not respected when creating an
Joshua Leung [Tue, 3 Jul 2012 01:15:03 +0000 (01:15 +0000)]
Bugfix [#31976] Bone Group Custom color set is not respected when creating an

Custom color set colors were not getting copied over when creating new action
groups. Instead, a "default set" was initialised for use instead.

9 years agoNice update to xgettext replacement, now finds 608 strings, think this covers all...
Bastien Montagne [Tue, 3 Jul 2012 01:11:59 +0000 (01:11 +0000)]
Nice update to xgettext replacement, now finds 608 strings, think this covers all cases...

Will run a complete test case tomorrow, regexes killed me this evening!

9 years agobasic events quit and resize window now work
Campbell Barton [Mon, 2 Jul 2012 23:01:04 +0000 (23:01 +0000)]
basic events quit and resize window now work
text draws again.

9 years agoTomato: enable color management by default for Windows
Sergey Sharybin [Mon, 2 Jul 2012 20:38:57 +0000 (20:38 +0000)]
Tomato: enable color management by default for Windows

This commit enables color management stuff when building on
Windows using MSVC 2008 compiler. This required some fixes
to both CMake and SCons configurations which were tested for
64bit target. Tests of 32bit target would be welcome.

Also solved compilation error caused by recently added anim
player. Not sure how to test this, but it shall  at least
compile on Windows now.

Didn't test MinGW compilation at all yet, could still be buggy.

9 years agoadd bmesh/python operator support for vector and matrix args.
Campbell Barton [Mon, 2 Jul 2012 20:28:43 +0000 (20:28 +0000)]
add bmesh/python operator support for vector and matrix args.

also rename BMO_OP_SLOT_PNT to BMO_OP_SLOT_PTR (matches RNA and sounds less like 'point')

9 years agoAdding (moving from bf-translation) the i18n python module. This will make it availab...
Bastien Montagne [Mon, 2 Jul 2012 19:51:06 +0000 (19:51 +0000)]
Adding (moving from bf-translation) the i18n python module. This will make it available for future "UI Translation" addon, and probably other UI-related tools as well.

* This is a somewhat reworked version of what is currently in bf-translation's trunk/po/tools, not yet fully functionnal (well, 95% is ;) ) nor fully tested. ultimately, it will replace it (being "svn-linked" in bf-translation).
* Added feature: more complete/strict tests (yet some work to be done here).
* Added spell checking (huge spellcheck commit incomming...).
* Trying to get rid of xgettext itself (should e.g. allow us to use #defines as contexts, among other things...). But currently captures less strings, work needed here too.

Please note this includes libfribidi.dll, as it is hard to find it for windows (unixes should have no problems here).

9 years agoenable playing with blenders internal anim player again.
Campbell Barton [Mon, 2 Jul 2012 17:15:48 +0000 (17:15 +0000)]
enable playing with blenders internal anim player again.

9 years agofix for crash getting GROUP_OT_objects_remove's props without a context (own fault)
Campbell Barton [Mon, 2 Jul 2012 17:12:41 +0000 (17:12 +0000)]
fix for crash getting GROUP_OT_objects_remove's props without a context (own fault)

9 years agoColor management: added support of color applying color transform on save
Sergey Sharybin [Mon, 2 Jul 2012 16:38:06 +0000 (16:38 +0000)]
Color management: added support of color applying color transform on save

This applies to files when saving from image editor and when saving
render result.

Currently only works for images which has got float buffer and saving
happens to byte formats (such as PNG, JPEG). Also supports applying
color management for preview jpegs when main buffer is saving into
OpenEXR file.

As default transform when saving from image editor would be the same
settings as image editor uses itself.

Defaults for color correction of rendered images would be default
display name, no view transform and default values for gamma and

9 years agoColor management refactor
Sergey Sharybin [Mon, 2 Jul 2012 16:37:40 +0000 (16:37 +0000)]
Color management refactor

- Move color management display settings into own structure like it's
  done for view settings.

  This is helpful from two sides:

  * It is planned to support display calibration settings which
    should be taken into account by color management stuff to
    add needed transformations to OCIO processor.
  * File saving should be able to make the same display
    transformations as it's done by window when displaying the image.
    Having own DNA and RNA structures for display device settings
    helps avoiding having duplicated code.

- Small refactor of cacheing functions which are now accepts
  cache-like versions of view and display settings. This structures
  used for cache are quite the same as DNA structures but they contains
  indices of view and display which avoids extra lookup for this

  This also helps having reasonable amount of variables passing
  to cache functions.

9 years agoFix for image texture node in cycles. The button draw function has to use the image...
Lukas Toenne [Mon, 2 Jul 2012 16:27:09 +0000 (16:27 +0000)]
Fix for image texture node in cycles. The button draw function has to use the image user pointer directly for property buttons, unlike the compositor image node which redefines image user properties on the node itself to ensure proper updates.

9 years agoLimit out of screen tiles to be scheduled.
Jeroen Bakker [Mon, 2 Jul 2012 15:26:47 +0000 (15:26 +0000)]
Limit out of screen tiles to be scheduled.

9 years agoSmoke Bugfix: Turbulence was removed.
Daniel Genrich [Mon, 2 Jul 2012 13:41:51 +0000 (13:41 +0000)]
Smoke Bugfix: Turbulence was removed.

9 years agoBugfix for wrong / bad vorticity forming weird banding on the y and z axis.
Daniel Genrich [Mon, 2 Jul 2012 12:55:23 +0000 (12:55 +0000)]
Bugfix for wrong / bad vorticity forming weird banding on the y and z axis.

Part of Blender Smoke Develeopment Milestone III.

9 years agoMerging r48470 through r48489 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 2 Jul 2012 11:29:55 +0000 (11:29 +0000)]
Merging r48470 through r48489 from trunk into soc-2011-tomato

9 years agoFix #31970: Crash, whith Sequencer Swap Data-Function
Sergey Sharybin [Mon, 2 Jul 2012 10:41:56 +0000 (10:41 +0000)]
Fix #31970: Crash, whith Sequencer Swap Data-Function

9 years agoValidate mesh selection stack in mesh_validate function
Sergey Sharybin [Mon, 2 Jul 2012 09:57:31 +0000 (09:57 +0000)]
Validate mesh selection stack in mesh_validate function

Related on #31944: Blender crashes on switching to mesh edit mode

9 years agocode cleanup
Campbell Barton [Mon, 2 Jul 2012 09:07:34 +0000 (09:07 +0000)]
code cleanup

9 years agocode cleanup
Campbell Barton [Mon, 2 Jul 2012 08:37:59 +0000 (08:37 +0000)]
code cleanup

9 years agoFix #31961: Grease Pencil in VSE don't save the data
Sergey Sharybin [Mon, 2 Jul 2012 08:30:29 +0000 (08:30 +0000)]
Fix #31961: Grease Pencil in VSE don't save the data

Issue was caused by linking to grease pencil from direct_link* function
which lead to NULL GP data because it's being read a way later.

Link to GP data in lib_link* instead.

9 years agoupdate playanim for 2.6x, playback works, events don't.
Campbell Barton [Mon, 2 Jul 2012 08:20:40 +0000 (08:20 +0000)]
update playanim for 2.6x, playback works, events don't.

9 years agostyle cleanup
Campbell Barton [Mon, 2 Jul 2012 08:12:34 +0000 (08:12 +0000)]
style cleanup

9 years agoadd back playanim from 2.4x (not functional, #if 0'd)
Campbell Barton [Mon, 2 Jul 2012 08:10:05 +0000 (08:10 +0000)]
add back playanim from 2.4x (not functional, #if 0'd)

9 years agoFix related on #31984: Multires Displacement Bake creates ripples for each subidived...
Sergey Sharybin [Mon, 2 Jul 2012 07:40:25 +0000 (07:40 +0000)]
Fix related on #31984: Multires Displacement Bake creates ripples for each subidived face

Skip applying subdivisions in cases when low resolution mesh is disabled
and baking happens from higher level to higher level/

9 years agocode cleanup: minor edits
Campbell Barton [Sun, 1 Jul 2012 22:19:19 +0000 (22:19 +0000)]
code cleanup: minor edits

9 years agoStyle cleanup, mo functional changes
Sergey Sharybin [Sun, 1 Jul 2012 20:38:07 +0000 (20:38 +0000)]
Style cleanup, mo functional changes

9 years agoColor management: added view transforms form nuke-default and spi-vfx
Sergey Sharybin [Sun, 1 Jul 2012 20:12:38 +0000 (20:12 +0000)]
Color management: added view transforms form nuke-default and spi-vfx

- Added some extra view transforms to play with. It's not absolutely
  correct in terms this views were changed to use aces space as input.
  This gives exactly the same result as if using stand-alone spi-vfx
  and nuke-default configuration, but for real merge of this configs
  it'll be needed to add extra input spaces and transformations between

- Replaced hard-coded aces input color space with default ocio
  linear space which makes it easier to play with different

- Fixed SCons installation of color management configuration which
  used to skip copying LUTs when there was "luts" folder in install

- Print whether OCIO was enabled when building with CMake.
  Could be helpful due to OCIO is being automatically disabled
  if needed libraries are missed.

9 years agoprintf was being done on uninitialized string.
Campbell Barton [Sun, 1 Jul 2012 15:59:12 +0000 (15:59 +0000)]
printf was being done on uninitialized string.

9 years agosvn merge ^/trunk/blender -r48415:48469
Campbell Barton [Sun, 1 Jul 2012 15:39:02 +0000 (15:39 +0000)]
svn merge ^/trunk/blender -r48415:48469

9 years agodon't disable cycles when OIIO isnt found, instead throw an error, annoying when...
Campbell Barton [Sun, 1 Jul 2012 15:26:25 +0000 (15:26 +0000)]
don't disable cycles when OIIO isnt found, instead throw an error, annoying when full build is done and later find cycles isn't on.

9 years agoColor management: fixed crash when freeing context for inactive viewer node
Sergey Sharybin [Sun, 1 Jul 2012 14:54:05 +0000 (14:54 +0000)]
Color management: fixed crash when freeing context for inactive viewer node

9 years agoanother fix for error in the view raycast template
Campbell Barton [Sun, 1 Jul 2012 13:57:32 +0000 (13:57 +0000)]
another fix for error in the view raycast template

9 years agofix for 2 errors in the template
Campbell Barton [Sun, 1 Jul 2012 11:05:11 +0000 (11:05 +0000)]
fix for 2 errors in the template

9 years agostyle cleanup
Campbell Barton [Sun, 1 Jul 2012 09:54:44 +0000 (09:54 +0000)]
style cleanup

9 years agopython template for doing mouse ray casts to pick objects in the 3d viewport.
Campbell Barton [Sun, 1 Jul 2012 08:46:02 +0000 (08:46 +0000)]
python template for doing mouse ray casts to pick objects in the 3d viewport.

9 years agonew function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
Campbell Barton [Sun, 1 Jul 2012 08:06:01 +0000 (08:06 +0000)]
new function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
useful for doing ray casts from the view.

9 years agostyle cleanup: remove '.' from docstring endings and use quotes for descriptions.
Campbell Barton [Sun, 1 Jul 2012 07:55:44 +0000 (07:55 +0000)]
style cleanup: remove '.' from docstring endings and use quotes for descriptions.

9 years agoA little bit of cleanup for the new DXT code:
Mitchell Stokes [Sun, 1 Jul 2012 02:47:34 +0000 (02:47 +0000)]
A little bit of cleanup for the new DXT code:
  * Using TRUE/FALSE instead of 1/0
  * Checking to make sure GL_EXT_texture_compression_s3tc is supported
  * Removing some debug error checking

9 years agostyle cleanup: comments
Campbell Barton [Sat, 30 Jun 2012 22:49:33 +0000 (22:49 +0000)]
style cleanup: comments

9 years agoScons:
Thomas Dinges [Sat, 30 Jun 2012 22:44:36 +0000 (22:44 +0000)]
* WITH_BF_COMPOSITOR option, to disable tile compositor compilation.
* Removed unused SCons file.

9 years agofix for own error renaming bmesh operator dupe
Campbell Barton [Sat, 30 Jun 2012 21:19:12 +0000 (21:19 +0000)]
fix  for own error renaming bmesh operator dupe

9 years agoCycles / Boost:
Thomas Dinges [Sat, 30 Jun 2012 18:24:28 +0000 (18:24 +0000)]
Cycles / Boost:
* Windows (msvc 2008) is now using Boost 1.49 - Updated cmake file.

9 years agoCycles / Boost:
Thomas Dinges [Sat, 30 Jun 2012 18:20:14 +0000 (18:20 +0000)]
Cycles / Boost:
* Windows (msvc 2008) is now using Boost 1.49

9 years agocode cleanup: some vars were assigned when not needed
Campbell Barton [Sat, 30 Jun 2012 17:54:55 +0000 (17:54 +0000)]
code cleanup: some vars were assigned when not needed

9 years agofix for some build warnings.
Campbell Barton [Sat, 30 Jun 2012 16:56:23 +0000 (16:56 +0000)]
fix for some build warnings.

9 years agorename bmesh ops since they are exposed in an api now.
Campbell Barton [Sat, 30 Jun 2012 15:27:13 +0000 (15:27 +0000)]
rename bmesh ops since they are exposed in an api now.

9 years agoCode style cleanup and prevent crashes when OCIO configuration file is not found
Sergey Sharybin [Sat, 30 Jun 2012 14:53:58 +0000 (14:53 +0000)]
Code style cleanup and prevent crashes when OCIO configuration file is not found

9 years agodisable opencl when compo is disabled.
Campbell Barton [Sat, 30 Jun 2012 14:28:45 +0000 (14:28 +0000)]
disable opencl when compo is disabled.

9 years agothe compositor optional for cmake: WITH_COMPOSITOR
Campbell Barton [Sat, 30 Jun 2012 14:14:22 +0000 (14:14 +0000)]
the compositor optional for cmake: WITH_COMPOSITOR

9 years agoadd support for passing lists of verts/edges/faces to bmesh operators
Campbell Barton [Sat, 30 Jun 2012 12:58:04 +0000 (12:58 +0000)]
add support for passing lists of verts/edges/faces to bmesh operators

9 years agoColor management: remove unused baked LUTS
Sergey Sharybin [Sat, 30 Jun 2012 12:40:02 +0000 (12:40 +0000)]
Color management: remove unused baked LUTS

9 years agoColor management cleanup and improvements
Sergey Sharybin [Sat, 30 Jun 2012 12:37:41 +0000 (12:37 +0000)]
Color management cleanup and improvements

- De-duplicate code used by color management panel drawing,
  moved this panel to utility file in bl_ui

- Added support of per-window color management control
  which means view transform. exposure and gamma could be
  set per window and all spaces would use this settings.

  This is default behavior for older files now.

- Added support of color management display of movie clips
  in clip editor.

  Supported both texture buffer and fallback draw methods.

- Fixed default values for exposure and gamma

9 years agoColor management refactoiring and some extra options
Sergey Sharybin [Sat, 30 Jun 2012 12:37:16 +0000 (12:37 +0000)]
Color management refactoiring and some extra options

- Move space-being settings (such as view transform) into own
  DNA and RNA structure to avoid code duplication in some areas
  and save some arguments on display buffer acquiring function.

  Also added some utility functions to BKE to manipulate this

- Replace static sized color managed buffer flags array with
  dynamically sized array which matches actual number of displays.

  Probably this flags better be transfposed so it'll support
  any number of view transforms and 32 displays (currently it's
  other way around). it's runtime flags only, so would be simple
  to change any time.

- Added support of configurable exposure and gamma.

  Changing this settings wouldn't generate new item in cache,
  it'll affect on buffer with the same color spaces conversion.

  It'll also run full color transform from scratch on every run,
  this could be changes in a way that it'll re-use color managed
  buffer, but from quick glance it doesn't give really noticeable

  Currently this settings are stored as pointer in ImBuf structure
  itself. Probably it make sense removing them from ImBuf and make
  moviecache be able to store some kind of tags associated with
  cached ImBuf.

9 years agoColor management: fixes for view transform not being properly handled
Sergey Sharybin [Sat, 30 Jun 2012 12:36:53 +0000 (12:36 +0000)]
Color management: fixes for view transform not being properly handled
in space node create and duplicate callbacks.

9 years agoColor management: multithreaded transformation apply
Sergey Sharybin [Sat, 30 Jun 2012 12:36:41 +0000 (12:36 +0000)]
Color management: multithreaded transformation apply

Since RRT can't be baked into 3D LUT it's the only way to increase
speed of transformation and make image / clip loading in acceptable

9 years agoColor management fixes
Sergey Sharybin [Sat, 30 Jun 2012 12:36:31 +0000 (12:36 +0000)]
Color management fixes

- Fixed memory leak caused by incorrect handling of cached buffer
  in cases if it was marked as dirty
- Do not use 3D LUT for RRT -- they can't be easily baked into 3D
  LUT without being clamped to 0..1 space
- Make sure blender compiles without OCIO support