blender.git
6 years agocode cleanup: remove unused struct
Campbell Barton [Sun, 2 Jun 2013 02:25:40 +0000 (02:25 +0000)]
code cleanup: remove unused struct

6 years agoremove duplicate operator,
Campbell Barton [Sun, 2 Jun 2013 00:29:30 +0000 (00:29 +0000)]
remove duplicate operator,
select-split and unlink-selection did the same thing,
keep select split since it fits closer to mesh editmode and single key access (Ykey).

6 years agofix regression in reducing normal recalculation [#35595],
Campbell Barton [Sun, 2 Jun 2013 00:20:26 +0000 (00:20 +0000)]
fix regression in reducing normal recalculation [#35595],
pass the dirty-normal-state from the input dm to the output.

6 years agoAdded a short-cut button in the Freestyle Python Scripting mode for loading
Tamito Kajiyama [Sat, 1 Jun 2013 22:37:15 +0000 (22:37 +0000)]
Added a short-cut button in the Freestyle Python Scripting mode for loading
a style module file as a text datablock and appending it to the style module
stack.

6 years agoBug fix, own collection while testing
Ton Roosendaal [Sat, 1 Jun 2013 15:24:15 +0000 (15:24 +0000)]
Bug fix, own collection while testing

New OSX "Life resize" was also being called during opening of windows - when things are
not initialized yet. Crashed on opening full-screen window (which is animated in OSX).

6 years agoDon't hide sockets in the node properties panel. This feature is only useful to reduc...
Lukas Toenne [Sat, 1 Jun 2013 12:45:45 +0000 (12:45 +0000)]
Don't hide sockets in the node properties panel. This feature is only useful to reduce the size and clutter of actual nodes, in the panel it's better to show all meaningful inputs.

6 years agoExtended max size for group node types from 200 to 400, in case users need long socke...
Lukas Toenne [Sat, 1 Jun 2013 12:45:42 +0000 (12:45 +0000)]
Extended max size for group node types from 200 to 400, in case users need long socket names visible.

6 years agoFix for #35591:
Thomas Dinges [Sat, 1 Jun 2013 12:23:49 +0000 (12:23 +0000)]
Fix for #35591:
* Cycles Mix closure could render strange effects, when the user entered a value out of the 0...1 range. This was already clamped for OSL, clamp for SVM as well.

6 years agoUpdate libmv from own branch
Sergey Sharybin [Sat, 1 Jun 2013 10:30:46 +0000 (10:30 +0000)]
Update libmv from own branch

Fixes compilation error on win32 and shall give few
cpu ticks boost by passing vectors by reference rather
than by value.

6 years agoUpdtae buildbot's master.vfg
Sergey Sharybin [Sat, 1 Jun 2013 10:18:47 +0000 (10:18 +0000)]
Updtae buildbot's master.vfg

6 years agofix stubs for blenderplayer linking
Dalai Felinto [Sat, 1 Jun 2013 08:59:52 +0000 (08:59 +0000)]
fix stubs for blenderplayer linking

6 years agorna small fixes (bad copy-pasting)
Dalai Felinto [Sat, 1 Jun 2013 08:49:51 +0000 (08:49 +0000)]
rna small fixes (bad copy-pasting)

6 years agodisplay menu items key shortcuts in the button tooltips.
Campbell Barton [Sat, 1 Jun 2013 05:53:44 +0000 (05:53 +0000)]
display menu items key shortcuts in the button tooltips.

6 years agominor changes to toolbar
Campbell Barton [Sat, 1 Jun 2013 05:26:37 +0000 (05:26 +0000)]
minor changes to toolbar
- expose unwrap as a menu (rather then a regular button that pops up a menu)
- move 2 extrude buttons into one menu button, also do the same for the mesh menu.

6 years agoadd popup menu to allow python scripts to show popups without having to define a...
Campbell Barton [Sat, 1 Jun 2013 04:06:38 +0000 (04:06 +0000)]
add popup menu to allow python scripts to show popups without having to define a menu class first.

6 years agoFix another windows / msvc build error.
Brecht Van Lommel [Sat, 1 Jun 2013 02:39:34 +0000 (02:39 +0000)]
Fix another windows / msvc build error.

6 years agoFix windows / msvc build error.
Brecht Van Lommel [Sat, 1 Jun 2013 02:28:57 +0000 (02:28 +0000)]
Fix windows / msvc build error.

6 years agoFix for r56965 by Tamito:
Thomas Dinges [Sat, 1 Jun 2013 02:14:07 +0000 (02:14 +0000)]
Fix for r56965 by Tamito:
* Panorama Camera was not working for Blender Internal and Cycles anymore.

Code checked for Freestyle render layer flag, but as the flag is enabled per default, it broke Panorama camera in all cases. It made no sense to check this on a render layer basis anyway... check if Freestyle is enabled in general now instead.

6 years agoeditmesh display user request, keep the edge lengths within the view bounds (so you...
Campbell Barton [Fri, 31 May 2013 23:52:39 +0000 (23:52 +0000)]
editmesh display user request, keep the edge lengths within the view bounds (so you can see edge length even when zoomed in)

6 years agostyle cleanup
Campbell Barton [Fri, 31 May 2013 22:35:25 +0000 (22:35 +0000)]
style cleanup

6 years agoprevious fix for #35578 didnt work right, check direction of the open edge loop too.
Campbell Barton [Fri, 31 May 2013 18:58:32 +0000 (18:58 +0000)]
previous fix for #35578 didnt work right, check direction of the open edge loop too.

6 years agoStupid typo, reported by Eugenio Pignataro on ML, thx.
Bastien Montagne [Fri, 31 May 2013 17:39:43 +0000 (17:39 +0000)]
Stupid typo, reported by Eugenio Pignataro on ML, thx.

6 years agoCycles OpenCL: keep the opencl context and program around for quicker rendering
Brecht Van Lommel [Fri, 31 May 2013 16:19:03 +0000 (16:19 +0000)]
Cycles OpenCL: keep the opencl context and program around for quicker rendering
the second time, as for example Intel CPU startup time is 9 seconds.

* Adds an cache for contexts and programs for each platform and device pair,
  which also ensure now no two threads try to compile and write the binary cache
  file at the same time.
* Change clFinish to clFlush so we don't block until the result is done, instead
  it will block at the moment we copy back memory.
* Fix error in Cycles time_sleep implementation, does not affect any active code
  though.
* Adds some (disabled) debugging code in the task scheduler.

Patch #35559 by Doug Gale.

6 years agofix [#35578] New bridge tool; bowtie crossing when destination edges form one half...
Campbell Barton [Fri, 31 May 2013 15:48:42 +0000 (15:48 +0000)]
fix [#35578] New bridge tool; bowtie crossing when destination edges form one half of an 'X'

6 years agoFix to actually disable DEBUG_BACKTRACE by default.
Brecht Van Lommel [Fri, 31 May 2013 12:36:35 +0000 (12:36 +0000)]
Fix to actually disable DEBUG_BACKTRACE by default.

6 years agoFix #35497: rendering preview range gives wrong duration
Sergey Sharybin [Fri, 31 May 2013 10:31:44 +0000 (10:31 +0000)]
Fix #35497: rendering preview range gives wrong duration

Was a mistake in PTS calculation when using opengl animation render.

6 years agoFix #35581: Crash when using Track Refine
Sergey Sharybin [Fri, 31 May 2013 10:17:29 +0000 (10:17 +0000)]
Fix #35581: Crash when using Track Refine

6 years agoFollow up to previous commit
Sergey Sharybin [Fri, 31 May 2013 09:55:34 +0000 (09:55 +0000)]
Follow up to previous commit

Made Ctrl-LMB clear selection from the object.

6 years agoFix #35567: Shift+LMB doesn't toggle selection when using the Maya preset
Sergey Sharybin [Fri, 31 May 2013 09:49:52 +0000 (09:49 +0000)]
Fix #35567: Shift+LMB doesn't toggle selection when using the Maya preset

Also added back RMB to set 3d cursor position.

6 years agoMade text datablock properties 'is_in_memory' and 'is_dirty' editable in Python.
Tamito Kajiyama [Fri, 31 May 2013 07:40:03 +0000 (07:40 +0000)]
Made text datablock properties 'is_in_memory' and 'is_dirty' editable in Python.

The rationale of this revision is to provide an easy way to make text datablocks internal
from within Python (i.e., by setting these properties to True and the 'filepath' property
to empty string).

6 years agoimprove edgering subdivide curvature calculations (calculate length projected onto...
Campbell Barton [Fri, 31 May 2013 06:28:11 +0000 (06:28 +0000)]
improve edgering subdivide curvature calculations (calculate length projected onto the normal plane).
also correct recely added asserts.

6 years agocorrect cast to uintptr_t for smallhash use.
Campbell Barton [Fri, 31 May 2013 00:19:38 +0000 (00:19 +0000)]
correct cast to uintptr_t for smallhash use.

6 years agotweak to edge-loop select, so loop selecting a side of a subdivided triangle selects...
Campbell Barton [Thu, 30 May 2013 21:39:12 +0000 (21:39 +0000)]
tweak to edge-loop select, so loop selecting a side of a subdivided triangle selects all edges along one side.

6 years agounits: display 0.5mm rather then 500um, nicer when dealing with very small sizes...
Campbell Barton [Thu, 30 May 2013 21:17:50 +0000 (21:17 +0000)]
units: display 0.5mm rather then 500um, nicer when dealing with very small sizes but not microscopic.

6 years agoremove null checks for list functions, all hard asserts so we would have noticed...
Campbell Barton [Thu, 30 May 2013 19:05:46 +0000 (19:05 +0000)]
remove null checks for list functions, all hard asserts so we would have noticed problems already.

6 years agofix for incorrect use of strncat in uiItemMenuEnumO
Campbell Barton [Thu, 30 May 2013 18:42:32 +0000 (18:42 +0000)]
fix for incorrect use of strncat in uiItemMenuEnumO

6 years agoremove CD_MASK_NORMAL from CD_MASK_DERIVEDMESH, bmesh merge included this but its...
Campbell Barton [Thu, 30 May 2013 18:09:19 +0000 (18:09 +0000)]
remove CD_MASK_NORMAL from CD_MASK_DERIVEDMESH, bmesh merge included this but its not needed.

Now add asserts to make sure this layer is only added once the modifier stack has been calculated.
this saves normal layer being calculated whenver vertex normals need updating.

6 years agomodifier stack: lazy initialize normals
Campbell Barton [Thu, 30 May 2013 17:36:43 +0000 (17:36 +0000)]
modifier stack: lazy initialize normals

many modifiers were calculating normals, when those normals were ignored by the next modifier.
now flag normals as dirty and recalculate for modifiers that set use `dependsOnNormals()` callback.

Quick test on mesh with 12 modifiers (mostly build type), calculated normals 6 times, now it only runs once - so this will give some speedup too.

6 years agoBacktrace for unfreed memory blocks
Sergey Sharybin [Thu, 30 May 2013 14:27:24 +0000 (14:27 +0000)]
Backtrace for unfreed memory blocks

Added an option to show backtrace from where
non-freed datablock was allocated from.

To enable this feature, simply enable DEBUG_BACKTRACE
in mallocn.c file and all unfreed datablocks will
be followed up by a backtrace.

Currently works on linux and osx only,
windows support is on TODO.

This feature is for sure disabled by default,
so does not affect any builds which don't
explicitly define DEBUG_BACKTRACE.

6 years agofix debug derived mesh print function, layers in the customdata that were NULL were...
Campbell Barton [Thu, 30 May 2013 13:13:43 +0000 (13:13 +0000)]
fix debug derived mesh print function, layers in the customdata that were NULL were not printed.

6 years agoFixed compilation error after recent keyframes commit.
Sergey Sharybin [Thu, 30 May 2013 12:05:28 +0000 (12:05 +0000)]
Fixed compilation error after recent keyframes commit.

6 years agoRemove files unused by blender's tracker
Sergey Sharybin [Thu, 30 May 2013 12:05:20 +0000 (12:05 +0000)]
Remove files unused by blender's tracker

They were giving compilation error with msvc2012,
and instead of having workaround in them let's
drop them away form blender (they're not used even).

6 years agoFix #35570, old group nodes with empty socket name strings crash. The identifier...
Lukas Toenne [Thu, 30 May 2013 11:51:21 +0000 (11:51 +0000)]
Fix #35570, old group nodes with empty socket name strings crash. The identifier assignment was not taking potentially empty name strings into account. In addition some of the BLI_uniquename calls were
not passing a valid defname parameter, also crashing.

6 years agoPatch #35464: Marker placement for motion tracker by clicking on a desired location
Sergey Sharybin [Thu, 30 May 2013 11:37:53 +0000 (11:37 +0000)]
Patch #35464: Marker placement for motion tracker by clicking on a desired location

Now button in the toolshelf behaves this way:
- User clicks on "Add Marker"
- Then he clicks where the marker should get placed

Patch by Marcos Couto (ocf) with own modifications.

6 years agoCycles:
Thomas Dinges [Thu, 30 May 2013 11:05:02 +0000 (11:05 +0000)]
Cycles:
* Move some hair width related code into a dedicated branch.
* Don't calculate time/lens RNG when Motion Blur or Depth of Field are disabled

6 years agoUI: support 3 digit hex colors like HTML, e.g. #123 becomes #112233.
Brecht Van Lommel [Thu, 30 May 2013 09:48:17 +0000 (09:48 +0000)]
UI: support 3 digit hex colors like HTML, e.g. #123 becomes #112233.

Patch #35359 by Forest Ka.

6 years agoMotion tracking: automatic keyframe selection
Sergey Sharybin [Thu, 30 May 2013 09:03:49 +0000 (09:03 +0000)]
Motion tracking: automatic keyframe selection

Implements an automatic keyframe selection algorithm which uses
couple of approaches to find out best keyframes candidates:

- First, slightly modifier Pollefeys's criteria is used, which
  limits correspondence ration from 80% to 100%. This allows to
  reject keyframe candidate early without doing heavy math in
  cases there're not much common features with first keyframe.

- Second step is based on Geometric Robust Information Criteria
  (aka GRIC), which checks whether features motion between
  candidate keyframes is better defined by homography or
  fundamental matrices.

  To be a good keyframe candidate, fundamental matrix need to
  define motion better than homography (in this case F-GRIC will
  be smaller than H-GRIC).

  This two criteria are well described in this paper:
  http://www.cs.ait.ac.th/~mdailey/papers/Tahir-KeyFrame.pdf

- Final step is based on estimating reconstruction error of
  a full-scene solution using candidate keyframes. This part
  is based on the following paper:

  ftp://ftp.tnt.uni-hannover.de/pub/papers/2004/ECCV2004-TTHBAW.pdf

  This step requires reconstruction using candidate keyframes
  and obtaining covariance matrix of 3D points positions.
  Reconstruction was done pretty much straightforward using
  other simple pipeline routines, and for covariance estimation
  pseudo-inverse of Hessian is used, which is in this case
  (J^T * J)+, where + denotes pseudo-inverse.

  Jacobian matrix is estimating using Ceres evaluate API.

  This is also crucial to get rid of possible gauge ambiguity,
  which is in our case made by zero-ing 7 (by gauge freedoms
  number) eigen values in pseudo-inverse.

  There're still room for improving and optimizing the code,
  but we need some point to start with anyway :)

  Thanks to Keir Mierle and Sameer Agarwal who assisted a lot
  to make this feature working.

6 years agoremove redundant includes from cmake and scons.
Campbell Barton [Thu, 30 May 2013 02:16:22 +0000 (02:16 +0000)]
remove redundant includes from cmake and scons.

6 years agosplit bge includes for scons onto their own lines (for easier merging)
Campbell Barton [Wed, 29 May 2013 21:56:55 +0000 (21:56 +0000)]
split bge includes for scons onto their own lines (for easier merging)

6 years agoremove duplicate sys-types headers.
Campbell Barton [Wed, 29 May 2013 21:38:23 +0000 (21:38 +0000)]
remove duplicate sys-types headers.
also change define checks in BLI_sys_types.h (was warning a lot in linux about unused defines).

6 years agoGrr, forgot this in r57127...
Bastien Montagne [Wed, 29 May 2013 18:59:59 +0000 (18:59 +0000)]
Grr, forgot this in r57127...
BF_PYTHON_INC can contain more than one path (in the mono-string format), don't know how this could not be found earlier, completely broke build of GE on any recent Debian/Ubuntu distro???

6 years agoVarious fixes for install_deps' scons options.
Bastien Montagne [Wed, 29 May 2013 18:57:36 +0000 (18:57 +0000)]
Various fixes for install_deps' scons options.
Also svn-ignore BUILD_NOTES.txt generated file.

6 years agoVarious fixes to scons for linux:
Bastien Montagne [Wed, 29 May 2013 18:55:02 +0000 (18:55 +0000)]
Various fixes to scons for linux:
* Better handling of "multiarch" python stuff (libs also need two different paths).
* Fix Opencollada default paths.

Hopefully this won't break anything...

6 years agoAddition to r57094 by Campbell:
J├╝rgen Herrmann [Wed, 29 May 2013 18:23:59 +0000 (18:23 +0000)]
Addition to r57094 by Campbell:

VS 2010 and 2012 have stdint.h so we should use them for consistency instead of defining the inttypes ourselves.
Added if condition for for stdint.h include for >= VS 2010

P.S.: Compiled and tested on VS2008-2012 and MinGW with scons and CMake ;)

6 years agosvn merge ^/tags/blender-2.67b-release/blender -c57122
Campbell Barton [Wed, 29 May 2013 18:18:11 +0000 (18:18 +0000)]
svn merge ^/tags/blender-2.67b-release/blender -c57122

6 years agoFix #35374: Region overlap + bugs
Sergey Sharybin [Wed, 29 May 2013 16:03:09 +0000 (16:03 +0000)]
Fix #35374: Region overlap + bugs

Was missing keymap for REGION_TIMER, which ended up
in missing updates happening.

Added this kind of timer to RNA, so keymaps could
bind to it.

Also made 3ds max keymap working again. Too bad it
was broken in 2.67 and 2.67a :S

6 years agoCleanup: Removed all NODE_OPTIONS flags from C node type definitions, these are no...
Lukas Toenne [Wed, 29 May 2013 15:38:51 +0000 (15:38 +0000)]
Cleanup: Removed all NODE_OPTIONS flags from C node type definitions, these are no longer required and have no effect. Whether or not a node supports additional options buttons is now determined by the
existence of a draw callback (uifunc and/or uifuncbut).

6 years agoRemove the NODE_OPTIONS flag usage from node->typeinfo. This is a redundant flag...
Lukas Toenne [Wed, 29 May 2013 15:14:11 +0000 (15:14 +0000)]
Remove the NODE_OPTIONS flag usage from node->typeinfo. This is a redundant flag which can be replaced by simply checking for nodetype->uifunc/uifuncbut callbacks (if these callbacks are defined the node
type generally supports options). Note that the node->flag still uses NODE_OPTIONS as a switch to toggle the display of such options!

6 years agoSet the NODE_OPTIONS flag for all nodes by default. If the node type has no options...
Lukas Toenne [Wed, 29 May 2013 15:14:09 +0000 (15:14 +0000)]
Set the NODE_OPTIONS flag for all nodes by default. If the node type has no options it will be ignored anyway. This makes sure that if options are added to a node type later on there is no need to do a versions patch to update this flag.

6 years agoReverted a TODO comment from r54429 which disabled the NODE_OPTIONS flag check, so...
Lukas Toenne [Wed, 29 May 2013 15:14:08 +0000 (15:14 +0000)]
Reverted a TODO comment from r54429 which disabled the NODE_OPTIONS flag check, so node option buttons could not be disabled at all. This was meant as a workaround to avoid adding do_versions just to set initial NODE_OPTIONS flags on old nodes, but needs a better solution.

6 years agoscene render dimension panal: avoid re-creating the framerate string on every redraw...
Campbell Barton [Wed, 29 May 2013 14:55:06 +0000 (14:55 +0000)]
scene render dimension panal: avoid re-creating the framerate string on every redraw, cache the string for reuse.

also remove redundant returns from my last commit.

6 years agofix for own regression in bridge tool since rewrite, UV's were not correctly copied...
Campbell Barton [Wed, 29 May 2013 13:41:35 +0000 (13:41 +0000)]
fix for own regression in bridge tool since rewrite, UV's were not correctly copied over.

6 years agoReplacement for the "Active Node" panel in node editor properties sidebar. This panel...
Lukas Toenne [Wed, 29 May 2013 12:43:37 +0000 (12:43 +0000)]
Replacement for the "Active Node" panel in node editor properties sidebar. This panel is now defined in space_node.py instead of node_buttons.c. The properties have been split up into generic properties
(name, label), custom colors (closed by default) and input parameters (extra options + unlinked input socket values).

6 years agoNode options draw function fix for C nodes: use the default button draw function...
Lukas Toenne [Wed, 29 May 2013 12:43:35 +0000 (12:43 +0000)]
Node options draw function fix for C nodes: use the default button draw function as a fallback if no extended draw function is defined.

6 years agoworkaround for search menu enum using freed python scripts (py api limitation).
Campbell Barton [Wed, 29 May 2013 11:55:35 +0000 (11:55 +0000)]
workaround for search menu enum using freed python scripts (py api limitation).

6 years agoMake sure bool will always have the same size in C and C++
Sergey Sharybin [Wed, 29 May 2013 11:49:39 +0000 (11:49 +0000)]
Make sure bool will always have the same size in C and C++

There were an issues with data structures defined in headers
and being used by both C and C++ on systems with stdbool
unavailable.

This happened because bool in this case will be defined as
unsigned int, which is 4 bytes. But C++'s bool is only 1
byte and this lead to alignment issues.

Now bool is always 1 byte, also made sure there's no situation
like bool foo = BitField & BitFlag, which could give overflow
issues. Use (BitField & BitFlag) != 0 instead.

Fixes #35553: Compositor broken (Backdrop & Preview)

6 years agofix for confusion switching active group when running mirror (would swich back when...
Campbell Barton [Wed, 29 May 2013 01:28:55 +0000 (01:28 +0000)]
fix for confusion switching active group when running mirror (would swich back when toggling editmode if a pose bone was selected).

6 years agoimprove topology mirror, increase chance of finding unique match.
Campbell Barton [Wed, 29 May 2013 01:21:49 +0000 (01:21 +0000)]
improve topology mirror, increase chance of finding unique match.

6 years agotweaks to vertex weight limit
Campbell Barton [Wed, 29 May 2013 00:00:24 +0000 (00:00 +0000)]
tweaks to vertex weight limit
- double check def_nr is valid (rare cases it is).
- usability, report how many weights are removed.

6 years agofix for own mistake in recent change to use defvert layer offsets.
Campbell Barton [Tue, 28 May 2013 23:13:04 +0000 (23:13 +0000)]
fix for own mistake in recent change to use defvert layer offsets.

6 years agofix [#34851] "UnitSettings.scale_length" not beeing calculated the same way for all...
Campbell Barton [Tue, 28 May 2013 23:07:16 +0000 (23:07 +0000)]
fix [#34851] "UnitSettings.scale_length" not beeing calculated the same way for all objects

6 years agocorrect error in r57092 with scons.
Campbell Barton [Tue, 28 May 2013 20:35:12 +0000 (20:35 +0000)]
correct error in r57092 with scons.

6 years agoCorrection for strict compiler flags.
Sergey Sharybin [Tue, 28 May 2013 20:19:38 +0000 (20:19 +0000)]
Correction for strict compiler flags.

6 years agoadd BLI_sys_types.h
Campbell Barton [Tue, 28 May 2013 19:42:19 +0000 (19:42 +0000)]
add BLI_sys_types.h

6 years agodon't use globbing for freestyle cmake file.
Campbell Barton [Tue, 28 May 2013 19:38:28 +0000 (19:38 +0000)]
don't use globbing for freestyle cmake file.

6 years agomove BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
Campbell Barton [Tue, 28 May 2013 19:35:26 +0000 (19:35 +0000)]
move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
remove MEM_sys_types.h which was a duplicate.

6 years agoFix for r35524. Thanks Jeffrey Hoover for reporting.
Alexander Kuznetsov [Tue, 28 May 2013 18:36:47 +0000 (18:36 +0000)]
Fix for r35524. Thanks Jeffrey Hoover for reporting.

WM_SIZE is dispatched before full init.

6 years agoQuick addition to the node sidebar "Active Node" panel: draw input socket values...
Lukas Toenne [Tue, 28 May 2013 18:10:00 +0000 (18:10 +0000)]
Quick addition to the node sidebar "Active Node" panel: draw input socket values in addition to non-socket settings. This makes it possible to actually use the sidebar for all node settings without
having to go to the main area for changing socket values.

This patch should be considered a temporary solution. The Active Node panel is a horrible mess and needs to be split up and cleaned. It should probably be moved to python as well.

6 years agoQTKIT: as per Ideasman's suggestion, include BLI_utildefines.h in sourcefiles where...
Jens Verwiebe [Tue, 28 May 2013 17:38:02 +0000 (17:38 +0000)]
QTKIT: as per Ideasman's suggestion, include BLI_utildefines.h in sourcefiles where needed and reorder (must be before BKE_global.h)

6 years agoCycles OpenCL: disable requirement of enabling Experimental, environment varibale
Brecht Van Lommel [Tue, 28 May 2013 17:37:24 +0000 (17:37 +0000)]
Cycles OpenCL: disable requirement of enabling Experimental, environment varibale
already adds an extra step. Also list all features for OpenCL AMD to make testing
easier.

6 years agoSince have_quicktime is now a bool, need extra include for stdbool
Jens Verwiebe [Tue, 28 May 2013 16:57:28 +0000 (16:57 +0000)]
Since have_quicktime is now a bool, need extra include for stdbool

6 years agobmo_subdivide_edgering.c now builds with release+debuginfo, also remove unused define...
Campbell Barton [Tue, 28 May 2013 16:35:47 +0000 (16:35 +0000)]
bmo_subdivide_edgering.c now builds with release+debuginfo, also remove unused defines and correct include guards.

6 years agofix [#35509] MedianPoint choice has bad normals
Campbell Barton [Tue, 28 May 2013 15:08:13 +0000 (15:08 +0000)]
fix [#35509] MedianPoint choice has bad normals

6 years agoCycles: normal maps are now backwards compatible again after recent fix, with
Brecht Van Lommel [Tue, 28 May 2013 14:24:03 +0000 (14:24 +0000)]
Cycles: normal maps are now backwards compatible again after recent fix, with
a separate Blender Object/World Space that is compatible with Blender render
baking and uses the YZ flipping convention.

6 years agocode cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using the mappi...
Campbell Barton [Tue, 28 May 2013 14:23:07 +0000 (14:23 +0000)]
code cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using the mapping functionality.
replace ED_mesh_calc_normals with BKE_mesh_calc_normals().

6 years agoHopefully scons+llvm works again.
Sergey Sharybin [Tue, 28 May 2013 14:05:12 +0000 (14:05 +0000)]
Hopefully scons+llvm works again.

6 years agorename references to faces in docs.
Campbell Barton [Tue, 28 May 2013 13:58:56 +0000 (13:58 +0000)]
rename references to faces in docs.

6 years agoreorder includes for win
Campbell Barton [Tue, 28 May 2013 13:37:47 +0000 (13:37 +0000)]
reorder includes for win

6 years agoAdded missing recalculate of normals after mesh import
Gaia Clary [Tue, 28 May 2013 13:32:29 +0000 (13:32 +0000)]
Added missing recalculate of normals after mesh import

6 years agocode cleanup: remove old/unused bmesh bevel transform mode, remove commented characte...
Campbell Barton [Tue, 28 May 2013 13:01:31 +0000 (13:01 +0000)]
code cleanup: remove old/unused bmesh bevel transform mode, remove commented character list UI widget and the members these used in 'G' global.

6 years agofix for missing normalize with recent optimizations.
Campbell Barton [Tue, 28 May 2013 12:00:36 +0000 (12:00 +0000)]
fix for missing normalize with recent optimizations.

6 years agoFix #35473: Using Redo panel in View3D after Grease Pencil action moves GP layer...
Sergey Sharybin [Tue, 28 May 2013 11:44:35 +0000 (11:44 +0000)]
Fix #35473: Using Redo panel in View3D after Grease Pencil action moves GP layer to that area

Remove REGISTER flag from GP draw operator, so redo wouldn't screw up regions.

6 years agoFix for node menu: Show the group input/output nodes in the Input/Output categories...
Lukas Toenne [Tue, 28 May 2013 09:45:34 +0000 (09:45 +0000)]
Fix for node menu: Show the group input/output nodes in the Input/Output categories respectively, so they can be added with the usual UI in case the user deletes them. These nodes are polled out for
non-group trees (node trees not in the bpy.data.node_groups collection) to avoid confusion. For that purpose a new optional poll function argument has been added to NodeItem, which allows selectively
polling individual items in an otherwise static list.

6 years agoFix #35547: incomplete tooltips in node editor
Sergey Sharybin [Tue, 28 May 2013 08:58:27 +0000 (08:58 +0000)]
Fix #35547: incomplete tooltips in node editor

Descriptions were missing since PyNodes integration.

Thanks to lukas for patch review!

6 years agoFix #35513: Multires modifier normal corruption on apply base
Sergey Sharybin [Tue, 28 May 2013 08:40:47 +0000 (08:40 +0000)]
Fix #35513: Multires modifier normal corruption on apply base

Seems it was simply missing mesh normals update in multiresModifier_base_apply.

6 years agoFix: smoke initial velocity didn't work with the new custom size particles.
Miika Hamalainen [Tue, 28 May 2013 08:10:01 +0000 (08:10 +0000)]
Fix: smoke initial velocity didn't work with the new custom size particles.

6 years agocode cleanup: comment/remove unused defines
Campbell Barton [Tue, 28 May 2013 01:15:59 +0000 (01:15 +0000)]
code cleanup: comment/remove unused defines

6 years agoFix for crash in Freestyle with sketchy chaining and Bezier Curve geometry modifier.
Tamito Kajiyama [Tue, 28 May 2013 00:35:29 +0000 (00:35 +0000)]
Fix for crash in Freestyle with sketchy chaining and Bezier Curve geometry modifier.

When the sketchy chaining is used, stroke geometry may contain a 180-degree U-turn.
If the 'error' parameter of the Bezier Curve geometry modifier is small (e.g., 10),
Bezier curve fitting will recursively split the original stroke into two pieces.
This splitting may take place at a U-turn point, causing a numerical singularity issue
that leads to a crash.

Problem report by edna in the BA Freestyle thread, with an example .blend to reproduce
the problem.  Thanks a lot!

6 years agofix [#35543] Bezier curve width and twist fail to apply when more than 1 point is...
Campbell Barton [Mon, 27 May 2013 23:51:01 +0000 (23:51 +0000)]
fix [#35543] Bezier curve width and twist fail to apply when more than 1 point is edited

6 years agofix [#35544] Boids Segfault of frame advance using cursor keys
Campbell Barton [Mon, 27 May 2013 22:25:54 +0000 (22:25 +0000)]
fix [#35544] Boids Segfault of frame advance using cursor keys
caused by partial revert of r56073.