blender-staging.git
6 years agoignore in-source doc building dirs
Campbell Barton [Sun, 27 Jul 2014 12:04:10 +0000 (22:04 +1000)]
ignore in-source doc building dirs

6 years agoFix uninitialized vars
Campbell Barton [Sun, 27 Jul 2014 07:56:24 +0000 (17:56 +1000)]
Fix uninitialized vars

6 years agoInstall_deps: forgot to cleanup that in latest commits.
Bastien Montagne [Sun, 27 Jul 2014 07:14:29 +0000 (09:14 +0200)]
Install_deps: forgot to cleanup that in latest commits.

6 years agoCMake/MSVC: use '/SAFESEH:NO' linker flag, needed for some systens (D682)
Campbell Barton [Sun, 27 Jul 2014 03:50:21 +0000 (13:50 +1000)]
CMake/MSVC: use '/SAFESEH:NO' linker flag, needed for some systens (D682)

6 years agoStyle cleanup GHOST/Win32
Campbell Barton [Sun, 27 Jul 2014 03:40:39 +0000 (13:40 +1000)]
Style cleanup GHOST/Win32

6 years agoFix T41180: Crash when using motion blur with Freestyle.
Tamito Kajiyama [Sat, 26 Jul 2014 18:05:17 +0000 (03:05 +0900)]
Fix T41180: Crash when using motion blur with Freestyle.

In pipeline.c, do_render_3d() is called multiple times for each frame when
motion blur is used.  This caused duplicates of the same struct Render instance
in re->freestyle_renders, resulting in fatal double freeing of allocated memory.

6 years agoOSX/GHOST: Using lion_fullscreen suffers from an uncovered problem when called from...
Jens Verwiebe [Sat, 26 Jul 2014 16:51:39 +0000 (18:51 +0200)]
OSX/GHOST: Using lion_fullscreen suffers from an uncovered problem when called from operator, disabled for now so ALT-F11
uses old behavior again. OSX menu and CTL-CMD-F still work as lion fullscreen as well as right-upper corner fs window-icon
- We must investigate here why double promotion happens from op calls ( dispatchEvents on redraw cause duplicated calls here )
- The actual op calls cause fs to be in a wrong state, so also mousehandles fail and CTX_wm_window(C) is not valid.
- similar problem is with quit op, which does not close the app right ( totblocks )
- i would prefer to try getting direct os function call here rather

6 years agoOSX/cmake: little tweak for last commit
Jens Verwiebe [Sat, 26 Jul 2014 16:39:45 +0000 (18:39 +0200)]
OSX/cmake: little tweak for last commit

6 years agoOSX/cmake: update buildsys for new osl/llvm/oiio usage, also use osx_locals.map in...
Jens Verwiebe [Sat, 26 Jul 2014 16:10:10 +0000 (18:10 +0200)]
OSX/cmake: update buildsys for new osl/llvm/oiio usage, also use osx_locals.map in cmake
- fixes T40887

6 years agoAdding Mask select mode to Assign weights from Bone Heat (when called in Weight Paint...
gaiaclary [Sat, 26 Jul 2014 15:54:18 +0000 (17:54 +0200)]
Adding Mask select mode to Assign weights from Bone Heat (when called in Weight Paint mode)

Reviewers: campbellbarton

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

6 years agoNew compositor node "Sun Beams"
Lukas Tönne [Sat, 26 Jul 2014 10:59:29 +0000 (12:59 +0200)]
New compositor node "Sun Beams"

This allows adding a "fake" sun beam effect, simulating crepuscular rays
from light being scattered in a medium like the atmosphere or deep water.
Such effects can be created also by renderers using volumetric lighting,
but the compositor feature is a lot cheaper and is independent from 3D
rendering. This makes it ideally suited for motion graphics.

The implementation uses am optimized accumulation method for gathering
color values along a line segment. The inner buffer loop uses fixed
offset increments to avoid unnecessary multiplications and avoids
variables by using compile-time specialization (see inline comments
for further details).

6 years agoCorrect includes on different endian systems
Campbell Barton [Sat, 26 Jul 2014 08:39:27 +0000 (18:39 +1000)]
Correct includes on different endian systems

6 years agoFix bug in validate mesh code (could use index out of range).
Bastien Montagne [Fri, 25 Jul 2014 14:45:26 +0000 (16:45 +0200)]
Fix bug in validate mesh code (could use index out of range).

6 years agoCycles Bake: show progress bar during bake
Dalai Felinto [Tue, 22 Jul 2014 21:41:01 +0000 (18:41 -0300)]
Cycles Bake: show progress bar during bake

Baking progress preview is not possible, in parts due to the way the API
was designed. But at least you get to see the progress bar while baking.

Reviewers: sergey

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

6 years agoMinor changes:
Antony Riakiotakis [Fri, 25 Jul 2014 13:27:03 +0000 (15:27 +0200)]
Minor changes:

* Changing UV map updates the UV editor.
* UV Layer -> UV Map

6 years agoSwitch to Cuda 4.0 style api for kernel invocation. This is a small clean-up that...
Martijn Berger [Fri, 25 Jul 2014 11:33:19 +0000 (13:33 +0200)]
Switch to Cuda 4.0 style api for kernel invocation. This is a small clean-up that has no functional changes but makes code a bit more readable.

Differential revision: https://developer.blender.org/D659

Reviewed by: Sergey Sharybin, Thomas Dinges

6 years agoInstall_deps: Force to always compile OCIO for now.
Bastien Montagne [Fri, 25 Jul 2014 10:52:40 +0000 (12:52 +0200)]
Install_deps: Force to always compile OCIO for now.

This is a much simpler fix to that libyaml-cpp mess, since doing it that way we get our static own
libyaml-cpp... And this should work for all platforms (realized libymal-cpp-ver option was only
implemented for deb-like distro, since it was the first place where issue showed up :/ ).

6 years agoInstall_deps: Update OSL to 1.5.10, llvm to 3.4 and oiio to 1.4.11.
Bastien Montagne [Fri, 25 Jul 2014 10:43:05 +0000 (12:43 +0200)]
Install_deps: Update OSL to 1.5.10, llvm to 3.4 and oiio to 1.4.11.

Note: had to swicth back to own repo for osl as well, ILM guys seem unable to handle
CMake build system properly!

6 years agoFix inconsistent use of print_error() and fprintf(stderr, ...) in MEM_guarded_printme...
Tamito Kajiyama [Fri, 25 Jul 2014 10:22:58 +0000 (19:22 +0900)]
Fix inconsistent use of print_error() and fprintf(stderr, ...) in MEM_guarded_printmemlist_internal().

Also extended the size of buf[] in print_error() to prevent mem_printmemlist_pydict_script[]
from getting truncated when MEM_printmemlist_pydict() is used.

Differential revision: https://developer.blender.org/D675

Reviewed by: Campbell Barton

6 years agoYet another OSL compilation fix...sorry.
Thomas Dinges [Fri, 25 Jul 2014 09:42:21 +0000 (11:42 +0200)]
Yet another OSL compilation fix...sorry.

6 years agoCycles: Drop old OSL closure compatibility code.
Thomas Dinges [Fri, 25 Jul 2014 09:42:01 +0000 (11:42 +0200)]
Cycles: Drop old OSL closure compatibility code.

This was added to keep custom OSL scripts with Toon and SSS closure calls working. 1 year after the change, we can drop the compatibility code now.

6 years agoOne more fix for new OSL libs.
Thomas Dinges [Fri, 25 Jul 2014 09:23:15 +0000 (11:23 +0200)]
One more fix for new OSL libs.

6 years agoOSX: adaptions needed for renewed osl/oiio/llvm
Jens Verwiebe [Fri, 25 Jul 2014 08:27:30 +0000 (10:27 +0200)]
OSX: adaptions needed for renewed osl/oiio/llvm

6 years agoFix atomix operations on unofficial 64bit archs
Matteo F. Vescovi [Thu, 24 Jul 2014 09:29:04 +0000 (11:29 +0200)]
Fix atomix operations on unofficial 64bit archs

6 years agoSource Checkers: Include intern/ libs we maintain in spelling checks
Campbell Barton [Fri, 25 Jul 2014 05:16:30 +0000 (15:16 +1000)]
Source Checkers: Include intern/ libs we maintain in spelling checks

6 years agoCMake: use a list for PLATFORM_LINKLIBS
Campbell Barton [Fri, 25 Jul 2014 04:35:53 +0000 (14:35 +1000)]
CMake: use a list for PLATFORM_LINKLIBS

6 years agoCycles: Updates for new OSL 1.5 API.
Thomas Dinges [Thu, 24 Jul 2014 21:07:49 +0000 (23:07 +0200)]
Cycles: Updates for new OSL 1.5 API.

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

Patch by Sergey and myself.

6 years agoBuildbot: Never write 'master' branch in packed file names.
Bastien Montagne [Thu, 24 Jul 2014 17:34:32 +0000 (19:34 +0200)]
Buildbot: Never write 'master' branch in packed file names.

6 years agoImplement option to parent object to undistorted position of 2D track
Sergey Sharybin [Thu, 24 Jul 2014 15:00:35 +0000 (21:00 +0600)]
Implement option to parent object to undistorted position of 2D track

6 years agoFix UI still allowing addition of slots in cycles if material did not
Antony Riakiotakis [Thu, 24 Jul 2014 13:27:48 +0000 (15:27 +0200)]
Fix UI still allowing addition of slots in cycles if material did not
use nodes.

6 years agoCorrection to recent rip-tear
Campbell Barton [Thu, 24 Jul 2014 13:12:37 +0000 (23:12 +1000)]
Correction to recent rip-tear

6 years agoFix T40925: Scene gravity hard limited
Sergey Sharybin [Thu, 24 Jul 2014 13:18:00 +0000 (19:18 +0600)]
Fix T40925: Scene gravity hard limited

Remove hard limit, but keep soft limit because it might cause some
negative effect on physics stability.

6 years agoFixes:
Antony Riakiotakis [Thu, 24 Jul 2014 13:18:49 +0000 (15:18 +0200)]
Fixes:

* Crash with image drag'n'drop
* Drag'n drop color to paint 2d canvas not working
* Change "Layers" to "Slots" to appease purists.

6 years agoCode cleanup: ghost style
Campbell Barton [Thu, 24 Jul 2014 11:39:27 +0000 (21:39 +1000)]
Code cleanup: ghost style

6 years agoFix T41160: Rendering duplifaces crashed blender (cycles)
Sergey Sharybin [Thu, 24 Jul 2014 10:53:03 +0000 (16:53 +0600)]
Fix T41160: Rendering duplifaces crashed blender (cycles)

6 years agoMove stencil options to own panel under layer tab.
Antony Riakiotakis [Thu, 24 Jul 2014 10:41:39 +0000 (12:41 +0200)]
Move stencil options to own panel under layer tab.

6 years agoFix minor issues from recent commits.
Antony Riakiotakis [Thu, 24 Jul 2014 10:08:23 +0000 (12:08 +0200)]
Fix minor issues from recent commits.

* Clone from layer UI not working
* Get trash color when entering texture painting for the first time

6 years agoChange to previous commit, allow tweaking name at creation time.
Antony Riakiotakis [Thu, 24 Jul 2014 10:01:25 +0000 (12:01 +0200)]
Change to previous commit, allow tweaking name at creation time.

6 years agoUI cleanup:
Antony Riakiotakis [Thu, 24 Jul 2014 09:39:04 +0000 (11:39 +0200)]
UI cleanup:

New layer in texture painting will now allow entering image parameters,
similar to new image.

6 years agoAllow renaming images from list in layers panel by double clicking.
Antony Riakiotakis [Thu, 24 Jul 2014 09:05:37 +0000 (11:05 +0200)]
Allow renaming images from list in layers panel by double clicking.

Thanks to Sebastian Koenig for the report!

6 years agoMaterial could end up with invalid texture paint slots on changing
Antony Riakiotakis [Thu, 24 Jul 2014 08:29:55 +0000 (10:29 +0200)]
Material could end up with invalid texture paint slots on changing
engine.

6 years agoFix T41149: Dissolve Crash Due to AutoSmooth.
Bastien Montagne [Thu, 24 Jul 2014 07:15:38 +0000 (09:15 +0200)]
Fix T41149: Dissolve Crash Due to AutoSmooth.

bmesh's 'Join Edge Kill Vert' was using own code to delete loops, instead of
using `bm_kill_only_loop()`, which did not tag loop indices as dirty (causing
the crash), but also did not free loop's CDData...

6 years agoUI: prevent dragging a popup from activating a button
Campbell Barton [Thu, 24 Jul 2014 06:53:10 +0000 (16:53 +1000)]
UI: prevent dragging a popup from activating a button

6 years agoCorrect last commit
Campbell Barton [Thu, 24 Jul 2014 06:27:56 +0000 (16:27 +1000)]
Correct last commit

6 years agoCleanup: ui_but_is_editable flip return value
Campbell Barton [Thu, 24 Jul 2014 06:18:01 +0000 (16:18 +1000)]
Cleanup: ui_but_is_editable flip return value

6 years agoFreestyle: minor revisions of Python API docstrings and comments.
Tamito Kajiyama [Thu, 24 Jul 2014 02:44:31 +0000 (11:44 +0900)]
Freestyle: minor revisions of Python API docstrings and comments.

6 years agoA follow-up to Patch D623: minor code updates and style cleanup.
Tamito Kajiyama [Thu, 24 Jul 2014 02:43:16 +0000 (11:43 +0900)]
A follow-up to Patch D623: minor code updates and style cleanup.

6 years agoFreestyle Python API: Updates and speedups for the parameter editor
Tamito Kajiyama [Thu, 24 Jul 2014 02:08:04 +0000 (11:08 +0900)]
Freestyle Python API: Updates and speedups for the parameter editor

In addition to D319, this patch updates the parameter editor, the UI of Freestyle.

Using new API functionality and experience gained in making D319, this patch
provides a quite noticable speedup for commonly-used Freestyle linestyle modifiers.

As this patch touches a lot of code (and mainly the foundations) it is likely that
mistakes are made.  The patch has been tested with a regression suite for Freestyle
(https://github.com/folkertdev/freestyle-regression-tests/tree/master), but testing
with scenes used in production is very much appreciated.

Differential revision: https://developer.blender.org/D623

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

6 years agoUI: Correct code cleanup
Campbell Barton [Thu, 24 Jul 2014 05:08:52 +0000 (15:08 +1000)]
UI: Correct code cleanup

Old code commented to reverse list in fact did nothing, replacing with call to reverse broke menu arrowkeys direction.

6 years agoBuildbot: proper fix for 'testbuild overriding master builds' issue.
Bastien Montagne [Wed, 23 Jul 2014 20:33:37 +0000 (22:33 +0200)]
Buildbot: proper fix for 'testbuild overriding master builds' issue.

6 years agoRevert "Buildbot: more fixes, this time to upload logic."
Bastien Montagne [Wed, 23 Jul 2014 20:28:02 +0000 (22:28 +0200)]
Revert "Buildbot: more fixes, this time to upload logic."

This reverts commit b1e1646d945d8f7e15c7828a9a5fb0fc4f516f51.

Sorry, was a bit too quick on this one... :/

6 years agoBuildbot: more fixes, this time to upload logic.
Bastien Montagne [Wed, 23 Jul 2014 20:21:04 +0000 (22:21 +0200)]
Buildbot: more fixes, this time to upload logic.

We do not want testbuild to override 'official' (master) builds!

6 years agoUpdates/fixes for new UI messages.
Bastien Montagne [Wed, 23 Jul 2014 18:59:13 +0000 (20:59 +0200)]
Updates/fixes for new UI messages.

6 years agoBuildbot: fix to previous commit, to handle svn libs...
Bastien Montagne [Wed, 23 Jul 2014 17:34:30 +0000 (19:34 +0200)]
Buildbot: fix to previous commit, to handle svn libs...

6 years agoTexture painting:
Antony Riakiotakis [Wed, 23 Jul 2014 18:06:29 +0000 (20:06 +0200)]
Texture painting:

Add ability to select UV layer from the layer panel.

6 years agoEditmesh: Add option to tear boundary vertices when dissolving
Campbell Barton [Wed, 23 Jul 2014 17:26:24 +0000 (03:26 +1000)]
Editmesh: Add option to tear boundary vertices when dissolving

6 years agoBuildbot: rework to support branch selection.
Bastien Montagne [Wed, 23 Jul 2014 16:00:46 +0000 (18:00 +0200)]
Buildbot: rework to support branch selection.

Issue with previous code was that branch selected was applied to all repositories.
To be able to control branch on a per-repo basis, we need to use codebases instead.

This commit only enables branch (master/testbuild) and revision selection for master,
we probably do not need this for submodules currently (easy to enable anyway).

Note: tested on local buildbot setup, for linux only (up to build step, have no build env).

6 years agoBake-API: Test for cyclic node connection
Dalai Felinto [Wed, 23 Jul 2014 14:33:29 +0000 (11:33 -0300)]
Bake-API: Test for cyclic node connection

If the active image node contributes to the final material shader
(meaning it's either directly or indirectly connected to an Output Node)
the user will receive an alert about circular dependency.

Similar to what we do for Blender internal the baking will still happen,
but the user will receive the alert which should prevent the image
saving to happen if the result was not intentional.

Core function to check for node output written by Lukas Toenne.

Reviewers: lukastoenne, campbellbarton

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

6 years agoExtended mathutils.Vector.orthogonal() to accept a 2D vector.
Tamito Kajiyama [Wed, 23 Jul 2014 14:08:55 +0000 (23:08 +0900)]
Extended mathutils.Vector.orthogonal() to accept a 2D vector.

Reviewer: Campbell Barton

Differential revision: https://developer.blender.org/D668

6 years agoFix T41157
Antony Riakiotakis [Wed, 23 Jul 2014 14:05:35 +0000 (16:05 +0200)]
Fix T41157

Was an issue with python interpretation error. Second part of the bug is
fixed by Campbell.
also minor UI tweak for occlusion UI.

6 years agoOcclusion Query based selection.
Antony Riakiotakis [Wed, 23 Jul 2014 13:24:07 +0000 (15:24 +0200)]
Occlusion Query based selection.

This patch creates an interface for selection mechanisms in opengl. This
makes it possible to switch between occlusion query based or select
rendermode based selection transparently.

This is really useful on graphics drivers that do not accelerate the
select rendermode path (some ATI cards are notorious for this, and the
new path is used by default there), since occlusion queries are always
hardware accelerated due to their use in games.

The option can be found under system - selection. Auto just enables
occlusion queries for ATI users while the rest of the options enforce
one of the two methods always.

There is just one known change, previous code enforced nearest bone to
always get selected, even when mouse selecting near the same position, I
couldn't replicate the behaviour though.

patch by me with edits and review by Campbell.

Thanks!

6 years agoFix T41156: UILayout.prop_enum() does not observe "text" parameter override
Bastien Montagne [Wed, 23 Jul 2014 12:31:44 +0000 (14:31 +0200)]
Fix T41156: UILayout.prop_enum() does not observe "text" parameter override

We do have odd behaviors with name and expanded enums, but in this case it did
not made any sense at all! :)

Note the error was not in RNA, but in C UILayout api itself...

6 years agoFix T41116: Motion Blur causes random black surfaces on rigged models
Sergey Sharybin [Wed, 23 Jul 2014 11:59:37 +0000 (17:59 +0600)]
Fix T41116: Motion Blur causes random black surfaces on rigged models
Fix T41115: Motion Blur renders Objects Black - But not in Viewport Preview

This actually extends previous fix to normals and makes it all much nicer now.

Worth doing some intense testing, quick one worked just fine but there always
could be some corner cases.

6 years agoCleanup: BKE_scene_set_name mixed G.main & bmain arg
Campbell Barton [Wed, 23 Jul 2014 10:30:55 +0000 (20:30 +1000)]
Cleanup: BKE_scene_set_name mixed G.main & bmain arg

6 years agoFix for mixup in startup.blend data init when userprefs.blend was missing
Campbell Barton [Wed, 23 Jul 2014 10:20:59 +0000 (20:20 +1000)]
Fix for mixup in startup.blend data init when userprefs.blend was missing

Rename UI_init_userdef_factory to BLO_update_defaults_userpref_blend
This closely matches BLO_update_defaults_startup_blend so makes sense for them to be together.

6 years agoFix T41147: Static BVH shading problem
Sergey Sharybin [Wed, 23 Jul 2014 06:54:49 +0000 (12:54 +0600)]
Fix T41147: Static BVH shading problem
Fix T41079: Solid black render of object with negative scale and smooth shading

In both cases the issue was caused by negative scaled objects with single mesh
users for which scale gets applied when using static BVH.

Since the on-fly normals calculation land normals for such cases weren't flipped
leading them to point to a wrong direction.

Added a special object flag for this, which is a bit of a bummer because now
we've got less bits for real useful things, but this is the only way to get
proper normals without adding more complexity in the on-fly calculations.

6 years agoFreestyle: minor speedup by omitting unnecessary transform matrix operations in the...
Tamito Kajiyama [Mon, 19 May 2014 02:10:11 +0000 (11:10 +0900)]
Freestyle: minor speedup by omitting unnecessary transform matrix operations in the file loader.

Previously the imported mesh data were transformed by a local-to-world projection matrix
through NodeTransform.  Now that the file loader assumes the imported mesh data already
in the camera coordinate system, an indentity matrix was supplied to NodeTransform.
The present commit avoids this redundant matrix operation by using NodeGroup instead of
NodeTransform, recalling the latter is a subclass of the former with extra matrix computations.

6 years agoFix T41141, can't paint texture in cycles.
Antony Riakiotakis [Tue, 22 Jul 2014 19:05:54 +0000 (21:05 +0200)]
Fix T41141, can't paint texture in cycles.

The issue is actually that creating a new image in texture paint mode
will set it always as a stencil image. Internally, the code checks if
the painted image is the same as the stencil and if it is, no painting
is done.

Solution is to expose a boolena to the operator for setting the image as
a stencil (could be an enum in th future for more uses)

Stencil UI is a bit weird here, will definitely redesign.

6 years agoFix crash in cases when first BA step happens with all zero-weighted tracks
Sergey Sharybin [Tue, 22 Jul 2014 18:46:26 +0000 (00:46 +0600)]
Fix crash in cases when first BA step happens with all zero-weighted tracks

6 years agoBuildbot: fix submodule branch issue (we have to fix it on 'master', since default
Bastien Montagne [Tue, 22 Jul 2014 18:21:58 +0000 (20:21 +0200)]
Buildbot: fix submodule branch issue (we have to fix it on 'master', since default
one can be overriden by custom setting for force scheduler).

6 years agoTexture paint:
Antony Riakiotakis [Tue, 22 Jul 2014 17:34:37 +0000 (19:34 +0200)]
Texture paint:

* paint slots from cycles only include texture image types
* tweaking with select mouse no longer confirms on release

6 years agoUpdate buildbot conf, to enable a 'testbuild' branch in 'force' scheduler.
Bastien Montagne [Tue, 22 Jul 2014 17:46:36 +0000 (19:46 +0200)]
Update buildbot conf, to enable a 'testbuild' branch in 'force' scheduler.

6 years agoTiny change for gsoc paint curve drawing: numpad enter now draws the curve too.
Thomas Beck [Tue, 22 Jul 2014 17:12:34 +0000 (19:12 +0200)]
Tiny change for gsoc paint curve drawing: numpad enter now draws the curve too.

6 years agoCode cleanup, unneeded variable, always true when used, not used when
Antony Riakiotakis [Tue, 22 Jul 2014 09:57:03 +0000 (11:57 +0200)]
Code cleanup, unneeded variable, always true when used, not used when
set

6 years agoFreestyle: removed the context switch button from the Freestyle panel in the Render...
Tamito Kajiyama [Tue, 22 Jul 2014 07:39:29 +0000 (16:39 +0900)]
Freestyle: removed the context switch button from the Freestyle panel in the Render properties window.

The button was intended to guide new users of Freestyle, but actually that is a matter
of documentation.  The button is unlikely to be frequently used once users get familiar
with Freestyle panels in other contexts.  Now that Freestyle has been part of Blender
since a while, it seems time to clean the UI.

6 years agoFreestyle: added a note on #include "DNA_material_types.h".
Tamito Kajiyama [Sun, 20 Jul 2014 08:54:06 +0000 (17:54 +0900)]
Freestyle: added a note on #include "DNA_material_types.h".

6 years agoFreestyle: Fix for UI text of the "use_tips" line style property.
Tamito Kajiyama [Sun, 20 Jul 2014 07:22:25 +0000 (16:22 +0900)]
Freestyle: Fix for UI text of the "use_tips" line style property.

6 years agoCleanup: pep8 & redundant vars
Campbell Barton [Tue, 22 Jul 2014 02:03:15 +0000 (12:03 +1000)]
Cleanup: pep8 & redundant vars

6 years agoFix missing include
Campbell Barton [Tue, 22 Jul 2014 01:53:24 +0000 (11:53 +1000)]
Fix missing include

6 years agoFix T41086: VSE separate images increases file size abnormally.
Bastien Montagne [Mon, 21 Jul 2014 20:55:06 +0000 (22:55 +0200)]
Fix T41086: VSE separate images increases file size abnormally.

We were copying everything from the old sequence into each new ones... including the stripdata,
which for image sequences is an array with one item per image!

So bug was an exponential one, separating strips of a few tens of images was insensible, while
separating a strip of 1000 images would add above 250MB to file size (and RAM usage too)!

6 years agoMake clone tool UI slightly less horrible.
Antony Riakiotakis [Mon, 21 Jul 2014 17:24:03 +0000 (19:24 +0200)]
Make clone tool UI slightly less horrible.

Move clone tool options as well as layer selection to the brush panel.
That should make its use more apparent and, most importantly, easy.

6 years agoFix T40839: Object Font Text Rendering Bug
Sergey Sharybin [Mon, 21 Jul 2014 15:30:53 +0000 (21:30 +0600)]
Fix T40839: Object Font Text Rendering Bug

The issue was caused by the wrong objects order for
convertblender.c. Dependency graph totally missed
handling of this situation.

Fixed now, but it's not that pretty, don't try this
at home obviously. But consider this to be good enough
for the current dependency graph.

Details are in the build_dag_object().

6 years agoTransform: edit to recent commit
Campbell Barton [Mon, 21 Jul 2014 15:24:43 +0000 (01:24 +1000)]
Transform: edit to recent commit

Copying long comments about & `#if 0` is hint it could be defined in one place.

6 years agoFix T40432: Scaling to zero with manipulate center points works precisely on second...
Bastien Montagne [Mon, 21 Jul 2014 15:13:48 +0000 (17:13 +0200)]
Fix T40432: Scaling to zero with manipulate center points works precisely on second time

Commented out the 'no zero' protection of scaling transforms for numinput.

Issue is, once an axis has null scale, you can't regrow it from transform code
(you have to directly edit the scale property). This is not ideal, but getting
good behavior in this case is hairy...

Yet, when using numinput, you type precise values, so if you want to set it to zero,
set it to zero. User is assumed responsible, we should avoid too much 'invisible magic'
when handling precise inputs. ;)

Note: an idea for possible future feature would be to have an 'absolute' mode for numinput
(allowing to type in real value, not factors).

6 years agoFix T41128: Box selection bug with armatures.
Bastien Montagne [Mon, 21 Jul 2014 13:49:16 +0000 (15:49 +0200)]
Fix T41128: Box selection bug with armatures.

Calling `glLoadName()` was possible with '-1' value (65535 actually), in `draw_pose_bones()`...

Note I think bug exists since ages (at least, seems to be already present in 2008
when drawarmature.c was added in repo)!

Odd behavior reported (issue only affected objects once parented to the armature) was
due to ordering stuff, since only objects drawn *after* the armature were affected.

6 years agoPy/API: Improve intersect_line_line with parallel lines
Campbell Barton [Mon, 21 Jul 2014 13:13:21 +0000 (23:13 +1000)]
Py/API: Improve intersect_line_line with parallel lines

Now comparing the distance between line-intersection points
to see how close lines are - doesn't fail in the parallel case.

6 years agoBugfix T41133: Audio: Speakers with animated pitch cause clicks in rendered animation...
Jörg Müller [Mon, 21 Jul 2014 12:24:37 +0000 (14:24 +0200)]
Bugfix T41133: Audio: Speakers with animated pitch cause clicks in rendered animations, crashes or huge filesizes in rendered audio

Crash happened when the pitch value got <= 0, preventing this now.

6 years agoFix errors in hsv calculation from recent optimization patch.
Antony Riakiotakis [Mon, 21 Jul 2014 10:33:49 +0000 (12:33 +0200)]
Fix errors in hsv calculation from recent optimization patch.

Code was different from original here, result was apparent in color
picker wedge position.

6 years agoCleanup
Campbell Barton [Mon, 21 Jul 2014 10:23:17 +0000 (20:23 +1000)]
Cleanup

6 years agoGSOC 2013 paint
Antony Riakiotakis [Mon, 21 Jul 2014 10:02:05 +0000 (12:02 +0200)]
GSOC 2013 paint

Yep, at last it's here!

There are a few minor issues remaining but development can go on in
master after discussion at blender institute.

For full list of features see:

http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting

Thanks to Sergey and Campbell for the extensive review and to the
countless artists that have given their input and reported issues during
development.

6 years agoMath Lib: rename mul_serie_m3 to mul_m3_series & reorder args
Campbell Barton [Mon, 21 Jul 2014 08:55:12 +0000 (18:55 +1000)]
Math Lib: rename mul_serie_m3 to mul_m3_series & reorder args

Importantly, reversed mul_serie_m3 argument order (so it matches the m4 function)

6 years agoOptimisation to rgb <-> hsv/l conversion
Antony Riakiotakis [Mon, 21 Jul 2014 07:26:39 +0000 (09:26 +0200)]
Optimisation to rgb <-> hsv/l conversion

Basically avoid redundant computations. Gives ~1-4% speedup in the compositor depending on the use case.

For more info see: http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv

Reviewers: psy-fi, sergey

Subscribers: campbellbarton

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

6 years agoMath Lib: Add isect_point_tri_v3
Campbell Barton [Mon, 21 Jul 2014 06:58:17 +0000 (16:58 +1000)]
Math Lib: Add isect_point_tri_v3

Add to Python via mathutils.geometry

6 years agobmesh py api: face_split_edgenet missed NULL check
Campbell Barton [Mon, 21 Jul 2014 02:42:00 +0000 (12:42 +1000)]
bmesh py api: face_split_edgenet missed NULL check

6 years agoCleanup
Campbell Barton [Mon, 21 Jul 2014 00:53:07 +0000 (10:53 +1000)]
Cleanup

6 years agoCorrection to 7c7b730, multiplication order was flipped
Sergey Sharybin [Sun, 20 Jul 2014 14:44:42 +0000 (20:44 +0600)]
Correction to 7c7b730, multiplication order was flipped

That's really annoying that multiplication order is flipped
comparing mat3 and mat4 cases, but for the purposes of not
breaking all the branches which might use this stuff we'd
better keep order consistent with old version for now.

Suggestion here would be to make order consistent but rename
this functions to mult_* to make compilation fail instead
of failing and using wrong order silently.

6 years agoUpdate buildbot config to latest actual version
Sergey Sharybin [Sun, 20 Jul 2014 12:00:39 +0000 (18:00 +0600)]
Update buildbot config to latest actual version

6 years agoSequencer: Fix wrong blur result when one of the sizes is zero
Sergey Sharybin [Sun, 20 Jul 2014 09:37:07 +0000 (15:37 +0600)]
Sequencer: Fix wrong blur result when one of the sizes is zero

6 years agoEarly out from gaussian blur if both sizes are zero
Sergey Sharybin [Sun, 20 Jul 2014 08:32:09 +0000 (14:32 +0600)]
Early out from gaussian blur if both sizes are zero

6 years agoBugfix T41042: Irrelevant Bezier handles still affect Graph Editor Show All
Joshua Leung [Sun, 20 Jul 2014 07:22:22 +0000 (19:22 +1200)]
Bugfix T41042: Irrelevant Bezier handles still affect Graph Editor Show All

The "Show All" and "Show Selected" operators in the Graph Editor was taking into
account all handles on keyframes, even when some of those would be invalid and/or
set to nonsense values (e.g. for any interpolation mode other than "Bezier")