blender.git
6 years agofix for uninitialized value use in newly added fcurve normalized view.
Campbell Barton [Wed, 30 Oct 2013 22:13:28 +0000 (22:13 +0000)]
fix for uninitialized value use in newly added fcurve normalized view.
also quiet warning without openmp.

6 years agoAdd .webm to the list of extensions recognized as video
Andrea Weikert [Wed, 30 Oct 2013 21:16:13 +0000 (21:16 +0000)]
Add .webm to the list of extensions recognized as video
(Patch by Philipp Oeser, submitted in [#37199], many thanks)

6 years agoBugfix [#37185] Maya Config: Move and Scale Don't Work In Dope Sheet
Joshua Leung [Wed, 30 Oct 2013 11:33:29 +0000 (11:33 +0000)]
Bugfix [#37185] Maya Config: Move and Scale Don't Work In Dope Sheet

Maya keymap was activating wrong transform modes for translation/scaling - in
DopeSheet and NLA, these use the TIME_TRANSLATE/TIME_SCALE modes instead

6 years agoCode cleanup: typo-fix
Sergey Sharybin [Wed, 30 Oct 2013 11:33:11 +0000 (11:33 +0000)]
Code cleanup: typo-fix

6 years agorevert own commit r60607, caused bug [#37253]
Campbell Barton [Wed, 30 Oct 2013 11:32:30 +0000 (11:32 +0000)]
revert own commit r60607, caused bug [#37253]

6 years agoFix #37194, OSL script crashes blender. The lookup functions for finding Cycles shade...
Lukas Toenne [Wed, 30 Oct 2013 11:21:31 +0000 (11:21 +0000)]
Fix #37194, OSL script crashes blender. The lookup functions for finding Cycles shader inputs/outputs based on socket names are using a few modifications on the Blender socket names. But these only apply
to standard nodes where the Blender socket names can differ from associated Cycles names and may require additional indices to make them unique. Script node sockets are already unique and exact due to
being generated from the script function parameters.

6 years agoFix #37252: Mask modifier doesn't copy settings on object copy
Sergey Sharybin [Wed, 30 Oct 2013 09:44:29 +0000 (09:44 +0000)]
Fix #37252: Mask modifier doesn't copy settings on object copy

6 years agoAdd some update notifiers for a few boolean paint properties (probably a
Antony Riakiotakis [Wed, 30 Oct 2013 04:56:32 +0000 (04:56 +0000)]
Add some update notifiers for a few boolean paint properties (probably a
lot more needed) so that they get properly updated in UI when the
property is edited through python or a custom key binding to context
toggle operator.

6 years agoOne more optimization for lasso, clip PBVH against object space planes
Antony Riakiotakis [Wed, 30 Oct 2013 01:58:19 +0000 (01:58 +0000)]
One more optimization for lasso, clip PBVH against object space planes
of lasso enclosing rectangle.

6 years agoOptimization of lasso masking using scanfill.
Antony Riakiotakis [Wed, 30 Oct 2013 01:20:08 +0000 (01:20 +0000)]
Optimization of lasso masking using scanfill.

Thanks to Campbell for the advice!

6 years agoSome comment fixes, add new sculpt masking operators to menus
Antony Riakiotakis [Wed, 30 Oct 2013 00:54:41 +0000 (00:54 +0000)]
Some comment fixes, add new sculpt masking operators to menus

6 years agoLasso select tool for masking in sculpting. Initial code, non optimized
Antony Riakiotakis [Wed, 30 Oct 2013 00:37:13 +0000 (00:37 +0000)]
Lasso select tool for masking in sculpting. Initial code, non optimized
for now.
Used to be ultra terrible but with threading (openmp) there is slightly
better performance
and is ready for testing. To use press shift-ctrl-lclick. Still no
ability to
remove mask. Coming soon.

Also make box selection threaded (openmp) and comment fix.

6 years agoCode cleanup: more int->bool conversions mask module
Sergey Sharybin [Tue, 29 Oct 2013 18:56:21 +0000 (18:56 +0000)]
Code cleanup: more int->bool conversions mask module

6 years agoCode cleanup: use bool instead of int in mask module
Sergey Sharybin [Tue, 29 Oct 2013 18:46:45 +0000 (18:46 +0000)]
Code cleanup: use bool instead of int in mask module

6 years agoProject Pampa request: FCurves normalized display
Sergey Sharybin [Tue, 29 Oct 2013 18:10:52 +0000 (18:10 +0000)]
Project Pampa request: FCurves normalized display

Added two options to a header of FCurve editor:

- Normalize which makes it so every individual
  curve is fit into -1..1 space.

- Auto-normalize, which probably is to be called
  "Lock" which "locks" curve normalization scale.
  This is useful to prevent curves from jumping
  around when tweaking it.

It's debatable whether it need to be a button to
normalize curves n purpose only, and it's fully
depends on animator's workflow.

Here during Project Pampa we've got Francesco
who get used to auto-renormalization and Hjalti
who prefers locked behavior.

Docs are to be ready soon by Francesco.
Thanks Brecht for the review!

6 years agoMake anim system safer for threading
Sergey Sharybin [Tue, 29 Oct 2013 18:10:48 +0000 (18:10 +0000)]
Make anim system safer for threading

Remove usages of ANIM_unit_mapping_apply_fcurve in favor of
runtime scale factor apply.

There're still calls to ANIM_nla_mapping_apply_fcurve are
hanging around, they're the next t be cleaned up!

6 years agoFix #37192, Rendered preview causes crash when deleting a material node in shader...
Lukas Toenne [Tue, 29 Oct 2013 17:46:01 +0000 (17:46 +0000)]
Fix #37192, Rendered preview causes crash when deleting a material node in shader node editor. The 'free' callback for node execution data was accessed from the node->typeinfo, but this pointer can
become invalid because the render database is not immediately freed after the job finishes. To avoid access to dangling node pointers, store the function callback in the exec data itself. The node
pointer must not be accessed in the free function (wasn't used before either), these functions are purely for the execution data.

6 years agofix [#37250] dynotopo initial triangulation
Dalai Felinto [Tue, 29 Oct 2013 17:14:43 +0000 (17:14 +0000)]
fix [#37250] dynotopo initial triangulation

hmrf arguments order was wrong ... but int/bool casting made it pass
through the compiler

6 years agoCode cleanup: remove unused block from multire baker
Sergey Sharybin [Tue, 29 Oct 2013 16:43:58 +0000 (16:43 +0000)]
Code cleanup: remove unused block from multire baker

Mapping from grid on ll 0 was not used and was incorrect
since bmesh merge anyway.

6 years agoEnable multires bake to level 0
Sergey Sharybin [Tue, 29 Oct 2013 16:43:56 +0000 (16:43 +0000)]
Enable multires bake to level 0

Uses trick with crating simple subdivided mesh with
level 1 and bakes against it.

From quick tests seems to be working correct, more
tests are welcome.

6 years agoFix #37246: Dynamic paint end frame is limited to 9999
Sergey Sharybin [Tue, 29 Oct 2013 16:06:21 +0000 (16:06 +0000)]
Fix #37246: Dynamic paint end frame is limited to 9999

Not sure what's actual reason for this, increased it to MAXFRAMRF.

6 years agoProject Pampa fix: animplayer will use preview range if preview is enabled
Sergey Sharybin [Tue, 29 Oct 2013 15:49:01 +0000 (15:49 +0000)]
Project Pampa fix: animplayer will use preview range if preview is enabled

6 years agoFix for particle texture influence bug causing undefined (nan) values: When using...
Lukas Toenne [Tue, 29 Oct 2013 14:48:25 +0000 (14:48 +0000)]
Fix for particle texture influence bug causing undefined (nan) values: When using a texture with "Particles/Strands" coordinates that in turn has a "Lifetime" influence on the particles, the texture eval
accesses the particle lifetime/dietime data before it is actually defined! This is a design flaw, but to avoid corrupted data for now just initialize the lifetime/dietime values for particles in advance
before evaluating the texture.

6 years agoFix #37152: Knife tool doesn't work properly with Maya preset (Zooming and Panning)
Sergey Sharybin [Tue, 29 Oct 2013 11:59:03 +0000 (11:59 +0000)]
Fix #37152: Knife tool doesn't work properly with Maya preset (Zooming and Panning)

6 years ago(Due to a change in function call) Added default triangulation method for Collada...
Gaia Clary [Tue, 29 Oct 2013 10:49:44 +0000 (10:49 +0000)]
(Due to a change in function call) Added default triangulation method for Collada exporter

6 years agoFix collada compile, too less arguments
Jens Verwiebe [Tue, 29 Oct 2013 10:13:49 +0000 (10:13 +0000)]
Fix collada compile, too less arguments

6 years agostyle cleanup
Campbell Barton [Tue, 29 Oct 2013 03:04:46 +0000 (03:04 +0000)]
style cleanup

6 years agoTriangulate Modifier: using different ngon and quad methods
Dalai Felinto [Tue, 29 Oct 2013 02:42:51 +0000 (02:42 +0000)]
Triangulate Modifier: using different ngon and quad methods

Quads: Beauty, Fixed, Fixed Alternate, Shortest Diagonal
Ngons: Beauty, Scanfill

* Shortest Diagonal is the default method in the modifier (popular
  elsewhere), but beauty is the default in Ctrl+T).

* Remove the need for output slot and beauty operator to be called
after Clt+T

Patch with collaborations and reviewed by Campbell Barton

6 years agoEagerly attempt to refine a track before doing a brute search
Keir Mierle [Tue, 29 Oct 2013 01:06:50 +0000 (01:06 +0000)]
Eagerly attempt to refine a track before doing a brute search

Before the refinement phase of tracking, a brute force SAD search
is run across the search area. This works well but is slow;
especially if the guess for the track's location is accurate.

This patch runs a refinement phase before running a brute force
search, hoping that the guessed position (in x2, y2) is close to
the best answer. If it is, then no brute search is done. If it is
not, then a normal brute force search followed by refinement is
done.

In some cases this may produce worse tracks than before; the
regressions will need investigation. The predictive motion model
(to be implemented) will reduce the probability of that happening.

6 years agopatch [#37218] Split operator for armatures
Campbell Barton [Tue, 29 Oct 2013 00:10:03 +0000 (00:10 +0000)]
patch [#37218] Split operator for armatures
from Henrik Aarnio (hjaarnio)

6 years agopatch [#37217] Make WM_gesture_lines draw the lasso unfilled. (Adding reroute nodes...
Campbell Barton [Tue, 29 Oct 2013 00:05:03 +0000 (00:05 +0000)]
patch [#37217] Make WM_gesture_lines draw the lasso unfilled. (Adding reroute nodes, cutting node links)
by Henrik Aarnio (hjaarnio)

6 years agopatch [#37219] RenderParts.partsdone is not a boolean, but a counter
Campbell Barton [Mon, 28 Oct 2013 23:59:28 +0000 (23:59 +0000)]
patch [#37219] RenderParts.partsdone is not a boolean, but a counter
from Lawrence D'Oliveiro (ldo)

6 years agopatch [#37229] Save process slot in blender-softwaregl script
Campbell Barton [Mon, 28 Oct 2013 23:48:53 +0000 (23:48 +0000)]
patch [#37229] Save process slot in blender-softwaregl script
from Lawrence D'Oliveiro (ldo)

6 years agopatch [#37231] Bone fill sets bone to connected, even if neither of its points is...
Campbell Barton [Mon, 28 Oct 2013 23:45:36 +0000 (23:45 +0000)]
patch [#37231] Bone fill sets bone to connected, even if neither of its points is at the tail point of points it's connecting.
from Henrik Aarnio (hjaarnio)

6 years agocorrect error in recent commit.
Campbell Barton [Mon, 28 Oct 2013 23:35:25 +0000 (23:35 +0000)]
correct error in recent commit.

6 years agoMake it possible to track specified clip
Sergey Sharybin [Mon, 28 Oct 2013 21:49:49 +0000 (21:49 +0000)]
Make it possible to track specified clip

Added a property to track_marker operator to be
able to render clip which name was passed to the
operator instead of clip from current clip editor
context.

Very much useful for automatic tests.

6 years agoFix compile error using Visual Studio 2012.
Daniel Genrich [Mon, 28 Oct 2013 19:43:53 +0000 (19:43 +0000)]
Fix compile error using Visual Studio 2012.

6 years agoFix #37184: film exposure + transparency not working well in cycles viewport.
Brecht Van Lommel [Mon, 28 Oct 2013 19:01:01 +0000 (19:01 +0000)]
Fix #37184: film exposure + transparency not working well in cycles viewport.

6 years agoFix bug where libmv tracking incorrectly succeeds on failure
Keir Mierle [Mon, 28 Oct 2013 18:34:19 +0000 (18:34 +0000)]
Fix bug where libmv tracking incorrectly succeeds on failure

Before this patch, if Ceres returned USER_SUCCESS indicating that
Ceres was only changing the tracked quad slightly between
iterations (indicating convergence), no final correlation check
was done. This leads to incorrectly returning that the tracking
was successful, when it actually failed.

6 years agoOSX/codesigning: Instructions on codesigning in case i get lost :-P
Jens Verwiebe [Mon, 28 Oct 2013 18:13:27 +0000 (18:13 +0000)]
OSX/codesigning: Instructions on codesigning in case i get lost :-P

6 years agoOSX/codesigning: add the signing rules used for releases
Jens Verwiebe [Mon, 28 Oct 2013 17:08:07 +0000 (17:08 +0000)]
OSX/codesigning: add the signing rules used for releases

6 years agoFix #37187: ghost/test/multitest fails to build
Sergey Sharybin [Mon, 28 Oct 2013 12:54:18 +0000 (12:54 +0000)]
Fix #37187: ghost/test/multitest fails to build

Commited patch provided by Lawrence D'Oliveiro, thanks.

6 years agoFix #37221: Multilayer EXR inputs generate pink frame/last displayed frame when using...
Sergey Sharybin [Mon, 28 Oct 2013 12:16:17 +0000 (12:16 +0000)]
Fix #37221: Multilayer EXR inputs generate pink frame/last displayed frame when using an image sequence offset

generally speaking, if multilayer image fails to load for current
frame doesn't mean anything bad. It might be used to make it so
image sequence is being alpha-overed somewhere in the middle of
scene time.

Made it so if the whole file fails to load, image node will
deliver black transparent color, the same what happens for
regular (non-multilayer images).

Also needed to tweak code in load_multilayer_sequwnce to make
sure no cached frames are pointing to a freed memory.

6 years agomove bmesh array lookup data and utility functions from editmesh into bmesh,
Campbell Barton [Mon, 28 Oct 2013 02:05:33 +0000 (02:05 +0000)]
move bmesh array lookup data and utility functions from editmesh into bmesh,
since enough bmesh operations can also take advantage of direct index lookups on verts/edges/faces.

developers note:
- EDBM_index_arrays_init/ensure/free -> BM_mesh_elem_table_ensure/init/free
- EDBM_vert/edge/face_at_index -> BM_vert/edge/face_at_index
- EDBM_uv_element_map_create/free -> BM_uv_element_map_create/free
- ED_uv_element_get -> BM_uv_element_get

6 years agofix for decimator editing the data it loops over in an unsupported way.
Campbell Barton [Mon, 28 Oct 2013 01:58:05 +0000 (01:58 +0000)]
fix for decimator editing the data it loops over in an unsupported way.

6 years agocmake: bsp needs moto
Sergej Reich [Sun, 27 Oct 2013 13:58:13 +0000 (13:58 +0000)]
cmake: bsp needs moto

6 years agoExpose MVertSkin customdata layer in Python. This allows scripts to change parameters...
Andrew Hale [Sun, 27 Oct 2013 12:16:45 +0000 (12:16 +0000)]
Expose MVertSkin customdata layer in Python. This allows scripts to change parameters which are used by the skin modifier (such as radius)

6 years agorename BM_vert_at_index -> BM_vert_at_index_find (since this searches the mempool).
Campbell Barton [Sun, 27 Oct 2013 10:01:35 +0000 (10:01 +0000)]
rename BM_vert_at_index -> BM_vert_at_index_find (since this searches the mempool).
needed for other changes - coming.

6 years agoUpdate OpenEXR to 2.0.1, this seems to fix some issues.
Bastien Montagne [Sun, 27 Oct 2013 08:19:08 +0000 (08:19 +0000)]
Update OpenEXR to 2.0.1, this seems to fix some issues.

I *really* have to go back over all our patches in this script and try to port them back in respective projects!

6 years agoBorder select for sculpting, using B shortcut, warmup for more advanced
Antony Riakiotakis [Sun, 27 Oct 2013 03:31:19 +0000 (03:31 +0000)]
Border select for sculpting, using B shortcut, warmup for more advanced
masking, like lasso selection.

6 years agofix [#37195] particles crash with viewport render
Campbell Barton [Sat, 26 Oct 2013 22:38:12 +0000 (22:38 +0000)]
fix [#37195] particles crash with viewport render

6 years agoWeighted tracks
Sergey Sharybin [Sat, 26 Oct 2013 13:22:38 +0000 (13:22 +0000)]
Weighted tracks

Added a weight slider to track which defines
how much particular track affects in a final
reconstruction. This weight is for sure
animateable.

Currently it affects on BA step only which in
most cases will work just fine.

The usecase of this slider is to have it set
to 1.0 most of the time where the track is
good, but blend it's weight down to 0 when
tracker looses the track. This will prevent
camera from jump.

Tutorial is to be done by Sebastian.

6 years agoremove null checks for macro definitions, if these fail then something is broken...
Campbell Barton [Sat, 26 Oct 2013 08:01:33 +0000 (08:01 +0000)]
remove null checks for macro definitions, if these fail then something is broken elsewhere, better not fail silently.

6 years agofix for metaball editmode duplicate with PET
Campbell Barton [Sat, 26 Oct 2013 06:48:56 +0000 (06:48 +0000)]
fix for metaball editmode duplicate with PET

6 years agofix for BM_faces_join_pair() making the assumption that only the 2 faces use an edge...
Campbell Barton [Sat, 26 Oct 2013 05:05:37 +0000 (05:05 +0000)]
fix for BM_faces_join_pair() making the assumption that only the 2 faces use an edge, face winding could be flipped incorrectly.

also remove search for shared edges - all callers pass the edge in.

6 years agorename give_cursor to ED_view3d_cursor3d_get
Campbell Barton [Sat, 26 Oct 2013 04:07:18 +0000 (04:07 +0000)]
rename give_cursor to ED_view3d_cursor3d_get

6 years agocode cleanup: merge doxygen comments into C source.
Campbell Barton [Sat, 26 Oct 2013 03:56:32 +0000 (03:56 +0000)]
code cleanup: merge doxygen comments into C source.

6 years agofix for outline width theme option being ignored for non mesh object types.
Campbell Barton [Sat, 26 Oct 2013 02:14:07 +0000 (02:14 +0000)]
fix for outline width theme option being ignored for non mesh object types.

6 years agospelling: use American spelling for canceled
Campbell Barton [Sat, 26 Oct 2013 01:06:19 +0000 (01:06 +0000)]
spelling: use American spelling for canceled

6 years agoremove unused var
Campbell Barton [Sat, 26 Oct 2013 01:03:16 +0000 (01:03 +0000)]
remove unused var

6 years agofix for UI glitch with HSVCUBE color picker, color was noticeably not very smooth...
Campbell Barton [Fri, 25 Oct 2013 23:50:55 +0000 (23:50 +0000)]
fix for UI glitch with HSVCUBE color picker, color was noticeably not very smooth or aligned.
- HSV values need to be shifted.
- drawing the quads wasnt aligned well to colors.

6 years agoholding ctrl now snaps the hue for color wheel and hsvcube.
Campbell Barton [Fri, 25 Oct 2013 23:05:34 +0000 (23:05 +0000)]
holding ctrl now snaps the hue for color wheel and hsvcube.
this makes it easy to set primary colors without using RGB sliders.

6 years agocorrect typo
Campbell Barton [Fri, 25 Oct 2013 22:12:05 +0000 (22:12 +0000)]
correct typo

6 years agocode cleanup: use bool for shift arg, order args more consistently between functions.
Campbell Barton [Fri, 25 Oct 2013 22:09:31 +0000 (22:09 +0000)]
code cleanup: use bool for shift arg, order args more consistently between functions.

6 years agoUpdating tooltip for Fill Holes "Sides" option.
Jonathan Williamson [Fri, 25 Oct 2013 14:12:22 +0000 (14:12 +0000)]
Updating tooltip for Fill Holes "Sides" option.

This makes the tooltip much more descriptive to tell the user what the setting does. Suggestion by Thomas Beck and bcon13.

6 years agorigidbody: Add "Apply Transformation" button
Sergej Reich [Fri, 25 Oct 2013 11:54:10 +0000 (11:54 +0000)]
rigidbody: Add "Apply Transformation" button

This is just the "Apply Visual Transform" operator.
It's very usefull for rigid body simulations but hard to find and users
usually don't know about it/don't know it's usefull to apply rigid body
transformations.
It seems bit out of place (especially the tooltip) so we might need to
do a bit more here.

6 years agoRemove duplicate cmake enries in game engine and compositor
Sergej Reich [Fri, 25 Oct 2013 11:00:16 +0000 (11:00 +0000)]
Remove duplicate cmake enries in game engine and compositor

6 years agoreplace snap values with enum and bool depending on use (it wasn't clear which was...
Campbell Barton [Fri, 25 Oct 2013 07:47:08 +0000 (07:47 +0000)]
replace snap values with enum and bool depending on use (it wasn't clear which was used when both were int's).

Ctrl+Shift now snaps normal button to 15deg increments.

6 years agopatch [#37197] angle snapping for NORMAL button
Campbell Barton [Fri, 25 Oct 2013 06:59:57 +0000 (06:59 +0000)]
patch [#37197] angle snapping for NORMAL button
from Philipp Oeser (lichtwerk) with minor edits.

6 years agocode cleanup and add mball select similar into the menu
Campbell Barton [Fri, 25 Oct 2013 06:22:15 +0000 (06:22 +0000)]
code cleanup and add mball select similar into the menu

6 years agoadd check for cmake that source files are not included multiple times
Campbell Barton [Fri, 25 Oct 2013 06:21:38 +0000 (06:21 +0000)]
add check for cmake that source files are not included multiple times

6 years agopatch [#37188] Remove filename entry specified twice
Campbell Barton [Fri, 25 Oct 2013 05:21:17 +0000 (05:21 +0000)]
patch [#37188] Remove filename entry specified twice
from Lawrence D'Oliveiro (ldo)

6 years agopatch [#30689] select similar for metaballs
Campbell Barton [Fri, 25 Oct 2013 05:17:55 +0000 (05:17 +0000)]
patch [#30689] select similar for metaballs
from Cyrille Ruggero (kalado) with some edits.

6 years agoFix building with scons
Sergej Reich [Fri, 25 Oct 2013 03:56:17 +0000 (03:56 +0000)]
Fix building with scons

Can't actually test here so hope this is enough.

6 years agorigidbody: Use bullet's own fixed constraint
Sergej Reich [Fri, 25 Oct 2013 03:45:00 +0000 (03:45 +0000)]
rigidbody: Use bullet's own fixed constraint

Should be no functional changes.

6 years agobullet: Update to version 2.82 (bullet revision 2705)
Sergej Reich [Fri, 25 Oct 2013 03:43:20 +0000 (03:43 +0000)]
bullet: Update to version 2.82 (bullet revision 2705)

Remove patch that has been applied upstream.

Fixes several bugs.

6 years agodrawobject: Fix sphere bounds drawing
Sergej Reich [Fri, 25 Oct 2013 02:20:23 +0000 (02:20 +0000)]
drawobject: Fix sphere bounds drawing

Would draw ellipsoid instead, which is not so useful and wrong when
used for rigid body collision shape visualization.

svn merge -r59887:59888 ^/branches/soc-2013-rigid_body_sim

6 years agomake the message for addons failing to parse a little more descriptive (suggested...
Campbell Barton [Thu, 24 Oct 2013 20:17:30 +0000 (20:17 +0000)]
make the message for addons failing to parse a little more descriptive (suggested in report [#37196]).

6 years agoOSX/CMake: fix ftemplate condition
Jens Verwiebe [Thu, 24 Oct 2013 18:46:00 +0000 (18:46 +0000)]
OSX/CMake: fix ftemplate condition

6 years agoFix for occasional crashes due to numerical instability in Freestyle Perlin noise...
Tamito Kajiyama [Thu, 24 Oct 2013 11:41:39 +0000 (11:41 +0000)]
Fix for occasional crashes due to numerical instability in Freestyle Perlin noise modifiers with a large 'octaves' value.
Problem report by Light BWK through personal communications, thanks a lot!

6 years agoFix #37175, Viewer node issue for newly toggled render passes.
Lukas Toenne [Wed, 23 Oct 2013 11:58:00 +0000 (11:58 +0000)]
Fix #37175, Viewer node issue for newly toggled render passes.
The RenderLayers node would use the "combined" image result for all passes which don't have a valid render result yet. This causes problems when the buffer element size is not actually 4 floats (RGBA) as
with the 3 float normal passes. Also the result is rather meaningless then, so just keep the image buffer at NULL for unavailable passes, which will return plain (0,0,0) color.

6 years agoFix for OSL bug reported on IRC by Pablo Vasquez: Clamp option of the math node in...
Lukas Toenne [Wed, 23 Oct 2013 11:30:18 +0000 (11:30 +0000)]
Fix for OSL bug reported on IRC by Pablo Vasquez: Clamp option of the math node in OSL produces bad results. Really stupid bug, OSL math node was assigning the clamped 1st input value instead of the
clamped result of the actual operation.

6 years agofix for negated normal being used when using individual centers & normal orientation...
Campbell Barton [Wed, 23 Oct 2013 10:35:49 +0000 (10:35 +0000)]
fix for negated normal being used when using individual centers & normal orientation in vertex select mode.

6 years agocode cleanup: minor transform refactor
Campbell Barton [Wed, 23 Oct 2013 06:48:36 +0000 (06:48 +0000)]
code cleanup: minor transform refactor
redraw flag were mixing up types - int/char/bool, add enum type to use instead.

6 years agofix [#37179] All transformation normals drawn when proportional edit, individual...
Campbell Barton [Wed, 23 Oct 2013 05:33:42 +0000 (05:33 +0000)]
fix [#37179] All transformation normals drawn when proportional edit, individual origins and normal transform orientation are set
thanks to psy-fi for the initial patch.

6 years agorefactor transform.c - minor changes
Campbell Barton [Wed, 23 Oct 2013 03:57:42 +0000 (03:57 +0000)]
refactor transform.c - minor changes
- use TREDRAW_HARD define
- use apply prefix for transform callbacks.
- make callbacks static.

6 years agostyle cleanup
Campbell Barton [Wed, 23 Oct 2013 02:52:27 +0000 (02:52 +0000)]
style cleanup

6 years agoFix part 1 of #37177 spikes in sculpting.
Antony Riakiotakis [Tue, 22 Oct 2013 23:32:41 +0000 (23:32 +0000)]
Fix part 1 of #37177 spikes in sculpting.

Was a typo from refactor to calculate sculpt plane from forward facing
vertices only. The branch of the code that did the calculation would end
up with a nice division by a wrong number.

6 years agoMaking real need to remove proxies
Sergey Sharybin [Tue, 22 Oct 2013 15:19:37 +0000 (15:19 +0000)]
Making real need to remove proxies

Otherwise some invalid pointers will be left
which could be harmless if real object stays
local, but crashes when linking them to
another files.

Was discovered here in the studio during
Project Pampa, and the steps to reproduce are:

- Create lib.blend, put armature and cube to it.
  Create a group with them.
- Create scene.blend and link group from lib.blend.
- Make a proxy from armature.
- Make group real.
- Add real objects to a group.
- Create comp.blend and link group from scene.blend.
  This step will creah.

6 years agoBugfix: Renaming bones now renames the corresponding F-Curves in actions used by
Joshua Leung [Tue, 22 Oct 2013 11:36:48 +0000 (11:36 +0000)]
Bugfix: Renaming bones now renames the corresponding F-Curves in actions used by
Action Constraints

6 years agoCtrl+Alt+SelectMouse now does "Select all keyframes in same channel" in
Joshua Leung [Tue, 22 Oct 2013 11:12:37 +0000 (11:12 +0000)]
Ctrl+Alt+SelectMouse now does "Select all keyframes in same channel" in
DopeSheet too

Previously, it only worked in the Graph Editor, though I thought I had
implemented it here too.

6 years agoAdding comments to clarify each set of modifier mappings for animation editors
Joshua Leung [Tue, 22 Oct 2013 09:59:54 +0000 (09:59 +0000)]
Adding comments to clarify each set of modifier mappings for animation editors
selection ops

6 years agoMinor UI messages fixes.
Bastien Montagne [Tue, 22 Oct 2013 08:21:00 +0000 (08:21 +0000)]
Minor UI messages fixes.

6 years agoDopeSheet Group Select => Bone Select Tweak: Don't change selection status of
Joshua Leung [Tue, 22 Oct 2013 06:24:47 +0000 (06:24 +0000)]
DopeSheet Group Select => Bone Select Tweak: Don't change selection status of
bones if "Only Selected" dopesheet filter is enabled.

When this was enabled, it would be too easy to accidentally change the selected
bones, causing the keyframes you were just editing to disappear

6 years agoadd copy_v4_fl4, replace QUATSET macro.
Campbell Barton [Tue, 22 Oct 2013 03:31:21 +0000 (03:31 +0000)]
add copy_v4_fl4, replace QUATSET macro.

6 years agostyle cleanup
Campbell Barton [Tue, 22 Oct 2013 03:03:56 +0000 (03:03 +0000)]
style cleanup

6 years agominor changes to templates\13
Campbell Barton [Tue, 22 Oct 2013 00:25:15 +0000 (00:25 +0000)]
minor changes to templates\13

6 years agofix for invalid RNA created for the 3D viewport header (made ID reporting show incorr...
Campbell Barton [Mon, 21 Oct 2013 23:46:45 +0000 (23:46 +0000)]
fix for invalid RNA created for the 3D viewport header (made ID reporting show incorrectly).

6 years agostyle cleanup
Campbell Barton [Mon, 21 Oct 2013 23:35:08 +0000 (23:35 +0000)]
style cleanup

6 years agoFix #37169 brush UI not getting updated. A notifier was missing for
Antony Riakiotakis [Mon, 21 Oct 2013 18:08:20 +0000 (18:08 +0000)]
Fix #37169 brush UI not getting updated. A notifier was missing for
all unified paint settings properties, made sure to notify that
active brush has changed.