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

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

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

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

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

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

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

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

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

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

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

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

8 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
* Adds some (disabled) debugging code in the task scheduler.

Patch #35559 by Doug Gale.

8 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'

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

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

8 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

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

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

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

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

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

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

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

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

8 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

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

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

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

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

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

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

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

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

8 years agoCycles:
Thomas Dinges [Thu, 30 May 2013 11:05:02 +0000 (11:05 +0000)]
* 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

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

8 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:

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

  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.

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

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

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

8 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???

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

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

8 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 ;)

8 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

8 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

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

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

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

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

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

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

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

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

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

8 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

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)

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

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

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

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

8 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

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

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

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

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

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

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

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

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

8 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

8 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

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

8 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

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

8 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().

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

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

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

8 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

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

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

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

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

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

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

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

8 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

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

8 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

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

8 years agofix [#35503] Bug with BMesh and Mirror Modifier (Blender 2.67)
Campbell Barton [Mon, 27 May 2013 20:56:33 +0000 (20:56 +0000)]
fix [#35503] Bug with BMesh and Mirror Modifier (Blender 2.67)
regression with bmesh - extruding was creating faces where it shouldn't.

8 years agooptimize mirror merging, remove array reallocation, replace with fixed size arrays.
Campbell Barton [Mon, 27 May 2013 20:11:12 +0000 (20:11 +0000)]
optimize mirror merging, remove array reallocation, replace with fixed size arrays.

8 years agofix error in own recent commit, also other minor changes.
Campbell Barton [Mon, 27 May 2013 18:51:31 +0000 (18:51 +0000)]
fix error in own recent commit, also other minor changes.

8 years agoview3d buttons, internal change: make act_vert_def vertex argument optional.
Campbell Barton [Mon, 27 May 2013 18:10:36 +0000 (18:10 +0000)]
view3d buttons, internal change: make act_vert_def vertex argument optional.

8 years agoPicky UI message fix...
Bastien Montagne [Mon, 27 May 2013 18:08:14 +0000 (18:08 +0000)]
Picky UI message fix...

8 years agoFix #35505: cycles object space normal mapping did not match blender internal.
Brecht Van Lommel [Mon, 27 May 2013 17:48:02 +0000 (17:48 +0000)]
Fix #35505: cycles object space normal mapping did not match blender internal.
Now it uses the same (strange) YZ flipping convention.

8 years agoFix #35506: enter local view, enable render draw mode, exit local view. In this
Brecht Van Lommel [Mon, 27 May 2013 17:21:20 +0000 (17:21 +0000)]
Fix #35506: enter local view, enable render draw mode, exit local view. In this
case the render engine would keep working invisible in the background.

8 years agoCycles / OpenCL:
Thomas Dinges [Mon, 27 May 2013 17:13:36 +0000 (17:13 +0000)]
Cycles / OpenCL:
* Use advanced shading for nvidia as well, works fine on my Geforce 540M with sm_21.
I tested the files from regression suite.

8 years agoParticles: patch #35205 by Jakub Zolcik
Brecht Van Lommel [Mon, 27 May 2013 17:11:05 +0000 (17:11 +0000)]
Particles: patch #35205 by Jakub Zolcik

The Emission panel now has a Use Modifier Stack option to emit particles from
the mesh with modifiers applied. Previously particles would only be emitted from
faces that exist in the original mesh. There are some caveats however:

8 years agoCycles OpenCL: patch #35514 by Doug Gale
Brecht Van Lommel [Mon, 27 May 2013 16:21:07 +0000 (16:21 +0000)]
Cycles OpenCL: patch #35514 by Doug Gale

* Support using devices from all OpenCL platforms, so that you can use e.g. both
  Intel and NVidia OpenCL implementations if you have them installed.
* Fix compile error due to missing fmodf after recent math node change.
* Enable advanced shading for Intel OpenCL.
* CYCLES_OPENCL_DEBUG environment variable for generating debug symbols so you
  can debug with gdb. This crashes the compiler with Intel OpenCL on Linux though.
  To make this work the preprocessed kernel source code is written out, as gdb
  needs this.
* Show OpenCL compiler warnings even if the build succeeded.
* Some small fixes to initialize cdDevice to NULL, add missing NULL check when
  creating buffer and add missing space at end of build options for Apple OpenCL.
* Fix crash with multi device + opencl, now e.g. CPU + GPU render should work.

I did a few tweaks to the code and also:

* Fix viewport render failing sometimes with Apple CPU OpenCL, was not taking
  workgroup size limits into account properly.
* Add compile error when advanced shading in the Blender binary and OpenCL kernel
  are not in sync.