blender.git
8 years agoquiet compiler warnings for BLI_array defines, split BLI_array_append into BLI_array_...
Campbell Barton [Wed, 16 Nov 2011 17:09:41 +0000 (17:09 +0000)]
quiet compiler warnings for BLI_array defines, split BLI_array_append into BLI_array_append / BLI_array_append_r, the latter returning the new array location.

8 years agoedit the _BLI_array_growone macro so it doesnt give the error that values are calcula...
Campbell Barton [Wed, 16 Nov 2011 15:49:48 +0000 (15:49 +0000)]
edit the _BLI_array_growone macro so it doesnt give the error that values are calculated but not used.

8 years agotag index arrays as dirty when any element is removed, also check validity on operato...
Campbell Barton [Wed, 16 Nov 2011 14:36:23 +0000 (14:36 +0000)]
tag index arrays as dirty when any element is removed, also check validity on operator init/exit (check was missed in some cases before)

8 years agoBM_Compute_Normals was setting invalid edge index values when it didn't need to.
Campbell Barton [Wed, 16 Nov 2011 13:23:29 +0000 (13:23 +0000)]
BM_Compute_Normals was setting invalid edge index values when it didn't need to.

8 years agoensure dirty flags / index arrays are in a valid state before & after executing a...
Campbell Barton [Wed, 16 Nov 2011 13:06:49 +0000 (13:06 +0000)]
ensure dirty flags / index arrays are in a valid state before & after executing a BMO in debug mode.

8 years agofix for error in last commit, also make BM_ElemIndex_Validate() check dirty flag...
Campbell Barton [Wed, 16 Nov 2011 12:56:33 +0000 (12:56 +0000)]
fix for error in last commit, also make BM_ElemIndex_Validate() check dirty flag and complain if its set when it didnt need to be (this function isnt called yet)

8 years agoprepare for flagging the bmesh has having invalid index values, so we can skip loopin...
Campbell Barton [Wed, 16 Nov 2011 12:38:40 +0000 (12:38 +0000)]
prepare for flagging the bmesh has having invalid index values, so we can skip looping over all elements if its already valid.

- went over every BM_SetIndex call and added comments about its use, if its setting dirty values or correct ones.
- replace loops over all elements _just_ to set index values, with a new function, BM_ElemIndex_Ensure(...), this will eventually only initialize values when they are dirty.

8 years agoset the index on newly added vert/edge/faces
Campbell Barton [Wed, 16 Nov 2011 06:17:56 +0000 (06:17 +0000)]
set the index on newly added vert/edge/faces

added BM_ElemIndex_Ensure(...), not used yet.

8 years agosvn merge -r41847:41899 ^/trunk/blender
Campbell Barton [Wed, 16 Nov 2011 03:10:15 +0000 (03:10 +0000)]
svn merge -r41847:41899 ^/trunk/blender

8 years agoPartial Bugfix: [#29229] Outliner RMB commands unexpected results
Joshua Leung [Wed, 16 Nov 2011 00:13:38 +0000 (00:13 +0000)]
Partial Bugfix: [#29229] Outliner RMB commands unexpected results

This commit implements the Unlink and Make Single User capabilities for World
datablocks in the Outliner

8 years agoFix #29232: on background render where it could not find the .blend file, the
Brecht Van Lommel [Tue, 15 Nov 2011 23:03:35 +0000 (23:03 +0000)]
Fix #29232: on background render where it could not find the .blend file, the
default cube would be rendered instead, now stops processing arguments after
failed file load.

8 years agoFix #29278: cycles crash with displacement method both.
Brecht Van Lommel [Tue, 15 Nov 2011 22:09:30 +0000 (22:09 +0000)]
Fix #29278: cycles crash with displacement method both.

8 years agoOSX: buildfix for itask on 10.5.sdk
Jens Verwiebe [Tue, 15 Nov 2011 21:55:07 +0000 (21:55 +0000)]
OSX: buildfix for itask on 10.5.sdk

8 years agoFix #28936: UV unwrap issue with meshes with inconsistent normals.
Brecht Van Lommel [Tue, 15 Nov 2011 21:16:37 +0000 (21:16 +0000)]
Fix #28936: UV unwrap issue with meshes with inconsistent normals.

8 years agoFix issue with tracks color presets
Sergey Sharybin [Tue, 15 Nov 2011 20:26:44 +0000 (20:26 +0000)]
Fix issue with tracks color presets

8 years agoFix: part of 3d view header disappears when collapsing menus.
Brecht Van Lommel [Tue, 15 Nov 2011 20:19:15 +0000 (20:19 +0000)]
Fix: part of 3d view header disappears when collapsing menus.

8 years agoTypo fixes in descriptions.
Sergey Sharybin [Tue, 15 Nov 2011 20:02:45 +0000 (20:02 +0000)]
Typo fixes in descriptions.

8 years agoFix #29208: Text.clear() and Text.write() did not redraw text editor.
Brecht Van Lommel [Tue, 15 Nov 2011 19:46:56 +0000 (19:46 +0000)]
Fix #29208: Text.clear() and Text.write() did not redraw text editor.

8 years agoSVN maintenance.
Guillermo S. Romero [Tue, 15 Nov 2011 19:37:09 +0000 (19:37 +0000)]
SVN maintenance.

8 years agoFix #29275: vertex/edge/face selection buttons showing squashed in 3d view header.
Brecht Van Lommel [Tue, 15 Nov 2011 19:25:28 +0000 (19:25 +0000)]
Fix #29275: vertex/edge/face selection buttons showing squashed in 3d view header.

8 years agoCycles: move clew into cycles namespace to avoid conflicts, and fix mesh
Brecht Van Lommel [Tue, 15 Nov 2011 19:23:35 +0000 (19:23 +0000)]
Cycles: move clew into cycles namespace to avoid conflicts, and fix mesh
displacement panel showing with blender internal.

8 years agoFix for #29165 bugfix: adding nodes from shift+A menu in node editor did nothing.
Brecht Van Lommel [Tue, 15 Nov 2011 18:24:17 +0000 (18:24 +0000)]
Fix for #29165 bugfix: adding nodes from shift+A menu in node editor did nothing.

8 years agoFix build issue on windows, M_PI => M_PI_F.
Brecht Van Lommel [Tue, 15 Nov 2011 18:01:52 +0000 (18:01 +0000)]
Fix build issue on windows, M_PI => M_PI_F.

8 years agopatch [#28993] wm_window_match_do(): Fix crash on null pointer dereference
Campbell Barton [Tue, 15 Nov 2011 16:38:48 +0000 (16:38 +0000)]
patch [#28993] wm_window_match_do(): Fix crash on null pointer dereference
from Ola Jeppsson (olajep)

also some cleanup edits

8 years agoreplace rna description string limits with rna define RNA_DYN_DESCR_MAX
Campbell Barton [Tue, 15 Nov 2011 15:24:57 +0000 (15:24 +0000)]
replace rna description string limits with rna define RNA_DYN_DESCR_MAX

8 years agoFix #29259: cycles issues on certain processors. Now two versions of the kernel
Brecht Van Lommel [Tue, 15 Nov 2011 15:13:38 +0000 (15:13 +0000)]
Fix #29259: cycles issues on certain processors. Now two versions of the kernel
are compiled, one SSE optimized and the other not, and it will choose between
them at runtime.

8 years agoadd support for python __doc__ comments in menu classes showing in the tooltip, since...
Campbell Barton [Tue, 15 Nov 2011 14:58:14 +0000 (14:58 +0000)]
add support for python __doc__ comments in menu classes showing in the tooltip, since menus are used as buttons too.

8 years agoshow tooltips for menus, currently works for operators and enum properties which...
Campbell Barton [Tue, 15 Nov 2011 14:20:57 +0000 (14:20 +0000)]
show tooltips for menus, currently works for operators and enum properties which are can be accessed as menus from the UI (camera overlay enum for example)

8 years agoaccess mesh string data layer as bytes since this is low level data storage
Campbell Barton [Tue, 15 Nov 2011 14:01:24 +0000 (14:01 +0000)]
access mesh string data layer as bytes since this is low level data storage

8 years agofix [#29272] Dynamic Paint crashes on duplicating a particle system
Campbell Barton [Tue, 15 Nov 2011 13:45:24 +0000 (13:45 +0000)]
fix [#29272] Dynamic Paint crashes on duplicating a particle system
smoke had this same bug too

8 years agoOne more description became easier to understand
Sergey Sharybin [Tue, 15 Nov 2011 12:32:58 +0000 (12:32 +0000)]
One more description became easier to understand

8 years agopatch [#27708] API for adding mesh properties
Campbell Barton [Tue, 15 Nov 2011 12:28:13 +0000 (12:28 +0000)]
patch [#27708] API for adding mesh properties
from Geoffrey Bantle (briggs)

8 years agoCamera tracking: made some options more easy to understand
Sergey Sharybin [Tue, 15 Nov 2011 12:20:58 +0000 (12:20 +0000)]
Camera tracking: made some options more easy to understand

- Changed some names so now people who aren't really familiar with
  motion tracking can understand what they exactly means
- Also cleaned up and rephraded some descriptions
- Changed behavior of operator which creates empty for 2d tracks:
  now it operates on all selected tracks rather than active track only
- Added checkbox to enable/disable rotation stabilization

8 years agoFollow-up commit to r.41765
Joshua Leung [Tue, 15 Nov 2011 12:02:44 +0000 (12:02 +0000)]
Follow-up commit to r.41765

Reviewed behaviour of selection operators, and decided that ultimately, it's
better if select left/right/column didn't change the channel selections at all.
This is because with the highlighting of the active curve nowadays, it's a bit
distracting to suddenly lose track of it after performing these operations, when
you may have been trying to select all of the keyframes on that curve for
further tweaking.

8 years agopy/rna api was calling RNA_property_type more often then needed (no functional change)
Campbell Barton [Tue, 15 Nov 2011 11:56:54 +0000 (11:56 +0000)]
py/rna api was calling RNA_property_type more often then needed (no functional change)

8 years agoFormatting cleanup. No functional changes
Joshua Leung [Tue, 15 Nov 2011 11:34:49 +0000 (11:34 +0000)]
Formatting cleanup. No functional changes

8 years agoBugfix [#29264] Superfluous control in Maintain Volume constraint
Joshua Leung [Tue, 15 Nov 2011 11:15:37 +0000 (11:15 +0000)]
Bugfix [#29264] Superfluous control in Maintain Volume constraint

8 years agocorrect off by one error in previous commit, also add assert incase idproperty length...
Campbell Barton [Tue, 15 Nov 2011 11:04:29 +0000 (11:04 +0000)]
correct off by one error in previous commit, also add assert incase idproperty length gets out of sync.

8 years agomissed these while rna renaming.
Campbell Barton [Tue, 15 Nov 2011 10:49:02 +0000 (10:49 +0000)]
missed these while rna renaming.

8 years agoadd IDP_EqualsProperties support for comparing non-null terminated byte strings.
Campbell Barton [Tue, 15 Nov 2011 10:32:08 +0000 (10:32 +0000)]
add IDP_EqualsProperties support for comparing non-null terminated byte strings.

8 years agode-duplicate some idproperty py api code, also improve some exception messages.
Campbell Barton [Tue, 15 Nov 2011 10:19:44 +0000 (10:19 +0000)]
de-duplicate some idproperty py api code, also improve some exception messages.

8 years agoFixed compilation error in writeffmpg.c (caused by recent IDProp changes).
Bastien Montagne [Tue, 15 Nov 2011 10:01:18 +0000 (10:01 +0000)]
Fixed compilation error in writeffmpg.c (caused by recent IDProp changes).

8 years agoMinor: added the description of expected string format for the template_list's "prop_...
Bastien Montagne [Tue, 15 Nov 2011 09:42:00 +0000 (09:42 +0000)]
Minor: added the description of expected string format for the template_list's "prop_list" parameter (was missing in bpy ref...).

8 years agorename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c with case...
Campbell Barton [Tue, 15 Nov 2011 09:28:15 +0000 (09:28 +0000)]
rename IDProp.c/h to idprop_py_api, since it was same name as BKE idprop.c with case changed.

8 years agopass a pointer to IDP_New's IDPropertyTemplate rather then a copy.
Campbell Barton [Tue, 15 Nov 2011 09:22:52 +0000 (09:22 +0000)]
pass a pointer to IDP_New's IDPropertyTemplate rather then a copy.

8 years agoFixed typo in previous commit
Sergey Sharybin [Tue, 15 Nov 2011 09:21:22 +0000 (09:21 +0000)]
Fixed typo in previous commit

8 years agosupport for non-null terminated byte strings in id properties (as a subtype of IDP_ST...
Campbell Barton [Tue, 15 Nov 2011 09:12:10 +0000 (09:12 +0000)]
support for non-null terminated byte strings in id properties (as a subtype of IDP_STRING types)

8 years agoPatch from nico_ga: libmv can be compiled with icc now
Sergey Sharybin [Tue, 15 Nov 2011 08:43:28 +0000 (08:43 +0000)]
Patch from nico_ga: libmv can be compiled with icc now

8 years agoRequest from nico_ga: expose WITH_BF_STATIC* variables to linux-config so
Sergey Sharybin [Tue, 15 Nov 2011 08:43:23 +0000 (08:43 +0000)]
Request from nico_ga: expose WITH_BF_STATIC* variables to linux-config so
builders can easily find interesting for them flag.

8 years agofix for own error, BLI_replace_extension would strip the filename if there wasn't...
Campbell Barton [Tue, 15 Nov 2011 07:35:28 +0000 (07:35 +0000)]
fix for own error, BLI_replace_extension would strip the filename if there wasn't already an extension.

8 years agofix for crash in blenderplayer when the engine isnt fount.
Campbell Barton [Tue, 15 Nov 2011 07:30:26 +0000 (07:30 +0000)]
fix for crash in blenderplayer when the engine isnt fount.

8 years agoWorkaround for half-transparent windows when running blender-softwaregl
Sergey Sharybin [Tue, 15 Nov 2011 07:28:18 +0000 (07:28 +0000)]
Workaround for half-transparent windows when running blender-softwaregl
and compiz effects are enabled.

Thanks to Nicholas Bishop for pointing in possible solution of this issue.

8 years agobytestring support for py/rna - this is so py can access data which
Campbell Barton [Tue, 15 Nov 2011 07:09:41 +0000 (07:09 +0000)]
bytestring support for py/rna - this is so py can access data which
isn't meant to be accessed as unicode text.

8 years agoFix #29202: Crash - VSE Cross strip probably leads to this
Sergey Sharybin [Tue, 15 Nov 2011 07:00:01 +0000 (07:00 +0000)]
Fix #29202: Crash - VSE Cross strip probably leads to this

Crash was caused by several conditions:
- Frame which failed to decode tried to be converted to RGB colorspace
  and some filters like deinterlacing used to be applied as well
  (it's avscale stuff sws_scale where crash happened).
- In some cases it happened reading of freed memory when calling
  sws_scale function. Looks like it happened because of freeing
  packet on which decoding of frame finished and reading next packet.

Solved this two issues by making YUV->RGB conversion as soon as
frame was decoded in ffmpeg_decode_video_frame (such postprocessing
used to happen in callee of this function ffmpeg_fetchibuf), so now
sws_scale would be called before freeing packet on which decoding of
frame finished and it wouldn't be called in cases when decoding of
frame failed.

If decoding of frame failed, it'll be black ibuf returned to the sequencer.

8 years agoFix #29253: 3D Manipulator: "Active Element" not supported for curves
Sergey Sharybin [Tue, 15 Nov 2011 06:37:47 +0000 (06:37 +0000)]
Fix #29253: 3D Manipulator: "Active Element" not supported for curves

This funcitonality simply wasn't implemented for curves yet, implemented it now.

8 years agoFix #29165: Arrow keys not working correct in Compositing Node Editor
Sergey Sharybin [Tue, 15 Nov 2011 06:33:33 +0000 (06:33 +0000)]
Fix #29165: Arrow keys not working correct in Compositing Node Editor

Bug is caused because of how ui_handle_menu_event works -- it makes quite tricky check
in which direction movement happens depending on button type.

Checked usages for uiItemV and found that it's used in node_editor only, so changed type
of button used there, so ui_handle_menu_event works would detect right direction of
movement.

8 years agoadd back feature from 2.4x - Shift+Del to delete objects from all scenes.
Campbell Barton [Tue, 15 Nov 2011 04:11:01 +0000 (04:11 +0000)]
add back feature from 2.4x - Shift+Del to delete objects from all scenes.

8 years agoremove unused OceanModifierData member & use smaller flags where possible
Campbell Barton [Tue, 15 Nov 2011 03:48:25 +0000 (03:48 +0000)]
remove unused OceanModifierData member & use smaller flags where possible

8 years agosvn merge -r41779:41847 ^/trunk/blender
Campbell Barton [Tue, 15 Nov 2011 02:58:06 +0000 (02:58 +0000)]
svn merge -r41779:41847  ^/trunk/blender

8 years agoset cycles scripts as pep8 & make some minor changes.
Campbell Barton [Tue, 15 Nov 2011 02:58:01 +0000 (02:58 +0000)]
set cycles scripts as pep8 & make some minor changes.

also update sphinx doc generator.

8 years agosvn merge -r41751:41779 ^/trunk/blender
Campbell Barton [Tue, 15 Nov 2011 02:05:32 +0000 (02:05 +0000)]
svn merge -r41751:41779  ^/trunk/blender

8 years agoFix #29249: mapping node not keyable anymore, restore RNA to what it was before
Brecht Van Lommel [Mon, 14 Nov 2011 20:39:53 +0000 (20:39 +0000)]
Fix #29249: mapping node not keyable anymore, restore RNA to what it was before
Cycles change, generating RNA paths for this is a bit complicated.

8 years agoFix #29238: crash with node dependency loop.
Brecht Van Lommel [Mon, 14 Nov 2011 20:26:23 +0000 (20:26 +0000)]
Fix #29238: crash with node dependency loop.

8 years agoCycles:
Brecht Van Lommel [Mon, 14 Nov 2011 19:45:21 +0000 (19:45 +0000)]
Cycles:
* Fix #29257: nan-pixels with zero roughness for glass/glossy.
* Fix #29239: crash with border rendering, this is not working yet, but should
  no longer crash now.
* Show object name in 3d view rendered draw type.
* Attempt to improve Sample as Light option description.

8 years agoFix for uninitialized usage of spos in AUD_LinearResampleReader::read
Sergey Sharybin [Mon, 14 Nov 2011 19:44:49 +0000 (19:44 +0000)]
Fix for uninitialized usage of spos in AUD_LinearResampleReader::read

Patch is verified by neXyon

8 years agoSome UI messages fixes and tweaks in recent merges (found while translating in french).
Bastien Montagne [Mon, 14 Nov 2011 19:13:52 +0000 (19:13 +0000)]
Some UI messages fixes and tweaks in recent merges (found while translating in french).

8 years agofix a leak from the CD_POLYINDEX changes that occurs for certain modifiers (when...
Andrew Wiggin [Mon, 14 Nov 2011 17:38:34 +0000 (17:38 +0000)]
fix a leak from the CD_POLYINDEX changes that occurs for certain modifiers (when re-calculating normals over an existing ^C_NORMALs layer)

8 years agoText Editor: implement space-as-tab navigation
Dalai Felinto [Mon, 14 Nov 2011 17:33:32 +0000 (17:33 +0000)]
Text Editor: implement space-as-tab navigation

When "use tab as space" is on we will jump the spaces as if they were one single tab when navigating (left/right).
Tabsize still is hardcoded to 4, but this is a separate design issue left for another patch.

* patch done in the airplane while expaining the Text Editor code for a potencial new coder @ Blender PRO 2011 *

8 years agoCycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it
Brecht Van Lommel [Mon, 14 Nov 2011 17:31:47 +0000 (17:31 +0000)]
Cycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it
is available through the Roughness input on the Diffuse BSDF.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Diffuse

Patch by Yasuhiro Fujii, thanks!

8 years agoFix: Last triangle wasn't always drawn when VBO enabled.
Miika Hamalainen [Mon, 14 Nov 2011 16:34:11 +0000 (16:34 +0000)]
Fix: Last triangle wasn't always drawn when VBO enabled.

8 years agoObject.to_mesh() for metaball objects now only return a mesh for the basis/mother
Brecht Van Lommel [Mon, 14 Nov 2011 16:18:44 +0000 (16:18 +0000)]
Object.to_mesh() for metaball objects now only return a mesh for the basis/mother
metaball. This should fix duplicated export of metaballs for python exporters and
cycles.

8 years agominor cleanup
Campbell Barton [Mon, 14 Nov 2011 16:05:44 +0000 (16:05 +0000)]
minor cleanup
- use NULL rather then 0 for pointers
- use static functions where possible
- add own includes to ensure func's and their declarations don't get out of sync.

8 years ago* Recommit of "a" BLENDER_VERSION_CHAR.
Thomas Dinges [Mon, 14 Nov 2011 15:29:59 +0000 (15:29 +0000)]
* Recommit of "a" BLENDER_VERSION_CHAR.

8 years agofix [#29251] Properties options={'SKIP_SAVE'} not working, patch attached
Campbell Barton [Mon, 14 Nov 2011 15:05:41 +0000 (15:05 +0000)]
fix [#29251] Properties options={'SKIP_SAVE'} not working, patch attached
patch from Domino Marama (domino)

8 years agofix [#29242] menus have no keyboard shortcuts
Campbell Barton [Mon, 14 Nov 2011 14:42:47 +0000 (14:42 +0000)]
fix [#29242] menus have no keyboard shortcuts

8 years agoApply patch [#28632] Add individual invert to 3d mouse in turntable mode and when...
Nathan Letwory [Mon, 14 Nov 2011 14:02:19 +0000 (14:02 +0000)]
Apply patch [#28632] Add individual invert to 3d mouse in turntable mode and when zooming
Submitted by Rainer Wahler

This patch adds the individual invert options for the turntable mode too. In turntable mode there are only the rotate and roll and no tilt axis to invert.

8 years agoScons: make sure fftw is enabled when ocean_mod is compiled
Jens Verwiebe [Mon, 14 Nov 2011 12:55:46 +0000 (12:55 +0000)]
Scons: make sure fftw is enabled when ocean_mod is compiled

8 years agoFix #29252: GLSL not working with geometry material node after recent changes.
Brecht Van Lommel [Mon, 14 Nov 2011 12:47:47 +0000 (12:47 +0000)]
Fix #29252: GLSL not working with geometry material node after recent changes.

8 years agoBetter fix for crashes when rendering original edit mesh faces on empty edit mesh...
Lukas Toenne [Mon, 14 Nov 2011 11:17:07 +0000 (11:17 +0000)]
Better fix for crashes when rendering original edit mesh faces on empty edit mesh with constructive modifier (#29241). This avoids the additional test inside the loop.

8 years agoFixed compilation error with msvc caused by recent libmv commit
Sergey Sharybin [Mon, 14 Nov 2011 10:47:34 +0000 (10:47 +0000)]
Fixed compilation error with msvc caused by recent libmv commit

8 years agomingw compiles again after OceanSim stuff
Joshua Leung [Mon, 14 Nov 2011 10:35:11 +0000 (10:35 +0000)]
mingw compiles again after OceanSim stuff

8 years agofix for shiftx/y for recently added VIEW3D_OT_camera_to_view_selected operator.
Campbell Barton [Mon, 14 Nov 2011 08:43:09 +0000 (08:43 +0000)]
fix for shiftx/y for recently added VIEW3D_OT_camera_to_view_selected operator.

8 years agoFix for [#29247] Incorrect black color with dynamic paint
Miika Hamalainen [Mon, 14 Nov 2011 08:18:04 +0000 (08:18 +0000)]
Fix for [#29247] Incorrect black color with dynamic paint

8 years agoFix for #29241, ocean sim modifier crash when removing all vertices.
Lukas Toenne [Mon, 14 Nov 2011 08:06:24 +0000 (08:06 +0000)]
Fix for #29241, ocean sim modifier crash when removing all vertices.

The object draw method did not check for valid data when mapping back to original face, constructive modifier on empty mesh does that.

8 years agomake ocean rna more consistent with existing rna names
Campbell Barton [Mon, 14 Nov 2011 07:18:32 +0000 (07:18 +0000)]
make ocean rna more consistent with existing rna names

8 years agomake rna naming for dynamic paint consistent with existing names & conventions.
Campbell Barton [Mon, 14 Nov 2011 07:07:59 +0000 (07:07 +0000)]
make rna naming for dynamic paint consistent with existing names & conventions.

8 years agoDPAINT_OT_output_toggle operator was using an index option for what was really a...
Campbell Barton [Mon, 14 Nov 2011 06:46:07 +0000 (06:46 +0000)]
DPAINT_OT_output_toggle operator was using an index option for what was really a toggle between 2 values, changed its index option to an enum.

if a value other than 1/0 was given it would use an uninitialized pointer too (compiler warning, review should pick up this stuff).

also renamed some RNA attrs:
 output_name --> output_name_a
 output_name2 --> output_name_b
 do_output1 --> use_output_a
 do_output2 --> use_output_b
 do_smudge --> use_smudge
 max_velocity --> velocity_max

8 years agoCamera tracking: interface cleanup and small buttons renaming
Sergey Sharybin [Mon, 14 Nov 2011 06:41:42 +0000 (06:41 +0000)]
Camera tracking: interface cleanup and small buttons renaming

- Move tracking-related constraints to own section in list
  Currently there are only two constraints, so can look a bit odd,
  but it'll be other constraints like "Object Solver" and so.
- Move motion-tracking parameters from 3D viewport Display panel
  to it's own panel.
- Get rid of "Bundle" in 3d viewport. It's quite obvious that it's
  a 3D representation of tracks is used in 3D viewport and it shouldn't
  be so confusing for artists now.
- Also get rid of "Bundle" in Follow Track constraint.
  Old files can change a bit because of changes in DNA.
- Also get rid of "Bundles" in operator which creates vertices cloud
  from 3D position of tracks.
- Rename "Principal Point" to "Optical Center" in the interface.

8 years agoCamera tracking: code cleanup
Sergey Sharybin [Mon, 14 Nov 2011 06:41:32 +0000 (06:41 +0000)]
Camera tracking: code cleanup

8 years agoAssorted camera tracker improvements
Sergey Sharybin [Mon, 14 Nov 2011 06:41:23 +0000 (06:41 +0000)]
Assorted camera tracker improvements

- Add support for refining the camera's intrinsic parameters
  during a solve. Currently, refining supports only the following
  combinations of intrinsic parameters:

    f
    f, cx, cy
    f, cx, cy, k1, k2
    f, k1
    f, k1, k2

  This is not the same as autocalibration, since the user must
  still make a reasonable initial guess about the focal length and
  other parameters, whereas true autocalibration would eliminate
  the need for the user specify intrinsic parameters at all.

  However, the solver works well with only rough guesses for the
  focal length, so perhaps full autocalibation is not that
  important.

  Adding support for the last two combinations, (f, k1) and (f,
  k1, k2) required changes to the library libmv depends on for
  bundle adjustment, SSBA. These changes should get ported
  upstream not just to libmv but to SSBA as well.

- Improved the region of convergence for bundle adjustment by
  increasing the number of Levenberg-Marquardt iterations from 50
  to 500. This way, the solver is able to crawl out of the bad
  local minima it gets stuck in when changing from, for example,
  bundling k1 and k2 to just k1 and resetting k2 to 0.

- Add several new region tracker implementations. A region tracker
  is a libmv concept, which refers to tracking a template image
  pattern through frames. The impact to end users is that tracking
  should "just work better". I am reserving a more detailed
  writeup, and maybe a paper, for later.

- Other libmv tweaks, such as detecting that a tracker is headed
  outside of the image bounds.

This includes several changes made directly to the libmv extern
code rather expecting to get those changes through normal libmv
channels, because I, the libmv BDFL, decided it was faster to work
on libmv directly in Blender, then later reverse-port the libmv
changes from Blender back into libmv trunk. The interesting part
is that I added a full Levenberg-Marquardt loop to the region
tracking code, which should lead to a more stable solutions. I
also added a hacky implementation of "Efficient Second-Order
Minimization" for tracking, which works nicely. A more detailed
quantitative evaluation will follow.

Original patch by Keir, cleaned a bit by myself.

8 years agofix uninitialized memory use when an object has modifiers but no ocean modifier.
Campbell Barton [Mon, 14 Nov 2011 06:11:40 +0000 (06:11 +0000)]
fix uninitialized memory use when an object has modifiers but no ocean modifier.

8 years agoOcean baking was using uninitialized memory, but further investigation it was calcula...
Campbell Barton [Mon, 14 Nov 2011 05:55:50 +0000 (05:55 +0000)]
Ocean baking was using uninitialized memory, but further investigation it was calculating foam values when they were not used.

avoid calculating foam and allocating memory when its not needed.

8 years agoFix #29245: BuilderBot can't build anymore
Sergey Sharybin [Mon, 14 Nov 2011 05:52:06 +0000 (05:52 +0000)]
Fix #29245: BuilderBot can't build anymore

Buildbot is using different settings for blender and player,
enable fftw library in rules for player now.

8 years agoVIEW3D_OT_camera_to_view_selected operator to move the camera to frame
Campbell Barton [Mon, 14 Nov 2011 03:54:23 +0000 (03:54 +0000)]
VIEW3D_OT_camera_to_view_selected operator to move the camera to frame
all selected, renderable objects.

8 years agoMoving all node angle-type values to radians. This also fixes [#29151] rotate node...
Bastien Montagne [Sun, 13 Nov 2011 18:03:27 +0000 (18:03 +0000)]
Moving all node angle-type values to radians. This also fixes [#29151] rotate node wrong input (mixing up radians and degrees).

Warning!

Angles in nodes have just been moved to consistant Radians values (ANGLE subtype of RNA Float property). You will still see them as degrees in the GUI, though, unless you chose otherwise in Scene properties, Units panel.

Conversion from degrees to radians for old files is obviously done at loading time, but if you use a mixed pipeline of trunk and releases, be carefull!

Loading a 2.60.4 file (or higher) into any previous version of Blender, your angles in nodes will have odd values (well, radians interpreted as degrees)!

And if you save such file in a pre-2.60.4 version, the angle node values will be converted again when loaded in Blender 2.60.4 or higher...

This affects following nodes:
* Compo: Rotate, Defocus, ChromaMatte, Glare and DirectionalBlur
* Shader: Mapping
And all future code using the TexMapping struct’s rotation part (its rot memember is now in radians).

8 years agoFix #29240: multi-res bake broken in 2.60
Sergey Sharybin [Sun, 13 Nov 2011 17:45:42 +0000 (17:45 +0000)]
Fix #29240: multi-res bake broken in 2.60

Use preview subdivision level even when in sculpt mode. Makes more sense
than baking against sculpting subdivision level.

8 years agoCamera solving: fixed incorrect warnings about failure of solving some frames
Sergey Sharybin [Sun, 13 Nov 2011 17:16:04 +0000 (17:16 +0000)]
Camera solving: fixed incorrect warnings about failure of solving some frames

Error was caused y not very accurate calculating which frames should be solved.

8 years agoQuiting a warning in Ocean code (commenting out var).
Bastien Montagne [Sun, 13 Nov 2011 16:38:14 +0000 (16:38 +0000)]
Quiting a warning in Ocean code (commenting out var).

8 years agonew math utility function isect_plane_plane_v3
Campbell Barton [Sun, 13 Nov 2011 16:28:52 +0000 (16:28 +0000)]
new math utility function isect_plane_plane_v3

8 years agoRelease cycle:
Thomas Dinges [Sun, 13 Nov 2011 16:24:15 +0000 (16:24 +0000)]
Release cycle:
Moving on to BCon 3: beta