blender.git
7 years agoUI: report if WM_OT_call_menu uses an unknown menu
Campbell Barton [Mon, 10 Feb 2014 03:17:33 +0000 (14:17 +1100)]
UI: report if WM_OT_call_menu uses an unknown menu

7 years agoUI: fix for issue in last commit, popups show above the buttons again
Campbell Barton [Mon, 10 Feb 2014 02:44:59 +0000 (13:44 +1100)]
UI: fix for issue in last commit, popups show above the buttons again

7 years agoUI: refactor menus to remove menus encoded in strings
Campbell Barton [Mon, 10 Feb 2014 01:52:35 +0000 (12:52 +1100)]
UI: refactor menus to remove menus encoded in strings

On every redraw a single unopened dropdown boxe would translate
and convert every EnumPropertyItem into a string,
then decode every item, and search those items to find the name of the button to draw.

Replace this with a custom menu callback for RNA enums,
tooltips for enums now show too.

7 years agoUI: use RNA for colorband interpolation menu
Campbell Barton [Sun, 9 Feb 2014 19:52:57 +0000 (06:52 +1100)]
UI: use RNA for colorband interpolation menu

7 years agoOSX/scons: allow for compiling with clang-openmp-3.4
Jens Verwiebe [Sun, 9 Feb 2014 17:03:13 +0000 (18:03 +0100)]
OSX/scons: allow for compiling with clang-openmp-3.4
See: http://clang-omp.github.io
+ fix a longstanding bad include in darwin-config

7 years agoCode cleanup: Remove Debug closure declaration.
Thomas Dinges [Sun, 9 Feb 2014 13:41:45 +0000 (14:41 +0100)]
Code cleanup: Remove Debug closure declaration.

7 years agoCode cleanup: fix compiler warning with clang.
Brecht Van Lommel [Sun, 9 Feb 2014 12:56:49 +0000 (13:56 +0100)]
Code cleanup: fix compiler warning with clang.

7 years agoCycles: use COMPAT_ENGINES mechanism for UI panels.
Jonas Eschenburg [Sun, 9 Feb 2014 12:53:58 +0000 (13:53 +0100)]
Cycles: use COMPAT_ENGINES mechanism for UI panels.

This way addons like network renderers can more easily reuse them.

Reviewed By: brecht

7 years agoRNA: add RNA_enum_from_identifier, RNA_enum_from_value search functions
Campbell Barton [Sun, 9 Feb 2014 06:31:02 +0000 (17:31 +1100)]
RNA: add RNA_enum_from_identifier, RNA_enum_from_value search functions

also fix leak in RNA_enum_is_equal

7 years agoUI: replace uiPupMenuOkee & uiPupMenuSaveOver with WM_operator_confirm
Campbell Barton [Sun, 9 Feb 2014 01:28:14 +0000 (12:28 +1100)]
UI: replace uiPupMenuOkee & uiPupMenuSaveOver with WM_operator_confirm

7 years agoUI: improve reports popup
Campbell Barton [Sun, 9 Feb 2014 01:00:03 +0000 (12:00 +1100)]
UI: improve reports popup

- use labels rather then menu items (items selected but did nothing)
- each report gets its own icon (icons besides first were ignored)
- use uiPupMenu rather then string based menu.

7 years agoCode cleanup: remove unused menu functions
Campbell Barton [Sun, 9 Feb 2014 00:25:32 +0000 (11:25 +1100)]
Code cleanup: remove unused menu functions

7 years agoUI: use proportional option while dragging buttons
Campbell Barton [Sat, 8 Feb 2014 21:42:45 +0000 (08:42 +1100)]
UI: use proportional option while dragging buttons

7 years agoRNA: add flag to be used for changing numbers proportionally
Campbell Barton [Sat, 8 Feb 2014 19:30:48 +0000 (06:30 +1100)]
RNA: add flag to be used for changing numbers proportionally

7 years agoPy Docs: move bpy.props options and subtype flags into generic defines
Campbell Barton [Sat, 8 Feb 2014 19:26:55 +0000 (06:26 +1100)]
Py Docs: move bpy.props options and subtype flags into generic defines

added some missing flags into docs too.

7 years agoRNA API: remove unused PROP_NEVER_CLAMP flag
Campbell Barton [Sat, 8 Feb 2014 18:51:22 +0000 (05:51 +1100)]
RNA API: remove unused PROP_NEVER_CLAMP flag

7 years agoFixes to make script_load_keymap test pass.
Howard Trickey [Sat, 8 Feb 2014 15:52:56 +0000 (10:52 -0500)]
Fixes to make script_load_keymap test pass.

Removed Armature Sketch keymap, as the entries that were there
appear to have been moved to the Armature keymap.
Removed the Script keymap. The Script space is deprecated
and I could find no way that the keymap could be activated.

7 years agoUI: support for alpha tab background
Campbell Barton [Sat, 8 Feb 2014 14:38:20 +0000 (01:38 +1100)]
UI: support for alpha tab background

7 years agoT38482: Fixed the Crashing. If the same UV Layer is referenced multiple times, then...
gaiaclary [Sat, 8 Feb 2014 12:14:58 +0000 (13:14 +0100)]
T38482: Fixed the Crashing. If the same UV Layer is referenced multiple times, then the last imported data set for this UV Layer wins.

7 years agoFix collada compile ( kudos ti ideasman )
Jens Verwiebe [Fri, 7 Feb 2014 23:24:49 +0000 (00:24 +0100)]
Fix collada compile ( kudos ti ideasman )

7 years agoUI: multi-drag number button editing
Campbell Barton [Fri, 7 Feb 2014 22:34:01 +0000 (09:34 +1100)]
UI: multi-drag number button editing

clicking and dragging down edits multiple number buttons at once. (patch D270)

7 years agoUI: split ui_button_execute_do into begin/end
Campbell Barton [Fri, 7 Feb 2014 22:12:59 +0000 (09:12 +1100)]
UI: split ui_button_execute_do into begin/end

7 years agoUI: butstore API to generalize button storage for modal handlers
Campbell Barton [Fri, 7 Feb 2014 22:03:25 +0000 (09:03 +1100)]
UI: butstore API to generalize button storage for modal handlers

7 years agoCycles Standalone: Expose Shader settings in the xml api.
Thomas Dinges [Fri, 7 Feb 2014 22:23:37 +0000 (23:23 +0100)]
Cycles Standalone: Expose Shader settings in the xml api.

7 years agoCycles Standalone: Exit when no xml file can be found.
Thomas Dinges [Fri, 7 Feb 2014 21:29:49 +0000 (22:29 +0100)]
Cycles Standalone: Exit when no xml file can be found.

7 years agosome systems didnt define NULL
Campbell Barton [Fri, 7 Feb 2014 21:09:49 +0000 (08:09 +1100)]
some systems didnt define NULL

7 years agoListBase API: add utility api funcs for clearing and checking empty
Campbell Barton [Fri, 7 Feb 2014 19:07:10 +0000 (06:07 +1100)]
ListBase API: add utility api funcs for clearing and checking empty

7 years agoTexture Nodes: "At" distortion node was missing from the add menu.
Thomas Dinges [Fri, 7 Feb 2014 19:12:42 +0000 (20:12 +0100)]
Texture Nodes: "At" distortion node was missing from the add menu.

7 years agoFix T38538: repeat history menu show operators that can't be repeated.
Brecht Van Lommel [Fri, 7 Feb 2014 16:10:36 +0000 (17:10 +0100)]
Fix T38538: repeat history menu show operators that can't be repeated.

7 years agoBevel Modifier: fix bug T37916, bad result after mirror modifier.
Howard Trickey [Fri, 7 Feb 2014 15:43:28 +0000 (10:43 -0500)]
Bevel Modifier: fix bug T37916, bad result after mirror modifier.

Bevel needs the vertex normals to be correct and they are not
normally recalculated after a previous modifier, like mirror.
Adding 'dependsOnNormals' -> returns true to modifier info
for Bevel fixes the problem.

7 years agoUI: avoid O(n2) for old button lookups since both lists are almost always aligned
Campbell Barton [Fri, 7 Feb 2014 15:22:32 +0000 (02:22 +1100)]
UI: avoid O(n2) for old button lookups since both lists are almost always aligned

7 years agoCode cleanup: move old->new button search into ui_but_find_old
Campbell Barton [Fri, 7 Feb 2014 14:46:43 +0000 (01:46 +1100)]
Code cleanup: move old->new button search into ui_but_find_old

7 years agoFix for button comparisons ignoring rna-index
Campbell Barton [Fri, 7 Feb 2014 14:33:39 +0000 (01:33 +1100)]
Fix for button comparisons ignoring rna-index

7 years agoAdd Tabs for Movie Clip Editor
Sergey Sharybin [Fri, 7 Feb 2014 14:26:43 +0000 (20:26 +0600)]
Add Tabs for Movie Clip Editor

Based on the patch from Sebastian Koenig, discussed with Jonathan Williamson

  https://developer.blender.org/T38172

Also removed redundant modes from clip editor.

Reviewers: brecht, carter2422

Reviewed By: carter2422

CC: sebastian_k, carter2422
Differential Revision: https://developer.blender.org/D293

7 years agoFix T38370: Ubuntu 14.04 opencolorio segfaults blender on parsing colormanagement...
Bastien Montagne [Fri, 7 Feb 2014 14:21:19 +0000 (15:21 +0100)]
Fix T38370: Ubuntu 14.04 opencolorio segfaults blender on parsing colormanagement/config.ocio

Ubuntu hack: add a --libyaml-cpp-ver parameter, to try to force installing a given version of this lib...
(only for DEB-like distro, I dare hope Trusty (!) is the only affected distro.
Not happy at all to have such things here, this is actually an Ubuntu bug, but will have to live with it I guess.

7 years agoFix T36979: wrong render of textured mesh lights with multiple importance sampling.
Brecht Van Lommel [Fri, 7 Feb 2014 14:08:50 +0000 (15:08 +0100)]
Fix T36979: wrong render of textured mesh lights with multiple importance sampling.

7 years agoFix T38521: skin modifier crash with zero radius vertices.
Brecht Van Lommel [Fri, 7 Feb 2014 12:41:19 +0000 (13:41 +0100)]
Fix T38521: skin modifier crash with zero radius vertices.

7 years agoFix T38503: crash in non-threadsafe VBO free code during render.
Brecht Van Lommel [Fri, 7 Feb 2014 12:33:15 +0000 (13:33 +0100)]
Fix T38503: crash in non-threadsafe VBO free code during render.

7 years agoQuiet warning
Campbell Barton [Thu, 6 Feb 2014 20:39:44 +0000 (07:39 +1100)]
Quiet warning

7 years ago* Typo fix.
Thomas Dinges [Thu, 6 Feb 2014 20:53:58 +0000 (21:53 +0100)]
* Typo fix.

7 years agoUI: Fix Cloth panel after 28936a415076, was too large and looked bad.
Thomas Dinges [Thu, 6 Feb 2014 20:45:43 +0000 (21:45 +0100)]
UI: Fix Cloth panel after 28936a415076, was too large and looked bad.

* Move Sewing Springs to a dedicated panel, the "Cloth" panel is too crowded already, and the sewing springs feature is nicely isolated.

7 years agoFix T38526: crash using blackbody node on background with multiple importance sampling.
Brecht Van Lommel [Thu, 6 Feb 2014 20:09:46 +0000 (21:09 +0100)]
Fix T38526: crash using blackbody node on background with multiple importance sampling.

7 years agoFix T38524: Cycles not rendering sky texture correct when the direction vector is...
Brecht Van Lommel [Thu, 6 Feb 2014 19:53:58 +0000 (20:53 +0100)]
Fix T38524: Cycles not rendering sky texture correct when the direction vector is not normalized.

7 years agoPatch T31269: Add sewing seams to cloth simulation
Daniel Genrich [Thu, 6 Feb 2014 17:44:05 +0000 (18:44 +0100)]
Patch T31269: Add sewing seams to cloth simulation

Description:
--------------------------
Use loose edges marked as seams as sewing springs.

Usage:
-------------------------
All this patch does is set the rest length to 0 and the stiffness to 1 for springs for loose edges marked as seams so that during the cloth simulation they will be brought together.

Example Video:
-------------------------
http://www.youtube.com/watch?v=-Y_bC0gjoM0

Original Patch by thesleepless (+ git patch by codemanx)

Thank you!

7 years agoFix T38516: crash when using color picker from redo panel.
Brecht Van Lommel [Thu, 6 Feb 2014 17:02:31 +0000 (18:02 +0100)]
Fix T38516: crash when using color picker from redo panel.

7 years agoFix T38515: python menu tooltip description affecting unrelated menus.
Brecht Van Lommel [Thu, 6 Feb 2014 15:14:58 +0000 (16:14 +0100)]
Fix T38515: python menu tooltip description affecting unrelated menus.

7 years agoFix compile error in last commit, forgot to include this change.
Brecht Van Lommel [Thu, 6 Feb 2014 15:10:17 +0000 (16:10 +0100)]
Fix compile error in last commit, forgot to include this change.

7 years agoCycles: add pass alpha threshold value to render layers.
Brecht Van Lommel [Thu, 6 Feb 2014 14:18:34 +0000 (15:18 +0100)]
Cycles: add pass alpha threshold value to render layers.

Z, Index, normal, UV and vector passes are only affected by surfaces with alpha
transparency equal to or higher than this threshold. With value 0.0 the first
surface hit will always write to these passes, regardless of transparency. With
higher values surfaces that are mostly transparent can be skipped until an opaque
surface is encountered.

7 years agoBye-bye FAST!
Sergey Sharybin [Thu, 6 Feb 2014 12:13:12 +0000 (18:13 +0600)]
Bye-bye FAST!

FAST detector has been replaced with fancier Harris,
so no need to keep FAST library in the sources now.

7 years agoFix wrong animation duration when using older Libav
Sergey Sharybin [Thu, 6 Feb 2014 09:57:32 +0000 (15:57 +0600)]
Fix wrong animation duration when using older Libav

7 years agoRemove unnecessary debug print
Sergey Sharybin [Thu, 6 Feb 2014 09:30:52 +0000 (15:30 +0600)]
Remove unnecessary debug print

7 years agoFix T38498: properly unlink scene pointers from SpaceNode.
Lukas Tönne [Thu, 6 Feb 2014 09:10:59 +0000 (10:10 +0100)]
Fix T38498: properly unlink scene pointers from SpaceNode.

This fixes the first case mentioned in the report. Has to do some ugly
DNA access to SpaceNode, unless we'd allow a bad level call there to do
it in ED_node ...

The second case has been fixed by @sergey in D274:
https://developer.blender.org/D274?vs=838&id=879#toc

So actually asan just did its job here, good to know!

7 years agoFix T38500: Audio of a scene strip can't be muted
Sergey Sharybin [Thu, 6 Feb 2014 07:50:42 +0000 (13:50 +0600)]
Fix T38500: Audio of a scene strip can't be muted

Exposed Audio Volume of a scene to properties of a scene strip.

7 years agoFix lamps drawing only partially in OpenGL render.
Brecht Van Lommel [Wed, 5 Feb 2014 21:13:18 +0000 (22:13 +0100)]
Fix lamps drawing only partially in OpenGL render.

It should draw lamps entirely, this happened due to hack to hide object centers.

7 years agoCycles Network rendering, remove some exception throwing, replace with saner error...
Martijn Berger [Wed, 5 Feb 2014 20:55:51 +0000 (21:55 +0100)]
Cycles Network rendering, remove some exception throwing, replace with saner error handling

This patch adds a network_error() function more alike how other devices handle error's

- it adds a check for errors on load_kernels to make sure we do not crash if rendering without a server.
- it uses the non throwing variation of boost::asio::read.

Reviewers: brecht

Reviewed By: brecht

CC: brecht
Differential Revision: https://developer.blender.org/D86

7 years agoFix T35328: Disk caches of multiple particle systems on a single object overwrite...
Sergey Sharybin [Wed, 5 Feb 2014 17:46:10 +0000 (23:46 +0600)]
Fix T35328: Disk caches of multiple particle systems on a single object overwrite each other

It was intended to work actually using particle cache's stack index
but this index might have been calculated incorrect in special case:

* With default cube scene, add particle system to the cube
* Add disk cache to the particle system
* Save file and reload it
* Add another particle system and enable disk cache

This would lead to two point caches with the same stack index of zero.
This happened because point cache indices list wasn't stored in the
.blend file so once you've reload your file blender doesn't know anything
about number or point caches used.

And what was even more confusing is that point cache indices list was
trying to be load from the file, but this failed because it wasn't in the
file.

This commit solves the root of the issue which is ability of producing
.blend file with two point caches using the same disk cache. This is
done by making it sure that point cache indices list is stored in the
.blend file. And also made it so disabling disk cache will tag it to
recalculate stack index.

Old broken files wouldn't magically start working, but fixing them is
rather simple manually by toggling Disk Cache option.

Reviewers: lukastoenne, brecht

CC: sergof
Differential Revision: https://developer.blender.org/D286

7 years agoFix T35810: Texture faces display white in 3D view, when used as a Particle Object
Sergey Sharybin [Wed, 5 Feb 2014 17:42:11 +0000 (23:42 +0600)]
Fix T35810: Texture faces display white in 3D view, when used as a Particle Object

This in fact seems some kind of video driver limitation, because it worked fine
on windows but failed on linux here. The guess is that textures doesn't always
work on display lists, or we simply do have some wrong OGL context somewhere.

This is a workaround for until bigger viewport draw refactor is done (as Brecht
mentioned display lists are deprecated in new OGL anyway).

7 years agoFix T35247: Particle texture behaves incorrectly after changing the number of particles
Sergey Sharybin [Wed, 5 Feb 2014 17:37:19 +0000 (23:37 +0600)]
Fix T35247: Particle texture behaves incorrectly after changing the number of particles

Root of the issue goes to the order of particle initialization which does
texture evaluation (which does depend on particle coordinate) and particle
birth coordinate calculation. So basically what happened is:

* Changing number of particles re-allocated all the particles,
  which sets their coordinate to (0,0,0)
* Texture evaluation used this non-initialized coordinate
* Coordinates were calculated for particles

Reshuffled code a bit so now texture evaluation happens after particles.
coordinate calculation. Basically moved texture evaluation to particle
reset function. Reset happens after initialization anyway and it does
know particle coordinates. Also, if reset is being called without init
then it's also kind of logical to re-evaluate texture because particle
coordinates might change.

7 years agoCode cleanup: replace magic constants with more verbose bitnames
Sergey Sharybin [Wed, 5 Feb 2014 15:30:18 +0000 (21:30 +0600)]
Code cleanup: replace magic constants with more verbose bitnames

7 years agoAdd debug print to ID update tagging
Sergey Sharybin [Wed, 5 Feb 2014 10:15:58 +0000 (16:15 +0600)]
Add debug print to ID update tagging

7 years agoFix player stubs after change in compositor
Jens Verwiebe [Wed, 5 Feb 2014 17:44:48 +0000 (18:44 +0100)]
Fix player stubs after change in compositor

7 years agoBuilding elbeem without openmp failed
Campbell Barton [Wed, 5 Feb 2014 15:26:08 +0000 (02:26 +1100)]
Building elbeem without openmp failed

7 years agoFix compilation
Sergej Reich [Wed, 5 Feb 2014 15:18:46 +0000 (16:18 +0100)]
Fix compilation

7 years agoScanfill: use poly_nr as an index rather then index + 1
Campbell Barton [Wed, 5 Feb 2014 15:10:19 +0000 (02:10 +1100)]
Scanfill: use poly_nr as an index rather then index + 1

7 years agoQuiet warning
Campbell Barton [Wed, 5 Feb 2014 14:11:42 +0000 (01:11 +1100)]
Quiet warning

7 years agoFix T36769: fluid sim modifier can crash blender
Daniel Genrich [Wed, 5 Feb 2014 14:30:10 +0000 (15:30 +0100)]
Fix T36769: fluid sim modifier can crash blender

Crash only happened when the number of openmp threads were greater than the resolution.

7 years agoScanfill: avoid converting int<>intptr_t for displist indices
Campbell Barton [Wed, 5 Feb 2014 14:07:18 +0000 (01:07 +1100)]
Scanfill: avoid converting int<>intptr_t for displist indices

7 years agoScanfill: malloc arrays and zero init members
Campbell Barton [Wed, 5 Feb 2014 14:02:22 +0000 (01:02 +1100)]
Scanfill: malloc arrays and zero init members

7 years agoFix T38340 and T38473: fixed Scene pointers in Composite and Defocus nodes don't...
Lukas Tönne [Wed, 5 Feb 2014 12:51:51 +0000 (13:51 +0100)]
Fix T38340 and T38473: fixed Scene pointers in Composite and Defocus nodes don't get updated based on context.

As discussed in T38340 the solution is to use the current scene from
context whenever feasible.

Composite does not use node->id at all now, the scene which owns the
compositing node tree is retrieved from context instead.

Defocus node->id is made editable by the user. By default it is not set,
which also will make it use the contextual scene and camera info.
The node->id pointer in Defocus is **not** cleared in older blend files.
This is done for backward compatibility: the node will then behave as
before in untouched scenes.

File Output nodes also don't store scene in node->id. This is only needed
when creating a new node for initializing the file format.

Reviewers: brecht, jbakker, mdewanchand

Reviewed By: brecht

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

7 years agoFix T38476: incorrect hair draw type after editing particle system in edit mode.
Brecht Van Lommel [Wed, 5 Feb 2014 12:53:34 +0000 (13:53 +0100)]
Fix T38476: incorrect hair draw type after editing particle system in edit mode.

7 years agoFix T38478: pin panel, then ctrl+click to collapse others incorrectly unpinned panels.
Brecht Van Lommel [Wed, 5 Feb 2014 12:39:39 +0000 (13:39 +0100)]
Fix T38478: pin panel, then ctrl+click to collapse others incorrectly unpinned panels.

7 years agoPyAPI: mathutils.Vector.cross now works for 2d vectors (returns a float)
Campbell Barton [Wed, 5 Feb 2014 12:32:51 +0000 (23:32 +1100)]
PyAPI: mathutils.Vector.cross now works for 2d vectors (returns a float)

also fixed crash when running on large vectors (raises exception now)

7 years agoFix T38466: F12 / ctrl F12 shortcuts not showing in Render menu.
Brecht Van Lommel [Wed, 5 Feb 2014 12:32:35 +0000 (13:32 +0100)]
Fix T38466: F12 / ctrl F12 shortcuts not showing in Render menu.

This is tricking the keymap system a bit to make it match, this use_viewport
option has no effect when invoked from the info space.

7 years agoFix T38471: parenting in the outliner was possible with library linked objects.
Brecht Van Lommel [Wed, 5 Feb 2014 12:16:15 +0000 (13:16 +0100)]
Fix T38471: parenting in the outliner was possible with library linked objects.

7 years agoFix for RNA stringifying enum-flags freeing wrong pointer.
Campbell Barton [Wed, 5 Feb 2014 12:08:34 +0000 (23:08 +1100)]
Fix for RNA stringifying enum-flags freeing wrong pointer.

7 years agoCode cleanup: use bool for static methods
Campbell Barton [Wed, 5 Feb 2014 11:36:15 +0000 (22:36 +1100)]
Code cleanup: use bool for static methods

7 years agoFix for vpaint_stroke_test_start returning operator flags, not bool
Campbell Barton [Wed, 5 Feb 2014 11:18:33 +0000 (22:18 +1100)]
Fix for vpaint_stroke_test_start returning operator flags, not bool

also use bools for paint callbacks

7 years agoChange confusing check discovered while working on HCL color wheel:
Antony Riakiotakis [Wed, 5 Feb 2014 08:45:14 +0000 (10:45 +0200)]
Change confusing check discovered while working on HCL color wheel:

COLOR widgets never get created with UI_GRAD_V_ALT values. This is
intended for HSVCUBE color sliders only so reverting this to old value
before it was substituted with a define, which was -1.

There's one case where COLOR buttons get defined with a1 value different
than -1 which is in ui_def_but_rna. There the step value of the RNA
property is used. However, that meant that if step equaled to 9, which
is UI_GRAD_V_ALT value (unlikely) or if UI_GRAD_V_ALT was changed to 10
in future, or we added check for e.g. UI_GRAD_L_ALT which is 10 in HCL
branch, color widget would not get a color selection menu spawned.

7 years agoBGE: Fixing memory corruption/double free when duplicating (e.g., addObject) LibLoade...
Mitchell Stokes [Tue, 4 Feb 2014 18:54:09 +0000 (10:54 -0800)]
BGE: Fixing memory corruption/double free when duplicating (e.g., addObject) LibLoaded lights.

7 years agoAttempt to fix OSL build error on Linux with latest OSL master.
Brecht Van Lommel [Tue, 4 Feb 2014 21:48:32 +0000 (22:48 +0100)]
Attempt to fix OSL build error on Linux with latest OSL 

7 years agoCycles: bvh_cardinal_curve_intersect intro SSE optimization
Sv. Lockal [Tue, 4 Feb 2014 19:38:53 +0000 (23:38 +0400)]
Cycles: bvh_cardinal_curve_intersect intro SSE optimization

Gives 5% speedup for koro_final.blend, 10-15% for hair.blend

Reviewed By: brecht

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

7 years agoCode cleanup: remove scdata from ScanFillContext
Campbell Barton [Tue, 4 Feb 2014 18:39:28 +0000 (05:39 +1100)]
Code cleanup: remove scdata from ScanFillContext

7 years agoScanfill: optimize filling curves, text, masks - skip calculating holes
Campbell Barton [Tue, 4 Feb 2014 18:22:21 +0000 (05:22 +1100)]
Scanfill: optimize filling curves, text, masks - skip calculating holes

Support for tagging polygon numbers when adding scanfill data,
saves having to calculate connectivity afterwards (which can take approx half overall scanfill time for complex curves).

7 years agoScanfill: minor optimization, comment unused code, avoid vert loop
Campbell Barton [Tue, 4 Feb 2014 18:00:17 +0000 (05:00 +1100)]
Scanfill: minor optimization, comment unused code, avoid vert loop

7 years agoCorrect 3d text editing update logic
Campbell Barton [Tue, 4 Feb 2014 16:49:39 +0000 (03:49 +1100)]
Correct 3d text editing update logic

- editmode operations were converting text->nurbs twice.
- cursor and selection operations were re-tessellating text every time.

7 years agoSCons: code cleanup, shorter way to determine makesrna output directory.
Lawrence D'Oliveiro [Tue, 4 Feb 2014 18:08:17 +0000 (19:08 +0100)]
SCons: code cleanup, shorter way to determine makesrna output directory.

Reviewed By: brecht

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

7 years agoSCons: cleaner determination of 32-bit/64-bit builds
Lawrence D'Oliveiro [Tue, 4 Feb 2014 17:55:32 +0000 (18:55 +0100)]
SCons: cleaner determination of 32-bit/64-bit builds

Try not to be x86-centric, remove unneeded blenderdeps variable.

Reviewed By: brecht

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

7 years agoFix missing $BLENDER_USER_DATAFILES in command line help text.
Lawrence D'Oliveiro [Tue, 4 Feb 2014 17:49:30 +0000 (18:49 +0100)]
Fix missing $BLENDER_USER_DATAFILES in command line help text.

Reviewed By: brecht

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

7 years agoCorrect help: -b/--background does not take a file argument
Lawrence D'Oliveiro [Tue, 4 Feb 2014 17:38:59 +0000 (18:38 +0100)]
Correct help: -b/--background does not take a file argument

The documentation for the -b/--background option incorrectly states that it
takes a <file>, however it can run also without a file with e.g. a script.

Reviewed By: brecht

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

7 years agoCleanup: remove completely all-static option, just too complex to support in modern...
Bastien Montagne [Tue, 4 Feb 2014 15:51:41 +0000 (16:51 +0100)]
Cleanup: remove completely all-static option, just too complex to support in modern linuxes!

7 years agoDeb-like distro may use either jack or jack2, add support for this.
Bastien Montagne [Tue, 4 Feb 2014 15:40:15 +0000 (16:40 +0100)]
Deb-like distro may use either jack or jack2, add support for this.

7 years agoFix cycles crash with float image textures on CPU without AVX support.
Brecht Van Lommel [Tue, 4 Feb 2014 15:04:07 +0000 (16:04 +0100)]
Fix cycles crash with float image textures on CPU without AVX support.

The AVX kernel functions for reading image textures could be get used from non-AVX
kernels. These are C++ class methods and need to be marked for inlining, all other
functions are static so they don't leak into other kernels.

7 years agoFix T38427: Sculpt mode dimension changes don't Undo
Sergey Sharybin [Tue, 4 Feb 2014 13:47:17 +0000 (19:47 +0600)]
Fix T38427: Sculpt mode dimension changes don't Undo

7 years agoFix T38411: Free keyframe handles do not snap to frames when duplicating
Sergey Sharybin [Tue, 4 Feb 2014 13:12:19 +0000 (19:12 +0600)]
Fix T38411: Free keyframe handles do not snap to frames when duplicating

7 years agoNode UI: Improved layout for the Shader Mapping node, to match UI guidelines better...
Thomas Dinges [Tue, 4 Feb 2014 12:21:30 +0000 (13:21 +0100)]
Node UI: Improved layout for the Shader Mapping node, to match UI guidelines better (top -> bottom layout).

Patch by Sebastian König. Thanks!

7 years agoFix T37577: Joining two objects with different UVs destroys UVs of one object in...
Bastien Montagne [Tue, 4 Feb 2014 11:09:12 +0000 (12:09 +0100)]
Fix T37577: Joining two objects with different UVs destroys UVs of one object in some specific, reproducable, cases

MLOOPUV CDlayers had "UV Coord" default name, instead of "UVMap", when it is mandatory matching MTEXPOLY and MLOOPUV to have the same name!

7 years agoView3d: fix for roll operating on locked views, now apply to user view
Campbell Barton [Tue, 4 Feb 2014 10:44:37 +0000 (21:44 +1100)]
View3d: fix for roll operating on locked views, now apply to user view

7 years agoView3d: move lock check for orbit into a function and use for dolly too
Campbell Barton [Tue, 4 Feb 2014 10:31:52 +0000 (21:31 +1100)]
View3d: move lock check for orbit into a function and use for dolly too

7 years agoFix for view lock checks with ndof ops, was incorrectly comparing flags
Campbell Barton [Tue, 4 Feb 2014 10:04:36 +0000 (21:04 +1100)]
Fix for view lock checks with ndof ops, was incorrectly comparing flags

7 years agoFix T38440: Segmentation fault in Movie Clip Editor
Alex Babahin [Tue, 4 Feb 2014 09:16:21 +0000 (15:16 +0600)]
Fix T38440: Segmentation fault in Movie Clip Editor

Issue was caused by NULL-pointer de-reference when post-processing
the frame without putting the frame to movie cache.

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