8 years agostyle cleanup
Campbell Barton [Wed, 24 Oct 2012 09:07:54 +0000 (09:07 +0000)]
style cleanup

8 years agoUpdated crop image setting to make every pixel outside the crop black as
Jeroen Bakker [Wed, 24 Oct 2012 08:59:36 +0000 (08:59 +0000)]
Updated crop image setting to make every pixel outside the crop black as
it is expected.

Fix for [#32955] Compositer "Crop" node option "Crop Image Size" doesn't
really crop the input image

8 years agoAdding a pixelate node.
Jeroen Bakker [Wed, 24 Oct 2012 08:36:10 +0000 (08:36 +0000)]
Adding a pixelate node.

This makes it possible to create pixelized scale in the Tile compositor.

Just append the node in front of a scale node or where you want the pixelization to take place.

There were some bugs on this subject, but they used the work around to add a blur size of 0 in the place where they need the pixelization.

8 years agouse smaller type for kdopbvh - this change was made as a size optimization, and I...
Campbell Barton [Wed, 24 Oct 2012 08:16:49 +0000 (08:16 +0000)]
use smaller type for kdopbvh - this change was made as a size optimization, and I moved back to ints since there were many int comparisons.

now define axis_t and an unsugned char.

8 years agoadd CDDM_from_bmesh(), avoids using BMEditMesh in modifiers.
Campbell Barton [Wed, 24 Oct 2012 07:24:11 +0000 (07:24 +0000)]
add CDDM_from_bmesh(), avoids using BMEditMesh in modifiers.

8 years agocode cleanup: move doxy comments into the C files.
Campbell Barton [Wed, 24 Oct 2012 06:08:28 +0000 (06:08 +0000)]
code cleanup: move doxy comments into the C files.

8 years agostyle cleanup: modifier structs
Campbell Barton [Wed, 24 Oct 2012 05:45:54 +0000 (05:45 +0000)]
style cleanup: modifier structs

8 years agoenable decimate modifier for curves.
Campbell Barton [Wed, 24 Oct 2012 05:44:27 +0000 (05:44 +0000)]
enable decimate modifier for curves.

8 years agouse int's for kdopbvh start/stop axis since there were loops comparing with other...
Campbell Barton [Wed, 24 Oct 2012 05:08:33 +0000 (05:08 +0000)]
use int's for kdopbvh start/stop axis since there were loops comparing with other ints.

8 years agouse min_ii/max_ii over MIN2 MAX2
Campbell Barton [Wed, 24 Oct 2012 05:06:40 +0000 (05:06 +0000)]
use min_ii/max_ii over MIN2 MAX2

8 years agofix [#32855] Obj im and export and the file path and name
Campbell Barton [Wed, 24 Oct 2012 04:29:35 +0000 (04:29 +0000)]
fix [#32855] Obj im and export and the file path and name

file selector now uses previously used settings for operators rather then over riding them with the currently open blend file.

8 years agocomment R_SEQ_GL_REND flag, opengl render now does gl previews.
Campbell Barton [Wed, 24 Oct 2012 03:37:32 +0000 (03:37 +0000)]
comment R_SEQ_GL_REND flag, opengl render now does gl previews.

8 years ago- enable GPU mipmap generation by default (Sergey and I wanted to change this before...
Campbell Barton [Wed, 24 Oct 2012 03:35:43 +0000 (03:35 +0000)]
- enable GPU mipmap generation by default (Sergey and I wanted to change this before but it was too close to release).
- set opengl-solid display for the sequencer preview.

8 years agoenable rendering from the sequencer again. this was working since 2.4x and shouldn...
Campbell Barton [Wed, 24 Oct 2012 03:27:11 +0000 (03:27 +0000)]
enable rendering from the sequencer again. this was working since 2.4x and shouldn't have been disabled.

8 years agorename axis_primary_v3() to max_axis_v3() to avoid confusion with axis_dominant_v3...
Campbell Barton [Wed, 24 Oct 2012 02:25:00 +0000 (02:25 +0000)]
rename axis_primary_v3() to max_axis_v3() to avoid confusion with axis_dominant_v3(). also add min_axis_v3().

8 years agoFinal fix for [#31017] Particles not generated on Grid Distribution
Janne Karhu [Wed, 24 Oct 2012 01:43:59 +0000 (01:43 +0000)]
Final fix for [#31017] Particles not generated on Grid Distribution
* In some cases a quad would be intersected twice so particles near this double-intersection point were not generated in grid distribution due to being marked as outside the surface.

8 years agoPartially replace convex hull implementation with Bullet implementation
Nicholas Bishop [Tue, 23 Oct 2012 23:54:15 +0000 (23:54 +0000)]
Partially replace convex hull implementation with Bullet implementation

* Bullet's convex hull implementation is significantly more robust
  than the one I implemented, as well as being faster.

* This fixes bug [#32864] "Convex Hull fails in some cases."

  That bug, and others like it, relate to the poor handling of
  co-planar surfaces in the input. Pretty much any model that is
  simple-subdivided a few times gave very bad results before, Bullet's
  implementation handles this much better.

* In order to ensure a smooth transition, the Bullet output is
  translated into the existing HullTriangle hash structure. This makes
  it easy to ensure that the existing slot output stays the same; the
  interactions between the slots are somewhat complicated, detangling
  is a TODO.

* Reviewed by Brecht:

8 years agoPatch Bullet to make it's convex hull implementation usable in BMesh
Nicholas Bishop [Tue, 23 Oct 2012 23:54:02 +0000 (23:54 +0000)]
Patch Bullet to make it's convex hull implementation usable in BMesh

* Add access to the original indices for vertices

* Add a very simple C API for convex hull

* Add this patch to the patches folder and update readme.txt

8 years agoSeparate languages file generation code into its own script (much better this way...
Bastien Montagne [Tue, 23 Oct 2012 20:39:26 +0000 (20:39 +0000)]
Separate languages file generation code into its own script (much better this way, so that we can regenerate that file without update whole trunk!).

Also add es_ES (Spanish from Spain) language, as we have a po for it!

8 years agoFix #2 for [#32954] Crash when activating 'International Fonts' in User Preferences
Bastien Montagne [Tue, 23 Oct 2012 19:39:32 +0000 (19:39 +0000)]
Fix #2 for [#32954] Crash when activating 'International Fonts' in User Preferences

I though allocating zero-sized mem would return a NULL pointer, but it looks like it does not... :/ Anyway, Blender should no more crash in case languages file is missing, will just use default (system) locale...

8 years agoFix #27834: AAO color bleeding failure case with raytraced shadows.
Brecht Van Lommel [Tue, 23 Oct 2012 19:10:21 +0000 (19:10 +0000)]
Fix #27834: AAO color bleeding failure case with raytraced shadows.

8 years agoFix knife sensitivity issue (#30637): better calculation of how
Howard Trickey [Tue, 23 Oct 2012 18:17:51 +0000 (18:17 +0000)]
Fix knife sensitivity issue (#30637): better calculation of how
to clamp distances in ortho mode.

8 years agoFix #32954: Crash when activating 'International Fonts' in User Preferences
Sergey Sharybin [Tue, 23 Oct 2012 17:58:46 +0000 (17:58 +0000)]
Fix #32954: Crash when activating 'International Fonts' in User Preferences

8 years agoCycles: update buffers only once in a while when progressive refine is used
Sergey Sharybin [Tue, 23 Oct 2012 17:24:23 +0000 (17:24 +0000)]
Cycles: update buffers only once in a while when progressive refine is used

It'll mimic the same behavior as regular tile rendering update and it should
give pretty noticeable boost on simpler scenes.

8 years agoSolve unresolved call of min(int&, unsigned int&)
Sergey Sharybin [Tue, 23 Oct 2012 16:46:13 +0000 (16:46 +0000)]
Solve unresolved call of min(int&, unsigned int&)

Alternative could be using unsigned ints for min/max chunks.

8 years agoFix #32951: Progressive refine crashing Blender when used with multiple cuda
Sergey Sharybin [Tue, 23 Oct 2012 16:36:53 +0000 (16:36 +0000)]
Fix #32951: Progressive refine crashing Blender when used with multiple cuda

Issue was caused by offline rendering could have been allocated the same tile
to different devices and in this case buffers would become invalid.

Made it more clear in the code, so now it's  flag for tile manager to indicate
whether tiles should always be allocated for the same device or not.

Also cleaned a way how tile index for progressive refine is calculating,
which is now avoids tricky computation based on tile coordinate and it's

8 years agoreduce float comparisons for keying operation and despill.
Campbell Barton [Tue, 23 Oct 2012 16:32:39 +0000 (16:32 +0000)]
reduce float comparisons for keying operation and despill.

8 years agouse min_ max_ functions in more places.
Campbell Barton [Tue, 23 Oct 2012 16:21:55 +0000 (16:21 +0000)]
use min_ max_ functions in more places.
also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.

8 years agoFix #32837: DDS images flipped in viewport compared to render. This happened
Brecht Van Lommel [Tue, 23 Oct 2012 15:46:44 +0000 (15:46 +0000)]
Fix #32837: DDS images flipped in viewport compared to render. This happened
after adding compressed DDS texture loading.

DDS images can be flipped compared to the Blender standard, however we do not
unflip them because we also don't flip compressed textures. If we would flip
those we'd need to uncompress, flip and recompress them, and so losing the
speed benefit that you get from using them. Users are expected to save DDS
image in OpenGL compatible format.

8 years agoskip hidden datablocks when switching screens.
Campbell Barton [Tue, 23 Oct 2012 15:30:41 +0000 (15:30 +0000)]
skip hidden datablocks when switching screens.

8 years agocomment quick cache RNA and quiet compiler werning.
Campbell Barton [Tue, 23 Oct 2012 15:07:09 +0000 (15:07 +0000)]
comment quick cache RNA and quiet compiler werning.

8 years agoRelated to previous commit I did:
Ton Roosendaal [Tue, 23 Oct 2012 15:01:41 +0000 (15:01 +0000)]
Related to previous commit I did:

Removed checks for PTCACHE_QUICK_CACHE for exception handling. This to ensure normal
cache works as if old PTCACHE_QUICK_CACHE wasn't set.

Thanks Campbell for pointing at this!

8 years agoFix #32867: normal map baking issue with flat shaded faces since bmesh. Also
Brecht Van Lommel [Tue, 23 Oct 2012 14:57:49 +0000 (14:57 +0000)]
Fix #32867: normal map baking issue with flat shaded faces since bmesh. Also
removed the old unused normal map tangent computation code.

8 years agoFix #30801: cycles rendering issue with missing particle instances in a dupligroup.
Brecht Van Lommel [Tue, 23 Oct 2012 14:57:33 +0000 (14:57 +0000)]
Fix #30801: cycles rendering issue with missing particle instances in a dupligroup.

8 years agoUse better epsilon for line intersection, fixes bug where
Howard Trickey [Tue, 23 Oct 2012 14:57:25 +0000 (14:57 +0000)]
Use better epsilon for line intersection, fixes bug where
missed some hits on very small scale meshes, e.g., bug #31143.

8 years agoBugfix 30974
Ton Roosendaal [Tue, 23 Oct 2012 14:07:32 +0000 (14:07 +0000)]
Bugfix 30974

- Disabled "Quick Cache" option. It was causing ridiculous updates
  on the entire animation system for start-end frame on every user
  event causing changes here (like during transform). Worst was that you
  couldn't transform animated objects for that reason either.

  Most of the code is still there, waiting for a moment to revise it...

- Constraint "Follow Track" (marker) wasn't using inverse matrix code
  in transform, making it wacko to use (wrong pivot, crazyspace)

8 years agocode cleanup: give rng functions BLI prefix.
Campbell Barton [Tue, 23 Oct 2012 13:50:44 +0000 (13:50 +0000)]
code cleanup: give rng functions BLI prefix.

8 years agodebug output: stop printing event handlers for mouse moves of mouse inbetween events.
Campbell Barton [Tue, 23 Oct 2012 13:29:56 +0000 (13:29 +0000)]
debug output: stop printing event handlers for mouse moves of mouse inbetween events.

8 years agorename api functions...
Campbell Barton [Tue, 23 Oct 2012 13:28:22 +0000 (13:28 +0000)]
rename api functions...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii

8 years agoFix for direct_link of local ID data blocks (node trees in material/lamp/world/scene...
Lukas Toenne [Tue, 23 Oct 2012 12:38:47 +0000 (12:38 +0000)]
Fix for direct_link of local ID data blocks (node trees in material/lamp/world/scene/texture). These data blocks also need to link the id properties group in their ID base, otherwise custom properties stored in such local node trees will lead to dangling pointers on file load.

8 years agoFix #32941: Sequencer Preview shows texture which is apart of the window.
Sergey Sharybin [Tue, 23 Oct 2012 12:25:08 +0000 (12:25 +0000)]
Fix #32941: Sequencer Preview shows texture which is apart of the window.

Issue was caused by buffer shadows were binding buffer after offscreen buffers
was bind which lead to some unpredictable results.

Made it so ED_view3d_draw_offscreen wouldn't bind any buffers and for proper
shadows ED_view3d_draw_offscreen_init should be manually be called before
drawing to an offscreen.

This should also make open gl render with AA enabled a bit faster.

Also fixed missing sequencer cache invalidation when open gl render type is

Material and Rendered modes are still a TODO for sequencer.

8 years agocode cleanup: remove $Id's that crept back in, also osl style edits
Campbell Barton [Tue, 23 Oct 2012 11:47:23 +0000 (11:47 +0000)]
code cleanup: remove $Id's that crept back in, also osl style edits

8 years agoCorrection to recent fix for shader nodes -- image could be not loaded yet
Sergey Sharybin [Tue, 23 Oct 2012 11:44:47 +0000 (11:44 +0000)]
Correction to recent fix for shader nodes -- image could be not loaded yet
when tree is being executed. This could lead to nor initialized color space
for the image.

Solved by insuring image buffer is loaded before checking for whether color
conversion is needed.

8 years agoSizeerror 8 fix for DecimateModifierData
Sergey Sharybin [Tue, 23 Oct 2012 11:10:40 +0000 (11:10 +0000)]
Sizeerror 8 fix for DecimateModifierData

8 years agoFix #32943: sculpt mode draw crash with VBO and flat shaded, hidden faces.
Brecht Van Lommel [Tue, 23 Oct 2012 11:07:05 +0000 (11:07 +0000)]
Fix #32943: sculpt mode draw crash with VBO and flat shaded, hidden faces.

8 years agofix for crash using an uninitialized pointer when fcurves reference missing collectio...
Campbell Barton [Tue, 23 Oct 2012 11:03:52 +0000 (11:03 +0000)]
fix for crash using an uninitialized pointer when fcurves reference missing collections (removing animated shape keys could crash).

8 years agoDisplay buffer should be marked as invalid when setting pixels from python
Sergey Sharybin [Tue, 23 Oct 2012 09:59:04 +0000 (09:59 +0000)]
Display buffer should be marked as invalid when setting pixels from python

8 years agoFix for [#28927] Z-Transp disables Material Pass Index
Jeroen Bakker [Tue, 23 Oct 2012 07:20:37 +0000 (07:20 +0000)]
Fix for [#28927] Z-Transp disables Material Pass Index

8 years agofix for issues in new decimator
Campbell Barton [Tue, 23 Oct 2012 06:37:58 +0000 (06:37 +0000)]
fix for issues in new decimator
- when an edge exists across a quad, dont attempt to triangulate it. (such a case isn't so common anyway)
- silly mistake when checking if anything needed to be done in the modifier, percent was being checked for 1.0 even when not used.

8 years agoadd option to planar decimator to collapse all verts that define face boundries ...
Campbell Barton [Tue, 23 Oct 2012 06:13:56 +0000 (06:13 +0000)]
add option to planar decimator to collapse all verts that define face boundries (verts that 2 faces share and have 2 edge users).

avoids ugly stepping between faces when applying on curves surfaces. (but less useful for architectural style models)

8 years agofix for edge collapse decimator re-combining triangles that make degenerate quads.
Campbell Barton [Tue, 23 Oct 2012 05:48:21 +0000 (05:48 +0000)]
fix for edge collapse decimator re-combining triangles that make degenerate quads.

8 years agoadd option for decimate-collapse to keep triangulated geometry (normally quads stay...
Campbell Barton [Tue, 23 Oct 2012 05:30:10 +0000 (05:30 +0000)]
add option for decimate-collapse to keep triangulated geometry (normally quads stay as quads when not collapsed).

8 years agoadd limited dissolve as a decimation type to the decimate modifier.
Campbell Barton [Tue, 23 Oct 2012 05:20:02 +0000 (05:20 +0000)]
add limited dissolve as a decimation type to the decimate modifier.

8 years agoadd un-subdivude as an optional method for the decimate modifier, gives more even...
Campbell Barton [Tue, 23 Oct 2012 04:26:39 +0000 (04:26 +0000)]
add un-subdivude as an optional method for the decimate modifier, gives more even geometry & nicer results in some cases.

8 years agocode cleanup: quiet warning
Campbell Barton [Tue, 23 Oct 2012 03:45:35 +0000 (03:45 +0000)]
code cleanup: quiet warning

8 years agostyle cleanup: also rename bmesh_decimate.c --> bmesh_decimate_collapse.c
Campbell Barton [Tue, 23 Oct 2012 03:38:26 +0000 (03:38 +0000)]
style cleanup: also rename bmesh_decimate.c --> bmesh_decimate_collapse.c

8 years agofix: drivers on materials and texture don't update when rendering animation
Andrea Weikert [Mon, 22 Oct 2012 19:45:16 +0000 (19:45 +0000)]
fix: drivers on materials and texture don't update when rendering animation

* Added additional tag_main_idcode in BKE_scene_update_for_newframe similar to what was done previously in BKE_scene_update_tagged to fix #32017 (unlimited recursion issue for material updates) by Joshua Leung
* So issue wasn't the dependencies, but the material was already tagged (from previous drawing), so wouldn't be updated each frame.

8 years agoFix #32937: cycles missing update when changing scene simplify settings. Note that
Brecht Van Lommel [Mon, 22 Oct 2012 19:00:15 +0000 (19:00 +0000)]
Fix #32937: cycles missing update when changing scene simplify settings. Note that
DAG_id_tag_update used to be slow to call, but now it just tags and flushes delayed,
so it can be called for every object.

8 years agoFix related to #32933: UV unwrap had 0.0 margin by default in .blend files,
Brecht Van Lommel [Mon, 22 Oct 2012 18:48:50 +0000 (18:48 +0000)]
Fix related to #32933: UV unwrap had 0.0 margin by default in .blend files,
change it now to 0.001 in existing files.

8 years agoFix build when WITH_INTERNATIONAL is disabled.
Brecht Van Lommel [Mon, 22 Oct 2012 18:19:55 +0000 (18:19 +0000)]
Fix build when WITH_INTERNATIONAL is disabled.

8 years agoTemporary disable sm_13 for 32bit buildbot -- it requires more than 4GB of memory
Sergey Sharybin [Mon, 22 Oct 2012 18:10:15 +0000 (18:10 +0000)]
Temporary disable sm_13 for 32bit buildbot -- it requires more than 4GB of memory
to compile, which for sure can not be allocated on 32bit platform

8 years agoRNA C++ API improvements
Sergey Sharybin [Mon, 22 Oct 2012 17:34:16 +0000 (17:34 +0000)]
RNA C++ API improvements

Added support of such features, as:

- Ability to call RNA functions using C++ classes
  For example RenderEngine.tag_update

- Property setters (for scalars and arrays)
  Used Qt/jQuery-like getters/setters style, meaning Class.prop() is a getter,
  Class.prop(value) is a setter.

Still to come:

Collection functions are not currently registering inside a property
Meaning BlendData.meshes wouldn't be a subclass of BlendDataMeshes result
you'll need to explicitly create BlendDataMeshes for now instead of doing

8 years agoFix #32930: texture colors in material nodes (blender internal) are brighter than...
Sergey Sharybin [Mon, 22 Oct 2012 17:34:06 +0000 (17:34 +0000)]
Fix #32930: texture colors in material nodes (blender internal) are brighter than normal

There was a missing byte buffer linearization for shader nodes.

Also fixed incorrect image input color space refresh when image is packed.

8 years agoFix #32522: Object's diffuse color not showing in Sculpt Mode
Sergey Sharybin [Mon, 22 Oct 2012 17:33:53 +0000 (17:33 +0000)]
Fix #32522: Object's diffuse color not showing in Sculpt Mode

Added option to display object's diffuse color multiplied by sculpting
mask. This option could be found in Options panel of toolshelf when in
sculpting mode.

Thanks to Nicholas and Brecht for reviewing the patch!

8 years agodecimator - small optimization on check for degenerate edges.
Campbell Barton [Mon, 22 Oct 2012 17:33:11 +0000 (17:33 +0000)]
decimator - small optimization on check for degenerate edges.

8 years agocode cleanup: check defgroup_name_index() return value != -1, rather then checking...
Campbell Barton [Mon, 22 Oct 2012 17:19:05 +0000 (17:19 +0000)]
code cleanup: check defgroup_name_index() return value != -1, rather then checking >= 0.

also remove unused bmesh decimator code.

8 years agoApparently msvc doesn't have isnan.
Sergey Sharybin [Mon, 22 Oct 2012 16:12:27 +0000 (16:12 +0000)]
Apparently msvc doesn't have isnan.

8 years agoadd vertex group option to decimate modifier, handy if you want to pin some parts...
Campbell Barton [Mon, 22 Oct 2012 15:39:06 +0000 (15:39 +0000)]
add vertex group option to decimate modifier, handy if you want to pin some parts of the geometry.

8 years agoBugfix #30378
Ton Roosendaal [Mon, 22 Oct 2012 14:49:37 +0000 (14:49 +0000)]
Bugfix #30378

Full Sample Antialiasing render gave fireflies with halos - especially on edges of polygons.
Reason was FSA exception case in code, using uninitialized color array.

Probably these fireflies were hunting us already for many many years.

8 years agoFix for inline functions of new cineon library
Sergey Sharybin [Mon, 22 Oct 2012 14:28:43 +0000 (14:28 +0000)]
Fix for inline functions of new cineon library

8 years agoUpdate of the tools for the new "dynamic" i18n menu, to generate the languages file...
Bastien Montagne [Mon, 22 Oct 2012 14:17:30 +0000 (14:17 +0000)]
Update of the tools for the new "dynamic" i18n menu, to generate the languages file into locale dir...

8 years agoFix related to #32929: update list of available devices for cycles rendering
Brecht Van Lommel [Mon, 22 Oct 2012 14:04:44 +0000 (14:04 +0000)]
Fix related to #32929: update list of available devices for cycles rendering
while Blender is running, not only on load. It might help a case when Blender
is started before the CUDA driver is fully initialized.

8 years agoNew "dynamic" i18n menu.
Bastien Montagne [Mon, 22 Oct 2012 14:04:40 +0000 (14:04 +0000)]
New "dynamic" i18n menu.

Now both UI translation menu (in userprefs) and isocodes are defined in a text file (release/datafiles/locale/languages), parsed at lunchtime. This way:
* No more need to edit Blender code each time we want to add an new language or reorganize the existing menu;
* Translators can easily add a new language for testing, by just editing the text file, so no more need to ask to change Blender code and wait for a new build to see your new translation work in Blender!

Remaining todo:
* Commit i18n py tools
* Update wiki doc!

8 years agoSome more fixes for cineon
Sergey Sharybin [Mon, 22 Oct 2012 14:01:16 +0000 (14:01 +0000)]
Some more fixes for cineon

8 years agoCompilation fix for windows platform
Sergey Sharybin [Mon, 22 Oct 2012 13:52:56 +0000 (13:52 +0000)]
Compilation fix for windows platform

8 years agoCompilation error fix for scons caused by recent dpx commit
Sergey Sharybin [Mon, 22 Oct 2012 13:13:00 +0000 (13:13 +0000)]
Compilation error fix for scons caused by recent dpx commit

8 years agostyle cleanup: use more const's in BLI_heap & dpx/cineon style cleanup
Campbell Barton [Mon, 22 Oct 2012 13:00:02 +0000 (13:00 +0000)]
style cleanup: use more const's in BLI_heap & dpx/cineon style cleanup

8 years agoPatch #27397: Improved DPX/Cineon code
Sergey Sharybin [Mon, 22 Oct 2012 12:49:00 +0000 (12:49 +0000)]
Patch #27397: Improved DPX/Cineon code

Patch by Julien Enche, thanks!

From the patch comment:

It allows Blender to load:
- 1, 8, 10, 12 and 16 bits files. For 10 and 12 bits files, packed or
  filled type A/B are supported.
- RGB, Log, Luma and YCbCr colorspaces.
- Big and little endian storage.
- Multi-elements (planar) storage.

It allows Blender to save :
- 8, 10, 12 and 16 bits file. For 10 and 12 bits files, the most used
  type A padding is used.
- RGB and Log colorspaces (Cineon can only be saved in Log colorspace).
  For Log colorspace, the common default values are used for gamma,
  reference black and reference white (respectively 1.7, 95 and 685 for
  10 bits files).
- Saved DPX/Cineon files now match the viewer.

Some files won't load (mostly because I haven't seen any of them):
- Compressed files
- 32 and 64 bits files
- Image orientation information are not taken in account. Here too,
  I haven't seen any file that was not top-bottom/left-right oriented.

8 years agoFix #32947: cycles color to float conversion issue after integer socket commit.
Brecht Van Lommel [Mon, 22 Oct 2012 12:22:15 +0000 (12:22 +0000)]
Fix #32947: cycles color to float conversion issue after integer socket commit.

8 years agostyle cleanup
Campbell Barton [Mon, 22 Oct 2012 08:15:51 +0000 (08:15 +0000)]
style cleanup

8 years agofix for own error in BLI_heap_new_ex() when zero size is passed.
Campbell Barton [Mon, 22 Oct 2012 07:57:21 +0000 (07:57 +0000)]
fix for own error in BLI_heap_new_ex() when zero size is passed.

8 years agoSupport for connected style proportional editing in UV editor. Now when connected...
Antony Riakiotakis [Mon, 22 Oct 2012 07:29:38 +0000 (07:29 +0000)]
Support for connected style proportional editing in UV editor. Now when connected proportional editing is on, only UVs on the same island will be proportionally moved. The implementation simply rejects UVs whose island does not belong to islands of selected vertices and decrements the total count of transform elements appropriately. Memory usage could be better but it would require some more preprocessing.

8 years agoFix [#32884] select by group not working when active object in more than one group.
Bastien Montagne [Mon, 22 Oct 2012 06:53:51 +0000 (06:53 +0000)]
Fix [#32884] select by group not working when active object in more than one group.

Would have liked to rework this whole area, but it's kind of tricky, so better to first fix that bug!

8 years agoRevert part of r51487 (those files are needed by the boolean ops code, /intern/bsp...
Bastien Montagne [Mon, 22 Oct 2012 06:47:54 +0000 (06:47 +0000)]
Revert part of r51487 (those files are needed by the boolean ops code, /intern/bsp/...)!

8 years agosmall optimization for BLI_heap(), give some speedup in decimeter.
Campbell Barton [Mon, 22 Oct 2012 03:25:53 +0000 (03:25 +0000)]
small optimization for BLI_heap(), give some speedup in decimeter.
- use unsigned ints only (where mixing signed/unsigned)
- turn heap_swap into an inline function, add SWAP_TVAL macro to swap values using a temp value as storage.
- added type checking SHIFT3/4 macros

also style cleanup for CTR_Map

8 years agoremove LOD_Decimator (c++ decimator), now replaced by bmesh decimator. also remove...
Campbell Barton [Mon, 22 Oct 2012 02:39:26 +0000 (02:39 +0000)]
remove LOD_Decimator (c++ decimator), now replaced by bmesh decimator. also remove CTR c++ classes that are no longer used.

8 years agoTooltip/Description fixes for recent "tweaks"
Joshua Leung [Mon, 22 Oct 2012 02:20:41 +0000 (02:20 +0000)]
Tooltip/Description fixes for recent "tweaks"

1) "AnimData" is a technical term used for a specific entity in the system.
"anim data" is mangled fluff.
2) Old tooltip for DopeSheet.source is no longer valid. It's nearly always used
to represent the current scene now.

8 years agoenable bmesh decimator by default.
Campbell Barton [Mon, 22 Oct 2012 02:09:41 +0000 (02:09 +0000)]
enable bmesh decimator by default.

8 years agofix own mistake - passing wrong argument to bmesh decimator when calculating boundary...
Campbell Barton [Mon, 22 Oct 2012 02:02:52 +0000 (02:02 +0000)]
fix own mistake - passing wrong argument to bmesh decimator when calculating boundary quadric.

8 years agoFix for [#32931] Crop node resets values to 0
Jeroen Bakker [Sun, 21 Oct 2012 18:56:48 +0000 (18:56 +0000)]
Fix for [#32931] Crop node resets values to 0
Patch done by Markus Kasten
Thanks for that!

8 years agobmesh-decimator update
Campbell Barton [Sun, 21 Oct 2012 15:20:53 +0000 (15:20 +0000)]
bmesh-decimator update
- update face normals when triangulating.
- avoid divide by zero when interpolating customdata on a zero length edge.
- replace zero float comparisons with fabsf() < FLT_EPSILON to avoid numeric error.

also renamed BLI_heap_empty() --> BLI_heap_is_empty() so its obviously readonly function.

8 years ago== filebrowser ==
Andrea Weikert [Sun, 21 Oct 2012 14:47:16 +0000 (14:47 +0000)]
== filebrowser ==
* Separated bookmarks managed by the OS (System Bookmarks) and bookmarks managed by Blender (Bookmarks).
* Added user pref to hide (or show) system bookmarks to allow users doing a video tutorial for example to hide their private system bookmarks
This feature should help especially MAC users who reported excessively long list of bookmarks which were added to Blender.

8 years agoA final bunch of UI messages fixes and tweaks, and some BKE_report()<->BKE_reportf...
Bastien Montagne [Sun, 21 Oct 2012 14:02:30 +0000 (14:02 +0000)]
A final bunch of UI messages fixes and tweaks, and some BKE_report()<->BKE_reportf() fixes.

8 years agoBugfix #27504
Ton Roosendaal [Sun, 21 Oct 2012 13:30:18 +0000 (13:30 +0000)]
Bugfix #27504

Render error.
Particle systems that duplicate group instances were setting the wrong
layer to the instanced objects, the correct layer is the particle system
itself - as being shown in the viewport correctly already.

Old report from May 2011 :)

8 years agobmesh decimate fixes
Campbell Barton [Sun, 21 Oct 2012 12:35:01 +0000 (12:35 +0000)]
bmesh decimate fixes
- don't collapse boundary verts into non boundary edges (was ugly causing spikes)
- handle degenerate cases better, rather then removing double edges after collapse, check before collapsing that there won't be any degenerate faces/edges.

8 years agoTexture UI:
Thomas Dinges [Sun, 21 Oct 2012 11:04:04 +0000 (11:04 +0000)]
Texture UI:
* Use the full space for the Texture ID Block.

8 years agoCompatibility error: BLENDER_MINVERSION was set to 2.61, but that should be 2.62.
Ton Roosendaal [Sun, 21 Oct 2012 09:57:25 +0000 (09:57 +0000)]
Compatibility error: BLENDER_MINVERSION was set to 2.61, but that should be 2.62.

This define means "the minimum version of Blender that can read the current .blend"

In 2.62 there's compatibility code to read BMesh, not in 2.61.

8 years agoFix for OSL closure base class. The 'blur' method is not implemented and must be...
Lukas Toenne [Sun, 21 Oct 2012 09:10:47 +0000 (09:10 +0000)]
Fix for OSL closure base class. The 'blur' method is not implemented and must be declared pure virtual ('= 0') to avoid compiler error (on Ubuntu 12.04, gcc 4.6.3).

8 years agoFix [#32934] Some UI texts translated/untranslated regardless of "Interface" checkbox...
Bastien Montagne [Sun, 21 Oct 2012 08:13:34 +0000 (08:13 +0000)]
Fix [#32934] Some UI texts translated/untranslated regardless of "Interface" checkbox. Patch [#32935] by Shinsuke Irie, thanks!

8 years agoFix blenderplayer build (more stub funcs...).
Bastien Montagne [Sun, 21 Oct 2012 08:11:04 +0000 (08:11 +0000)]
Fix blenderplayer build (more stub funcs...).