blender.git
5 years agoBugfix: Units for time translate transforms (action/nla editors) was messed up
Joshua Leung [Mon, 16 Jun 2014 09:44:08 +0000 (21:44 +1200)]
Bugfix: Units for time translate transforms (action/nla editors) was messed up

When autosnap mode was nearest frame or nearest marker, this was incorrectly
converting the units to seconds, making this display unusable for anything.

5 years agoFeature Request T40643: Animation channels can be renamed by double-clicking on them too
Joshua Leung [Mon, 16 Jun 2014 09:04:42 +0000 (21:04 +1200)]
Feature Request T40643: Animation channels can be renamed by double-clicking on them too

5 years agoNeed to consider blender-v* a release branch, not just blender-
Sergey Sharybin [Mon, 16 Jun 2014 09:16:18 +0000 (15:16 +0600)]
Need to consider blender-v* a release branch, not just blender-

This is because of blender-tiles branch we've got..

5 years agoForgot this in previous commit
Sergey Sharybin [Mon, 16 Jun 2014 09:13:01 +0000 (15:13 +0600)]
Forgot this in previous commit

5 years agoMake blender-* branches not being displayed on the splash
Sergey Sharybin [Mon, 16 Jun 2014 08:58:56 +0000 (14:58 +0600)]
Make blender-* branches not being displayed on the splash

5 years agoI'd tend to declare dead code is forbidden
Sergey Sharybin [Mon, 16 Jun 2014 08:08:22 +0000 (14:08 +0600)]
I'd tend to declare dead code is forbidden

All this code blocks commented out with UNUSED comment are
really useless.

5 years agoFix T40606: Blender 2.71RC1 for Windows uses too old blender.mo file in Japanese
Sergey Sharybin [Mon, 16 Jun 2014 07:59:46 +0000 (13:59 +0600)]
Fix T40606: Blender 2.71RC1 for Windows uses too old blender.mo file in Japanese

Update submodules to v2.71-rc1, it got lost on re-tag leading to wrong addons
and translations used in RC1.

5 years agoAdd missing dependency to CMake's msgfmt
Sergey Sharybin [Mon, 16 Jun 2014 07:21:33 +0000 (13:21 +0600)]
Add missing dependency to CMake's msgfmt

This could have lead to situation when CMake wouldn't re-generate
.mo file from changed .po file.

5 years agoCode cleanup: move editfont drawing into its own function.
Campbell Barton [Mon, 16 Jun 2014 07:22:41 +0000 (17:22 +1000)]
Code cleanup: move editfont drawing into its own function.

5 years agoObject Drawing: minor refactor, don't check glsl in wire-mode
Campbell Barton [Mon, 16 Jun 2014 07:12:08 +0000 (17:12 +1000)]
Object Drawing: minor refactor, don't check glsl in wire-mode

also don't call glBlendFunc for hidden objects.

5 years agoFix T40648: Bevel Tool - Amount value slider maximum does not adapt to Amount Type...
Bastien Montagne [Mon, 16 Jun 2014 07:03:26 +0000 (09:03 +0200)]
Fix T40648: Bevel Tool - Amount value slider maximum does not adapt to Amount Type settings automaticly.

5 years agoFix T40617: Ortho view selects objects behind camera
Campbell Barton [Mon, 16 Jun 2014 06:55:57 +0000 (16:55 +1000)]
Fix T40617: Ortho view selects objects behind camera

5 years agoFix Python fails to execute text-blocks including non-mbcs chars (T35176, D595)
Tamito Kajiyama [Mon, 16 Jun 2014 05:24:19 +0000 (15:24 +1000)]
Fix Python fails to execute text-blocks including non-mbcs chars (T35176, D595)

5 years agoFreestyle: Python API docstring updates.
Tamito Kajiyama [Mon, 16 Jun 2014 01:11:37 +0000 (10:11 +0900)]
Freestyle: Python API docstring updates.

5 years agoD545: Freestyle Python API: new methods for Stroke and StrokeVertexIterator.
Tamito Kajiyama [Mon, 16 Jun 2014 00:56:58 +0000 (09:56 +0900)]
D545: Freestyle Python API: new methods for Stroke and StrokeVertexIterator.

This revision extends the Freestyle Python API to make for style module writing
easier.

- freestyle.types.Stroke: A proper support for reversed() is implemented.  It
works the same with other Python sequence objects (returns an iterator starting
from the end).  This is in effect equivalent to Stroke.stroke_vertices_end().

- freestyle.types.StrokeVertexIterator: An incremented, decremented and reversed
method are added.  The first two methods return a new StrokeVertexIterator
object that has been incremented and decremented, respectively. The reversed
method returns a new StrokeVertexIterator object that will traverse stroke
vertices in the opposite direction.

- freestyle.types.Interface0DIterator: Its constructor now accepts a Stroke
object to create an Interface0DIterator that traverses stroke vertices.  This is
in effect equivalent to Stroke.vertices_begin().  The new API makes stroke
shaders involving function calls much simpler as illustrated below:

  # in the old API
  it = stroke.stroke_vertices_begin()
  for vert in it:
      result = somefunc(Interface0DIterator(it))

  # in the new API
  it = Interface0DIterator(stroke)
  for vert in it:
      result = somefunc(it)

Differential Revision: https://developer.blender.org/D545

Reviewers: kjym3

5 years agoCurve: remove unused displist members
Campbell Barton [Sun, 15 Jun 2014 04:56:59 +0000 (14:56 +1000)]
Curve: remove unused displist members

5 years agoCurve: replace calloc with malloc for values immediately written into
Campbell Barton [Sun, 15 Jun 2014 04:36:33 +0000 (14:36 +1000)]
Curve: replace calloc with malloc for values immediately written into

5 years agoCurve: use zero length array for BevList for less confusing syntax
Campbell Barton [Sun, 15 Jun 2014 04:23:23 +0000 (14:23 +1000)]
Curve: use zero length array for BevList for less confusing syntax

5 years agoCode cleanup: comments
Campbell Barton [Sun, 15 Jun 2014 02:15:28 +0000 (12:15 +1000)]
Code cleanup: comments

5 years agoText Editor: dropping id's now paste in Python data path (like pyconsole)
Campbell Barton [Sun, 15 Jun 2014 02:09:18 +0000 (12:09 +1000)]
Text Editor: dropping id's now paste in Python data path (like pyconsole)

5 years ago* Fix OpenCL after uchar4 commit.
Thomas Dinges [Sat, 14 Jun 2014 23:09:35 +0000 (01:09 +0200)]
* Fix OpenCL after uchar4 commit.

5 years agoFix T40007 Bevel tool resets after getting to 1.
Howard Trickey [Sat, 14 Jun 2014 21:42:06 +0000 (17:42 -0400)]
Fix T40007 Bevel tool resets after getting to 1.

If the side of a beveled edge hit another vertex, the offset
amount reset to zero. This was the result of commit rB1582dd5e4d7c
which clamped the amount to zero to avoid creating spikes with
obtuse angles. Now we clamp the amount to the closest end of
the edge to where the amount wants to be.
Also fixes the first part of T40365.

5 years agoUI: refactor text cache to use zero length arrays
Campbell Barton [Sat, 14 Jun 2014 18:06:44 +0000 (04:06 +1000)]
UI: refactor text cache to use zero length arrays

also correct some bad casts

5 years agoBLI_gsqueue: refactor to use zero length array
Campbell Barton [Sat, 14 Jun 2014 18:30:32 +0000 (04:30 +1000)]
BLI_gsqueue: refactor to use zero length array

5 years agoBLI_gsqueue: use size_t for elem_size (was casting all over)
Campbell Barton [Sat, 14 Jun 2014 17:48:22 +0000 (03:48 +1000)]
BLI_gsqueue: use size_t for elem_size (was casting all over)

5 years agoUI: Add support for popups to refresh their layput (D578)
Campbell Barton [Sat, 14 Jun 2014 15:40:15 +0000 (01:40 +1000)]
UI: Add support for popups to refresh their layput (D578)

This is needed for popups to chance state once activated,
currently it makes use of operators `check` callback, after values are modified,
as the file selector does already.

5 years agoFix for last commit, forgot changes in Cycles itself.
Thomas Dinges [Sat, 14 Jun 2014 14:14:36 +0000 (16:14 +0200)]
Fix for last commit, forgot changes in Cycles itself.

5 years agoFix T40609: Wrong WS between word and '?' (no space in english typography in those...
Bastien Montagne [Sat, 14 Jun 2014 13:58:12 +0000 (15:58 +0200)]
Fix T40609: Wrong WS between word and '?' (no space in english typography in those cases).

5 years agoCycles: Don't show "Sharp" distribution in the Anisotropic node.
Thomas Dinges [Sat, 14 Jun 2014 13:44:58 +0000 (15:44 +0200)]
Cycles: Don't show "Sharp" distribution in the Anisotropic node.

5 years agoExpose Weigth tools for edit mode
gaiaclary [Sat, 14 Jun 2014 13:18:46 +0000 (15:18 +0200)]
Expose Weigth tools for edit mode

Most weight tools also work in edit mode.
This change exposes all applicable tools
within a separate weight tool panel
in the tools tab of the tool shelf

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D592

5 years agoCycles: glossy and anisotropic BSDF changes
Brecht Van Lommel [Sun, 8 Jun 2014 10:46:12 +0000 (12:46 +0200)]
Cycles: glossy and anisotropic BSDF changes

* Anisotropic BSDF now supports GGX and Beckmann distributions, Ward has been
  removed because other distributions are superior.
* GGX is now the default distribution for all glossy and anisotropic nodes,
  since it looks good, has low noise and is fast to evaluate.
* Ashikhmin-Shirley is now available in the Glossy BSDF.

5 years agoCycles: internal code support for anisotropic Beckmann and GGX reflection
Brecht Van Lommel [Tue, 3 Jun 2014 22:39:42 +0000 (00:39 +0200)]
Cycles: internal code support for anisotropic Beckmann and GGX reflection

Based on:

Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs
E. Heitz, Research Report 2014

5 years agoCycles: Ashikhmin-Shirley anisotropic BSDF
Karsten Schwenk [Sun, 8 Jun 2014 10:16:28 +0000 (12:16 +0200)]
Cycles: Ashikhmin-Shirley anisotropic BSDF

* Ashikhmin-Shirley anisotropic BSDF was added as closure
* Anisotropic BSDF node now has two distributions

Reviewers: brecht, dingto

Differential Revision: https://developer.blender.org/D549

5 years agoCycles: improved importance sampling for Beckmann and GGX glossy
Brecht Van Lommel [Thu, 29 May 2014 11:32:16 +0000 (13:32 +0200)]
Cycles: improved importance sampling for Beckmann and GGX glossy

Samples render slower than before, but hopefully this is made up for with
reduced noise in most cases. The main slowdown comes from samples that would
previously be wasted and turn out black, which are now continued.

GGX sampling is about the same speed as before, while for Beckmann it is slower
still. Perhaps optimizations are still possible there, but didn't find anything
easy.

Code from this paper, which comes with sample code:

Importance Sampling Microfacet-Based BSDFs using the Distribution of Visible Normals.
E. Heitz and E. d'Eon, EGSR 2014

Differential Revision: https://developer.blender.org/D572

5 years agoCycles: volume sampling method can now be set per material/world.
Brecht Van Lommel [Sat, 7 Jun 2014 16:47:14 +0000 (18:47 +0200)]
Cycles: volume sampling method can now be set per material/world.

This gives you "Multiple Importance", "Distance" and "Equiangular" choices.

What multiple importance sampling does is make things more robust to certain
types of noise at the cost of a bit more noise in cases where the individual
strategies are always better.

So if you've got a pretty dense volume that's lit from far away then distance
sampling is usually more efficient. If you've got a light inside or near the
volume then equiangular sampling is better. If you have a combination of both,
then the multiple importance sampling will be better.

5 years agoCycles: volume light sampling
Brecht Van Lommel [Fri, 4 Apr 2014 14:45:49 +0000 (16:45 +0200)]
Cycles: volume light sampling

* Volume multiple importace sampling support to combine equiangular and distance
  sampling, for both homogeneous and heterogeneous volumes.

* Branched path "Sample All Direct Lights" and "Sample All Indirect Lights" now
  apply to volumes as well as surfaces.

Implementation note:

For simplicity this is all done with decoupled ray marching, the only case we do
not use decoupled is for distance only sampling with one light sample. The
homogeneous case should still compile on the GPU because it only requires fixed
size storage, but the heterogeneous case will be trickier to get working.

5 years agoCycles code refactor: move some surface and volume path code to separate files.
Brecht Van Lommel [Fri, 4 Apr 2014 12:35:30 +0000 (14:35 +0200)]
Cycles code refactor: move some surface and volume path code to separate files.

5 years agoCycles code refactor: deduplicate and symmetrize some path tracing code.
Brecht Van Lommel [Fri, 4 Apr 2014 12:21:35 +0000 (14:21 +0200)]
Cycles code refactor: deduplicate and symmetrize some path tracing code.

5 years agoCycles code refactor: minor changes to light emission code.
Brecht Van Lommel [Thu, 3 Apr 2014 20:43:56 +0000 (22:43 +0200)]
Cycles code refactor: minor changes to light emission code.

5 years agoFix T40610. This is a critical bug caused by own bugfix that does not
Antony Riakiotakis [Sat, 14 Jun 2014 11:30:22 +0000 (14:30 +0300)]
Fix T40610. This is a critical bug caused by own bugfix that does not
allow editing any object type without bounding boxes.

This should be included in the final release!

5 years agoFix compilation in cycles
Antony Riakiotakis [Sat, 14 Jun 2014 10:54:11 +0000 (13:54 +0300)]
Fix compilation in cycles

5 years agoCode cleanup: Avoid duplicate functions for vector combination/separation in SVM.
Thomas Dinges [Sat, 14 Jun 2014 10:28:49 +0000 (12:28 +0200)]
Code cleanup: Avoid duplicate functions for vector combination/separation in SVM.

Differential Revision: https://developer.blender.org/D597

5 years agoBLI_dynstr: use function attributes and move comments into C file
Campbell Barton [Sat, 14 Jun 2014 08:40:48 +0000 (18:40 +1000)]
BLI_dynstr: use function attributes and move comments into C file

5 years agoUI: use BLI_strdup to store the original string.
Campbell Barton [Sat, 14 Jun 2014 08:32:18 +0000 (18:32 +1000)]
UI: use BLI_strdup to store the original string.

5 years agoSkin Modifier: use BLI_bitmap to tag edges
Campbell Barton [Sat, 14 Jun 2014 08:24:41 +0000 (18:24 +1000)]
Skin Modifier: use BLI_bitmap to tag edges

5 years agoUI: uiContextActivePropertyHandle wasn't passing the event to the uiBlockHandleFunc
Campbell Barton [Sat, 14 Jun 2014 08:14:53 +0000 (18:14 +1000)]
UI: uiContextActivePropertyHandle wasn't passing the event to the uiBlockHandleFunc

5 years agoBLI_rand: add BLI_rng_get_float_unit_v2
Campbell Barton [Sat, 14 Jun 2014 08:12:19 +0000 (18:12 +1000)]
BLI_rand: add BLI_rng_get_float_unit_v2

5 years agoEditmesh: remove redundant normal calculation call for subdivide
Campbell Barton [Sat, 14 Jun 2014 07:55:07 +0000 (17:55 +1000)]
Editmesh: remove redundant normal calculation call for subdivide

5 years agoUI: remove OpenGL calls from ED_region_init, now handled elsewhere
Campbell Barton [Sat, 14 Jun 2014 07:40:33 +0000 (17:40 +1000)]
UI: remove OpenGL calls from ED_region_init, now handled elsewhere

5 years agoReplace sqrt with hypot for wipe-effect & transform code
Campbell Barton [Sat, 14 Jun 2014 07:27:50 +0000 (17:27 +1000)]
Replace sqrt with hypot for wipe-effect & transform code

5 years agoMath Lib: mat3_to_eulo2 & mat3_to_eul2 mixed float/double differently
Campbell Barton [Sat, 14 Jun 2014 07:10:46 +0000 (17:10 +1000)]
Math Lib: mat3_to_eulo2 & mat3_to_eul2 mixed float/double differently

replace sqrt with hypotf to avoid precision loss instead

5 years agoQuiet warning in Cycles
Campbell Barton [Sat, 14 Jun 2014 07:00:15 +0000 (17:00 +1000)]
Quiet warning in Cycles

5 years agoRename 'Extend Vertex' to be clear it operates on many vertices
Campbell Barton [Sat, 14 Jun 2014 06:15:38 +0000 (16:15 +1000)]
Rename 'Extend Vertex' to be clear it operates on many vertices

5 years agoComment unused macro
Campbell Barton [Sat, 14 Jun 2014 06:16:32 +0000 (16:16 +1000)]
Comment unused macro

5 years agoPolyfill2d: use kd-tree
Campbell Barton [Wed, 11 Jun 2014 00:17:22 +0000 (10:17 +1000)]
Polyfill2d: use kd-tree

Simple search for intersections became slow for larger concave ngons (100+)
Tested to work with ngons up to 75k sides, performance is approx ~6x faster then scanfill.

This is a 2D version of BLI_kdtree with modifications:
- nodes can be removed
- an index -> node map is stored (especially for tessellation)

5 years agoPolyfill2d: avoid calculating polygon winding (its known in all cases)
Campbell Barton [Fri, 13 Jun 2014 21:22:39 +0000 (07:22 +1000)]
Polyfill2d: avoid calculating polygon winding (its known in all cases)

5 years agoPolyfill2d: Switch directions on concave triangles
Campbell Barton [Wed, 11 Jun 2014 00:14:40 +0000 (10:14 +1000)]
Polyfill2d: Switch directions on concave triangles

Better topology and minor speedup

5 years agoPolyfill2d: replace array with linklist, faster resizing
Campbell Barton [Sat, 31 May 2014 12:25:39 +0000 (22:25 +1000)]
Polyfill2d: replace array with linklist, faster resizing

approx 4.0x speedup

5 years agoCycles: Add support for uchar4 attributes.
Thomas Dinges [Fri, 13 Jun 2014 21:40:39 +0000 (23:40 +0200)]
Cycles: Add support for uchar4 attributes.

* Added support for uchar4 attributes to Cycles' attribute system.
* This is used for Vertex Colors now, which saves some memory (4 unsigned characters, instead of 4 floats).
* GPU Texture Limit on sm_20 and sm_21 decreased from 95 to 94, because we need a new texture for the uchar4 attributes. This is no problem for sm_30 or newer.

Part of my GSoC 2014.

5 years agoAttempt to fix sign conversion error happening on buildbot
Sergey Sharybin [Fri, 13 Jun 2014 21:34:30 +0000 (03:34 +0600)]
Attempt to fix sign conversion error happening on buildbot

5 years agoImplement GLSL code for XYZ nodes.
Thomas Dinges [Fri, 13 Jun 2014 21:23:35 +0000 (23:23 +0200)]
Implement GLSL code for XYZ nodes.

5 years agoFollow up for previous commit: need to tweak args for scons as well
Sergey Sharybin [Fri, 13 Jun 2014 21:09:31 +0000 (03:09 +0600)]
Follow up for previous commit: need to tweak args for scons as well

5 years agoOSX: update codesigning rules to 2.71
Jens Verwiebe [Fri, 13 Jun 2014 21:08:49 +0000 (23:08 +0200)]
OSX: update codesigning rules to 2.71

5 years agoCycles: Fix compilation error of AVX2 kernel with GCC/Clang
Sergey Sharybin [Fri, 13 Jun 2014 21:00:32 +0000 (03:00 +0600)]
Cycles: Fix compilation error of AVX2 kernel with GCC/Clang

5 years agoCode cleanup.
Thomas Dinges [Fri, 13 Jun 2014 20:26:01 +0000 (22:26 +0200)]
Code cleanup.

5 years agoCycles: Add an AVX2 CPU kernel.
Thomas Dinges [Fri, 13 Jun 2014 20:23:58 +0000 (22:23 +0200)]
Cycles: Add an AVX2 CPU kernel.

This kernel is compiled with AVX2, FMA3, and BMI compiler flags. At the moment only Intel Haswell benefits from this, but future AMD CPUs will have these instructions as well.

Makes rendering on Haswell CPUs a few percent faster, only benchmarked with clang on OS X though.

Part of my GSoC 2014.

5 years agoCMake fixup for bd43ac04 as indicated by Campbell Barton
Dalai Felinto [Fri, 13 Jun 2014 20:22:54 +0000 (17:22 -0300)]
CMake fixup for bd43ac04 as indicated by Campbell Barton

5 years agoCycles: Add dedicated nodes to split/combine vectors.
Thomas Dinges [Fri, 13 Jun 2014 19:44:48 +0000 (21:44 +0200)]
Cycles: Add dedicated nodes to split/combine vectors.

This was already possible via the RGB nodes, but that seems weird.

5 years agoCycles: Calculate face normal on the fly.
Thomas Dinges [Fri, 13 Jun 2014 19:27:21 +0000 (21:27 +0200)]
Cycles: Calculate face normal on the fly.

Instead of pre-calculation and storage, we now calculate the face normal during render.
This gives a small slowdown (~1%) but decreases memory usage, which is especially important for GPUs,
where you have limited VRAM.

Part of my GSoC 2014.

5 years agoCycles Refactor: Add SSE Utility code from Embree for cleaner SSE code.
Thomas Dinges [Fri, 13 Jun 2014 19:13:18 +0000 (21:13 +0200)]
Cycles Refactor: Add SSE Utility code from Embree for cleaner SSE code.

This makes the code a bit easier to understand, and might come in handy
if we want to reuse more Embree code.

Differential Revision: https://developer.blender.org/D482

Code by Brecht, with fixes by Lockal, Sergey and myself.

5 years agoAttempt to fix guardedalloc on OSX
Sergey Sharybin [Fri, 13 Jun 2014 19:52:02 +0000 (01:52 +0600)]
Attempt to fix guardedalloc on OSX

5 years agoBake-API: increase cage extrusion/ray distance limit
Dalai Felinto [Fri, 13 Jun 2014 18:53:43 +0000 (15:53 -0300)]
Bake-API: increase cage extrusion/ray distance limit

Fix to include in 2.71 (asked via BlenderArtist)

5 years agoResolve MSVC error
Campbell Barton [Fri, 13 Jun 2014 18:43:15 +0000 (04:43 +1000)]
Resolve MSVC error

5 years agoUse advantage of SSE2 instructions in gaussian blur node
Sergey Sharybin [Fri, 13 Jun 2014 18:30:13 +0000 (00:30 +0600)]
Use advantage of SSE2 instructions in gaussian blur node

This gives around 30% of speedup for gaussian blur node.

Pretty much straightforward implementation inside the node
itself, but needed to implement some additional things:

- Aligned malloc. It's needed to load data onto SSE registers
  faster. based on the aligned_malloc() from Libmv with
  some additional trickery going on to support arbitrary
  alignment (this magic is needed because of MemHead).

  In the practice only 16bit alignment is supported because
  of the lack of aligned malloc with arbitrary alignment
  for OSX. Not a bit deal for now because we need 16 bytes
  alignment at this moment only. Could be tweaked further
  later.

- Memory buffers in compositor are now aligned to 16 bytes.
  Should be harmless for non-SSE cases too. just mentioning.

Reviewers: campbellbarton, lukastoenne, jbakker

Reviewed By: campbellbarton

CC: lockal
Differential Revision: https://developer.blender.org/D564

5 years agoBake-API: handle objects with no faces (fix T40601)
Dalai Felinto [Fri, 13 Jun 2014 17:26:43 +0000 (14:26 -0300)]
Bake-API: handle objects with no faces (fix T40601)

Also it has a better error handling for the BVHTree creation
Fix for 2.71

5 years agoSequencer: add support for grease pencil rendering in previews
Campbell Barton [Fri, 13 Jun 2014 17:25:07 +0000 (03:25 +1000)]
Sequencer: add support for grease pencil rendering in previews

5 years agoCode cleanup: use ED_gpencil_ prefix for grease pencil
Campbell Barton [Fri, 13 Jun 2014 16:54:17 +0000 (02:54 +1000)]
Code cleanup: use ED_gpencil_ prefix for grease pencil

5 years agoUI: Add back ability to select a custom interface font
Campbell Barton [Fri, 13 Jun 2014 16:23:32 +0000 (02:23 +1000)]
UI: Add back ability to select a custom interface font

5 years agoNew Editmesh Tool: Extend Vertex, (Alt+D) D512
Campbell Barton [Fri, 13 Jun 2014 15:38:57 +0000 (01:38 +1000)]
New Editmesh Tool: Extend Vertex, (Alt+D) D512

Helps to easily add details to existing edges.

Similar to the rip tool it depends on cursor location to choose the edge to extend along.

5 years agoAutomatically generate blender.1 man page during build process
Campbell Barton [Fri, 13 Jun 2014 15:19:58 +0000 (01:19 +1000)]
Automatically generate blender.1 man page during build process

Patch T40418 by Lawrence D'Oliveiro

5 years agoRevert part of rB477f35 (error resolving conflict)
Campbell Barton [Fri, 13 Jun 2014 15:06:49 +0000 (01:06 +1000)]
Revert part of rB477f35 (error resolving conflict)

5 years agoCode cleanup: use const for mouse location arg
Campbell Barton [Wed, 11 Jun 2014 01:27:53 +0000 (11:27 +1000)]
Code cleanup: use const for mouse location arg

5 years agoBLI_bitmap: rename macros
Campbell Barton [Fri, 6 Jun 2014 06:05:15 +0000 (16:05 +1000)]
BLI_bitmap: rename macros

- BLI_BITMAP_SET -> BLI_BITMAP_ENABLE
- BLI_BITMAP_CLEAR -> BLI_BITMAP_DISABLE
- BLI_BITMAP_GET -> BLI_BITMAP_TEST
- BLI_BITMAP_MODIFY -> BLI_BITMAP_SET

5 years agoBLI_bitmap: typecheck maco
Campbell Barton [Fri, 6 Jun 2014 06:00:53 +0000 (16:00 +1000)]
BLI_bitmap: typecheck maco

5 years agoAdd string escaping support for BLI_str_quoted_substrN
Campbell Barton [Thu, 29 May 2014 10:42:09 +0000 (20:42 +1000)]
Add string escaping support for BLI_str_quoted_substrN

5 years agoEditmesh: Replace SmallHash with GSet for MESH_OT_loop_to_region
Campbell Barton [Thu, 29 May 2014 04:03:22 +0000 (14:03 +1000)]
Editmesh: Replace SmallHash with GSet for MESH_OT_loop_to_region

There no reason to assume hash will be small in this case

5 years agoGSet, GHash: Add BLI_gset_add, since its common to add members to a set
Campbell Barton [Thu, 29 May 2014 04:00:11 +0000 (14:00 +1000)]
GSet, GHash: Add BLI_gset_add, since its common to add members to a set

also rename BLI_edgeset_reinsert -> BLI_edgeset_add, in this case its the same.

5 years agoBLF: use NONNULL & WARN_UNUSED_RESULT attrs & remove unneeded NULL check
Campbell Barton [Wed, 28 May 2014 16:47:30 +0000 (02:47 +1000)]
BLF: use NONNULL & WARN_UNUSED_RESULT attrs & remove unneeded NULL check

5 years agoBLI_kdtree: use UNLIKELY
Campbell Barton [Wed, 28 May 2014 16:37:16 +0000 (02:37 +1000)]
BLI_kdtree: use UNLIKELY

5 years agoCode cleanup: UI, unnecessary float/int conversion
Campbell Barton [Mon, 2 Jun 2014 03:15:29 +0000 (13:15 +1000)]
Code cleanup: UI, unnecessary float/int conversion

5 years agoCode cleanup: remove hack for older GCC (4.2x and newer work without)
Campbell Barton [Thu, 29 May 2014 04:53:10 +0000 (14:53 +1000)]
Code cleanup: remove hack for older GCC (4.2x and newer work without)

5 years agoCode cleanup: remove redundant arg from ARRAY_LAST_ITEM
Campbell Barton [Thu, 29 May 2014 03:38:34 +0000 (13:38 +1000)]
Code cleanup: remove redundant arg from ARRAY_LAST_ITEM

5 years agoCode cleanup: remove redundant NULL check
Campbell Barton [Thu, 29 May 2014 02:33:13 +0000 (12:33 +1000)]
Code cleanup: remove redundant NULL check

5 years agoCode cleanup: reorder BKE_scene_use_new_shading_nodes checks last
Campbell Barton [Wed, 28 May 2014 16:32:25 +0000 (02:32 +1000)]
Code cleanup: reorder BKE_scene_use_new_shading_nodes checks last

5 years agoCode cleanup: remove NULL check
Campbell Barton [Wed, 28 May 2014 16:27:51 +0000 (02:27 +1000)]
Code cleanup: remove NULL check

5 years agoCode cleanup: replace interp_v2_v2v2 with mid_v2_v2v2
Campbell Barton [Wed, 28 May 2014 16:23:56 +0000 (02:23 +1000)]
Code cleanup: replace interp_v2_v2v2 with mid_v2_v2v2

5 years agoCode cleanup: avoid call to BLI_countlist
Campbell Barton [Wed, 28 May 2014 16:22:04 +0000 (02:22 +1000)]
Code cleanup: avoid call to BLI_countlist

5 years agoCode cleanup: BLI_strdupn -> BLI_strdup
Campbell Barton [Wed, 28 May 2014 16:09:45 +0000 (02:09 +1000)]
Code cleanup: BLI_strdupn -> BLI_strdup

5 years agoCode cleanup: spelling
Campbell Barton [Mon, 9 Jun 2014 01:01:51 +0000 (11:01 +1000)]
Code cleanup: spelling

5 years agoCycles: Support builtin images for OSL shading backend
Sergey Sharybin [Thu, 12 Jun 2014 07:26:48 +0000 (13:26 +0600)]
Cycles: Support builtin images for OSL shading backend

This means packed images and movies are now supported when using OSL
backend for material shading.

Uses special file name to distinguish whether image is builtin or not.
This part might become a bit smarted or optimized a bit, but it's good
enough with this implementation already.