blender.git
6 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

6 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

6 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.

6 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)

6 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.

6 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).

6 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.

6 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.

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

6 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

6 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.

6 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.

6 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.

6 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.

6 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

6 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
BlendData.meshes.remove()

6 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.

6 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!

6 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.

6 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.

6 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.

6 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.

6 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.

6 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

6 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...

6 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.

6 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!

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

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

6 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

6 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

6 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.

6 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.

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

6 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.

6 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.

6 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!

6 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/...)!

6 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

6 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.

6 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.

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

6 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.

6 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!

6 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.

6 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.

6 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.

6 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 :)

6 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.

6 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.

6 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.

6 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).

6 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!

6 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...).

6 years agostyle cleanup: bge, switch statements mostly.
Campbell Barton [Sun, 21 Oct 2012 07:58:38 +0000 (07:58 +0000)]
style cleanup: bge, switch statements mostly.
also left bmesh decimator on in previous commit.

6 years agostyle cleanup: trailing tabs & expand some non prefix tabs into spaces.
Campbell Barton [Sun, 21 Oct 2012 05:46:41 +0000 (05:46 +0000)]
style cleanup: trailing tabs & expand some non prefix tabs into spaces.

7 years agoBugfix [#32932] Can't see the Speaker properties when using Cycles
Joshua Leung [Sun, 21 Oct 2012 05:23:58 +0000 (05:23 +0000)]
Bugfix [#32932] Can't see the Speaker properties when using Cycles

7 years agoBGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.
Benoit Bolsee [Sat, 20 Oct 2012 22:28:44 +0000 (22:28 +0000)]
BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.

2 new attributes to ImageViewport and ImageRender object:
depth: set to True to retrieve the depth buffer as an array of float
       (not suitable for texture source).
zbuff: set to True to retrieve the depth buffer as a grey scale pixel array
       (suitable for texture source).

A new mode 'F' is added to VideoTexture.imageToArray() to allow returning the image
buffer as a one dimensional array of float. This mode should only be used to retrieve
the depth buffer of ImageViewport and ImageRender objects.

Example:

viewport = VideoTexture.ImageViewport()
viewport.depth = True
depth = VideoTexture.imageToArray(viewport,'F')
# show depth of bottom left pixel
# 1.0 = infinite, 0.0 = on near clip plane.
print(depth[0])

7 years agocode cleanup: spelling
Campbell Barton [Sat, 20 Oct 2012 20:36:51 +0000 (20:36 +0000)]
code cleanup: spelling

7 years agostyle cleanup: comments
Campbell Barton [Sat, 20 Oct 2012 20:20:02 +0000 (20:20 +0000)]
style cleanup: comments

7 years agoAtempt to get rid of those ugly "long locales" under windows. Tested by me (win7...
Bastien Montagne [Sat, 20 Oct 2012 19:54:09 +0000 (19:54 +0000)]
Atempt to get rid of those ugly "long locales" under windows. Tested by me (win7 64, VC2008) and by Sergey. However, older OS (XP) may not work...

The idea behind this is that gettext lib has a func that mimics usual setlocale, but doing also the conversion to windows locale names. Let's hope it works everywhere!

7 years agoFix for r51447 (my CMake 2.8.9 did not like it, looks like with quotes it suites...
Bastien Montagne [Sat, 20 Oct 2012 19:36:08 +0000 (19:36 +0000)]
Fix for r51447 (my CMake 2.8.9 did not like it, looks like with quotes it suites it...).

7 years agostyle cleanup
Campbell Barton [Sat, 20 Oct 2012 18:46:57 +0000 (18:46 +0000)]
style cleanup

7 years agobmesh-decimator, skip recalculating face normals on each edge collapse. (they are...
Campbell Barton [Sat, 20 Oct 2012 18:12:22 +0000 (18:12 +0000)]
bmesh-decimator, skip recalculating face normals on each edge collapse. (they are not used so faster to avoid)

7 years agoCycles / OSL:
Thomas Dinges [Sat, 20 Oct 2012 17:50:24 +0000 (17:50 +0000)]
Cycles / OSL:
* Fix Mapping node, used wrong identifiers for Vector In/Out.

7 years agobmesh-decimate now only does CustomData_has_math for loop layers, add CustomData_has_...
Campbell Barton [Sat, 20 Oct 2012 17:39:56 +0000 (17:39 +0000)]
bmesh-decimate now only does CustomData_has_math for loop layers, add CustomData_has_interp() for vert & edges.

7 years agobmesh decimator support for loop & edge customdata. (most importantly UVs and vertex...
Campbell Barton [Sat, 20 Oct 2012 17:31:07 +0000 (17:31 +0000)]
bmesh decimator support for loop & edge customdata. (most importantly UVs and vertex colors).

7 years agoAdd option to set object origin to the center of mass
Sergej Reich [Sat, 20 Oct 2012 16:48:54 +0000 (16:48 +0000)]
Add option to set object origin to the center of mass

This uses the weighted average of polygon centroids based on area
It work well in most cases but will be slightly wrong when polygons have
many vertices.

7 years agofix for BM_edge_other_loop() not working right (own error in recent commit), and...
Campbell Barton [Sat, 20 Oct 2012 16:48:04 +0000 (16:48 +0000)]
fix for BM_edge_other_loop() not working right (own error in recent commit), and add new function BM_vert_step_fan_loop() for stepping around the loops of a face fan with manifold edges.

7 years agodon't print mousemoves with wm_handlers_do and --debug-events
Campbell Barton [Sat, 20 Oct 2012 16:04:15 +0000 (16:04 +0000)]
don't print mousemoves with wm_handlers_do and --debug-events

7 years agoCycles OSL: light path, texture coordinate, bump and blended box mapping now up
Brecht Van Lommel [Sat, 20 Oct 2012 15:09:36 +0000 (15:09 +0000)]
Cycles OSL: light path, texture coordinate, bump and blended box mapping now up
to date and working.

7 years agoCycles: disable motion blur for CUDA entirely now, also goes wrong on other
Brecht Van Lommel [Sat, 20 Oct 2012 15:09:27 +0000 (15:09 +0000)]
Cycles: disable motion blur for CUDA entirely now, also goes wrong on other
architectures. Still did not find a good solution.

7 years agoadd comment about misuse of enum set function.
Campbell Barton [Sat, 20 Oct 2012 14:16:56 +0000 (14:16 +0000)]
add comment about misuse of enum set function.

7 years agoBugfix #32641
Ton Roosendaal [Sat, 20 Oct 2012 14:13:14 +0000 (14:13 +0000)]
Bugfix #32641

User preferences, keymap editor: it allowed to set any event for "key modifier", and not
even to NULL the option. Now it limits to keyboard events, on mouseclicks it clears,
on ESC it exits without changes.

7 years agoCycles:
Thomas Dinges [Sat, 20 Oct 2012 14:08:49 +0000 (14:08 +0000)]
Cycles:
* Build system fixes for closure refactor.

7 years agodont ise -Wuninitialized on gcc 4.2 and older, it gives annoying warnings.
Campbell Barton [Sat, 20 Oct 2012 13:29:07 +0000 (13:29 +0000)]
dont ise -Wuninitialized on gcc 4.2 and older, it gives annoying warnings.

7 years agoInteger socket support in Cycles. Int values are already supported natively in OSL...
Lukas Toenne [Sat, 20 Oct 2012 13:11:45 +0000 (13:11 +0000)]
Integer socket support in Cycles. Int values are already supported natively in OSL, but were not used as actual ints on the SVM stack. This patch implements all the necessary functionality to support reading input values from RNA properties and convert between SHADER_SOCKET_INT and other types.

7 years agoswitch order cmake includes warning flags so its possible to disable them
Campbell Barton [Sat, 20 Oct 2012 13:08:51 +0000 (13:08 +0000)]
switch order cmake includes warning flags so its possible to disable them

7 years agoCycles OSL: most closure code is now shared between OSL and SVM. Also fix
Brecht Van Lommel [Sat, 20 Oct 2012 12:18:00 +0000 (12:18 +0000)]
Cycles OSL: most closure code is now shared between OSL and SVM. Also fix
transmission pass and filter glossy option.

The BSDF closure class is now more similar to the SVM closures, and includes
some flags and labels that are needed to properly categorize the BSDF's for
render passes. Phong closure is gone for the moment, needs to be adapated to
the new structure still.

7 years agoCycles OSL: some build system tweaks to avoid global includes and definitions,
Brecht Van Lommel [Sat, 20 Oct 2012 12:17:45 +0000 (12:17 +0000)]
Cycles OSL: some build system tweaks to avoid global includes and definitions,
which ensures there is no conflict with other libraries, and avoids full rebuild
when toggling OSL on/off.

7 years agoadd TIMEIT_VALUE_PRINT() macro for printing timing between start/end macros.
Campbell Barton [Sat, 20 Oct 2012 10:37:15 +0000 (10:37 +0000)]
add TIMEIT_VALUE_PRINT() macro for printing timing between start/end macros.

7 years agoMore UI messages fixes and tweaks, and BKE_report<->BKE_reportf.
Bastien Montagne [Sat, 20 Oct 2012 10:28:34 +0000 (10:28 +0000)]
More UI messages fixes and tweaks, and BKE_report<->BKE_reportf.

7 years agocode cleanup: remove unused members of BMIter struct to save some space. (this iterat...
Campbell Barton [Sat, 20 Oct 2012 10:11:26 +0000 (10:11 +0000)]
code cleanup: remove unused members of BMIter struct to save some space. (this iterator is used everywhere).
also rename vars in the struct.

7 years agocode cleanup: quiet -Wshadow warning, var name changes for splice functions and add...
Campbell Barton [Sat, 20 Oct 2012 09:56:40 +0000 (09:56 +0000)]
code cleanup: quiet -Wshadow warning, var name changes for splice functions and add assert for BM_edge_splice() when edges don't use the same vertices.

7 years agoadd BM_edge_find_double() and use in bmesh decimator to fix crash.
Campbell Barton [Sat, 20 Oct 2012 09:48:41 +0000 (09:48 +0000)]
add BM_edge_find_double() and use in bmesh decimator to fix crash.

7 years agoRemove six languages from Blender UI (rational: very low level of translation, 1...
Bastien Montagne [Sat, 20 Oct 2012 08:52:54 +0000 (08:52 +0000)]
Remove six languages from Blender UI (rational: very low level of translation, 1-2% at most, and no commit done in branch since more than one year): fi (Finnish), ca (Catalan), bg (Bulgarian), el (Greek), ne (Nepali) and pl (Polish).

Also fix compile in paranoid warning=errors mode for own last commit.

7 years agoFix unix language setting fallback (long_locale is windows only!). This was preventin...
Bastien Montagne [Sat, 20 Oct 2012 08:33:54 +0000 (08:33 +0000)]
Fix unix language setting fallback (long_locale is windows only!). This was preventing setting language when you did not have the relevant locale installed under Linux...

7 years agocode cleanup:
Campbell Barton [Sat, 20 Oct 2012 08:02:18 +0000 (08:02 +0000)]
code cleanup:
- define array sizes for functions that take vectors.
- quiet some -Wshadow warnings.
- some copy/paste error in readfile.c made it set the same particle recalc flag twice.

7 years agorna_sequencer_api.c doc string cleanup
Dan Eicher [Sat, 20 Oct 2012 05:51:45 +0000 (05:51 +0000)]
rna_sequencer_api.c doc string cleanup

7 years agoCode cleanup
Joshua Leung [Sat, 20 Oct 2012 05:08:26 +0000 (05:08 +0000)]
Code cleanup

7 years agoGrease Pencil: Tweaks to make tooltips show up for the different drawing tool
Joshua Leung [Sat, 20 Oct 2012 04:56:24 +0000 (04:56 +0000)]
Grease Pencil: Tweaks to make tooltips show up for the different drawing tool
types available

7 years agoFix for drawing meshes with VBOs disabled in sculpt mode
Nicholas Bishop [Sat, 20 Oct 2012 00:45:44 +0000 (00:45 +0000)]
Fix for drawing meshes with VBOs disabled in sculpt mode

* This is another fix for r51118. Was drawing flat-shaded GPU buffers
  with VBOs even when VBOs were disabled in the preferences.

7 years agoFix [#32925] Center cursor (shift+C) crashing blender after duplicating bone in armat...
Bastien Montagne [Fri, 19 Oct 2012 19:16:18 +0000 (19:16 +0000)]
Fix [#32925] Center cursor (shift+C) crashing blender after duplicating bone in armature edit mode.

Center Cursor uses BKE_object_minmax(), which uses pchans' bone member to check whether a bone is visible or not. But after a duplication, the duplicated pchan->bone are NULL, skiping in this case (as if they were hidden, not optimal but should do the work for now - anyway, using pchan's values in Edit mode does not really make sense, imho).

7 years agoMinor fix to BKE_reportf(): also output the report's type when printing to console.
Bastien Montagne [Fri, 19 Oct 2012 17:08:46 +0000 (17:08 +0000)]
Minor fix to BKE_reportf(): also output the report's type when printing to console.

7 years agoFix #32920: cloth physics with collision exploding in some cases, due to
Brecht Van Lommel [Fri, 19 Oct 2012 16:44:08 +0000 (16:44 +0000)]
Fix #32920: cloth physics with collision exploding in some cases, due to
uninitialized memory usage.

7 years agoMore UI messages fixes and tweaks, BKE_report<->BKE_reportf, and stuff to translate...
Bastien Montagne [Fri, 19 Oct 2012 16:43:10 +0000 (16:43 +0000)]
More UI messages fixes and tweaks, BKE_report<->BKE_reportf, and stuff to translate...

7 years agoAdditional debug assert in the compositor for checking correct conversion of Nodes...
Lukas Toenne [Fri, 19 Oct 2012 16:29:17 +0000 (16:29 +0000)]
Additional debug assert in the compositor for checking correct conversion of Nodes to Operations. This will trigger an assert failure whenever a node has remaining socket connections after conversion. This would mean that not all sockets have been properly relinked and helps detect incomplete code.

7 years agoAdd stub for new ED_view3d_grid_scale().
Bastien Montagne [Fri, 19 Oct 2012 14:38:32 +0000 (14:38 +0000)]
Add stub for new ED_view3d_grid_scale().

7 years agoCycles/ Layer Weight Node:
Thomas Dinges [Fri, 19 Oct 2012 13:51:37 +0000 (13:51 +0000)]
Cycles/ Layer Weight Node:
* Small tweak for the blend value, to avoid division by zero.

Thanks to Brecht for pointing out the solution.

7 years agoFix #32219: Inconsistent influence of Units Scale on new objects
Sergey Sharybin [Fri, 19 Oct 2012 12:53:03 +0000 (12:53 +0000)]
Fix #32219: Inconsistent influence of Units Scale on new objects

Made it so meshes, curves, surfaces and metaballs are scaling to a grid cell size,
which makes them behave consistently now.

There're still issues to be resolved still:

- Lattice is not scaled to grid cell size yet, it uses slightly different add
  function which makes scaling a bit tricky and hacky. Would prefer to do a
  bit bigger refactor here, so it's a TODO for now.

- Cameras, speakers and other helpers are not scaling. They don't have data
  on which scale could be applied and perhaps it should be some kind of draw
  scale. Also would consider it's a TODO for now.