9 years agoMerging r45693 through r45707 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 17 Apr 2012 10:09:47 +0000 (10:09 +0000)]
Merging r45693 through r45707 from trunk into soc-2011-tomato

9 years agoremove the poll function from import/export templates
Campbell Barton [Tue, 17 Apr 2012 05:49:07 +0000 (05:49 +0000)]
remove the poll function from import/export templates

9 years agoadd import operator python template.
Campbell Barton [Tue, 17 Apr 2012 05:47:32 +0000 (05:47 +0000)]
add import operator python template.

9 years agocode cleanup: remove/comment some unused code.
Campbell Barton [Tue, 17 Apr 2012 05:09:37 +0000 (05:09 +0000)]
code cleanup: remove/comment some unused code.

9 years agominor speedup for scanfill, dont calculate the normal if its already known - use...
Campbell Barton [Mon, 16 Apr 2012 18:24:49 +0000 (18:24 +0000)]
minor speedup for scanfill, dont calculate the normal if its already known - use for editmode ngon filling.

9 years agoinline function for "Newell's Method" used for normal calc.
Campbell Barton [Mon, 16 Apr 2012 16:49:37 +0000 (16:49 +0000)]
inline function for "Newell's Method" used for normal calc.

9 years agoimprove scanfill for uneven ngons, previously scanfill would use the most angular...
Campbell Barton [Mon, 16 Apr 2012 16:24:55 +0000 (16:24 +0000)]
improve scanfill for uneven ngons, previously scanfill would use the most angular corner, but this made non planer ngons rip frequently (often reported problem).

now calculate the normal as with ngons.

9 years agofix for fail thumbs being used when the failed thumbnail image is older then the...
Campbell Barton [Mon, 16 Apr 2012 15:13:21 +0000 (15:13 +0000)]
fix for fail thumbs being used when the failed thumbnail image is older then the image/movie/blend.

9 years agofix error when a failed thumb overrides a newer good thumbnail.
Campbell Barton [Mon, 16 Apr 2012 14:34:48 +0000 (14:34 +0000)]
fix error when a failed thumb overrides a newer good thumbnail.
on saving blend file remove failed thumb.

9 years agoPartial revert of rev45691: allow lightmap undo and add comment why redo was disabled
Sergey Sharybin [Mon, 16 Apr 2012 14:27:22 +0000 (14:27 +0000)]
Partial revert of rev45691: allow lightmap undo and add comment why redo was disabled

9 years agoFix #30720: Creating Navmesh crashes blender
Sergey Sharybin [Mon, 16 Apr 2012 13:53:30 +0000 (13:53 +0000)]
Fix #30720: Creating Navmesh crashes blender

In fact there were several issues fixed (all of them regressions since bmesh merge):

- Creating navmesh crashed because creating new faces for mesh was trying to set
  default values for all customdata layers in this face. This requires memory
  pool created for this datablock.
  Usually this pool is creating on creating datablock if there're some elements
  to be stored in this block. In cases of regular primitive creating it wasn't
  an issue because they doesn't create customdata layers, they only creates
  Navigation mesh creates geometry and customdata layers (CD_RECAST layer)
  which used to confuse a bit custom data functions. Solved by ensuring there's
  memory pool created for polygons datablock after adding new custom data layer.
  Most probably it's better to be resolved on CD level (like smarter track on
  changed amount of stored data and so) but prefer not to make such global changes
  so close to the release.
- Toggling edit mode lead to loosing recast datalayer. Solved by adding recast
  layer to bmesh mask so it'll be copied to/from edit mesh.
- Some part of code assumed raycast layer is in face datablock, some that it's in
  polygon datablock. Made it to be in polygons datablock.
  Kind of temporary solution to make navmesh working, probably it'll fail if one
  will want to edit navmesh by hand after it was generated.
  Proper way would be to ensure the whole navmesh things are using ngons.

9 years agoDynamic output sockets for the image input node. This is needed to enable the node...
Lukas Toenne [Mon, 16 Apr 2012 13:49:33 +0000 (13:49 +0000)]
Dynamic output sockets for the image input node. This is needed to enable the node to read arbitrary multilayer exr files. Output sockets of this node are now generated dynamically when the image is updated. The image buffer has to be loaded to detect multilayer files on update.

9 years agofix [#30972] Editmesh split by materials not working.
Campbell Barton [Mon, 16 Apr 2012 13:49:04 +0000 (13:49 +0000)]
fix [#30972] Editmesh split by materials not working.

9 years agoCycles: add "Blur Glossy" integrator option.
Brecht Van Lommel [Mon, 16 Apr 2012 12:57:11 +0000 (12:57 +0000)]
Cycles: add "Blur Glossy" integrator option.

When using a value higher than 0.0, this will blur glossy reflections after
blurry bounces, to reduce noise at the cost of accuracy. 1.0 is a good
starting value to tweak.

Some light paths have a low probability of being found while contributing much
light to the pixel. As a result these light paths will be found in some pixels
and not in others, causing fireflies. An example of such a difficult path might
be a small light that is causing a small specular highlight on a sharp glossy
material, which we are seeing through a rough glossy material. With path tracing
it is difficult to find the specular highlight, but if we increase the roughness
on the material the highlight gets bigger and softer, and so easier to find.

Often this blurring will be hardly noticeable, because we are seeing it through
a blurry material anyway, but there are also cases where this will lead to a
loss of detail in lighting.

(note that this is being committed to the tomato branch, mango will be using
this branch until feature freeze for 2.63 is over, then switch back)

9 years agoMerging r45620 through r45692 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 16 Apr 2012 12:47:34 +0000 (12:47 +0000)]
Merging r45620 through r45692 from trunk into soc-2011-tomato

9 years agoAvoid invalid delete call when loading multilayer EXR files with that don't fit the...
Lukas Toenne [Mon, 16 Apr 2012 11:57:22 +0000 (11:57 +0000)]
Avoid invalid delete call when loading multilayer EXR files with that don't fit the Blender pass naming scheme. If the imb_exr_begin_read_mem function fails reading the EXR (e.g. because of too many channels per pass) it deletes the file internally, leading to segfault on second delete.

9 years agoFix #30968: Lightmap Pack - no new image limit
Sergey Sharybin [Mon, 16 Apr 2012 11:54:28 +0000 (11:54 +0000)]
Fix #30968: Lightmap Pack - no new image limit

Disable operator register and redo flags because it might modify non-mesh
data when in edit mode. This doesn't work properly with current undo stack

9 years agoPort multires_topology_changed to new bmesh api
Sergey Sharybin [Mon, 16 Apr 2012 11:03:42 +0000 (11:03 +0000)]
Port multires_topology_changed to new bmesh api

This call is still needed when loading editmesh because some operations
are not creating CD layer for new loops (like crating new face) and
to prevent loosing all sculpted data when running disps correct
displacement maps should be allocated on loading edit mesh.

9 years agoReverted r43219 "Improved auto-hiding of unused sockets for collapsed nodes."
Lukas Toenne [Mon, 16 Apr 2012 10:50:57 +0000 (10:50 +0000)]
Reverted r43219 "Improved auto-hiding of unused sockets for collapsed nodes."

This feature did have a number of flaws and caused some controversy, so removal is the better option. Hiding nodes without prior connections would just hide all the sockets, leaving an unusable node. Better way is to use the ctrl+h shortcut to explicitly hide unused sockets when necessary.

9 years agobmesh todo: remove unused code.
Campbell Barton [Mon, 16 Apr 2012 10:29:59 +0000 (10:29 +0000)]
bmesh todo: remove unused code.

9 years agoAnd another fix for r45669 to have dualcon compile on windows...
Thomas Dinges [Mon, 16 Apr 2012 10:22:28 +0000 (10:22 +0000)]
And another fix for r45669 to have dualcon compile on windows...

9 years agobmesh todo: snap to volume with dupli's works again
Campbell Barton [Mon, 16 Apr 2012 10:09:26 +0000 (10:09 +0000)]
bmesh todo: snap to volume with dupli's works again

9 years agocode cleanup: remove bmesh todo, which infact is working fine.
Campbell Barton [Mon, 16 Apr 2012 10:02:52 +0000 (10:02 +0000)]
code cleanup: remove bmesh todo, which infact is working fine.

9 years agopatch to our desktop file from debian, German translation.
Campbell Barton [Mon, 16 Apr 2012 09:56:12 +0000 (09:56 +0000)]
patch to our desktop file from debian, German translation.

9 years agoFix #30958: Right click menu and add shortcut for importers/exporters doesn't work
Sergey Sharybin [Mon, 16 Apr 2012 09:55:54 +0000 (09:55 +0000)]
Fix #30958: Right click menu and add shortcut for importers/exporters doesn't work

This was caused by how keymap is guessing for importer/exporter:

- In some cases if detected wrong keymap like for IMPORT_CURVE_OT_svg
  curve editing context was used because of CURVE_OT substring in
  operator name
- In other cases no keymap was detected because of substrings
  WM_keymap_guess_opname cheched.

Fixed by using Window keymap for any operator with EXPORT_/IMPORT_ substring
which seems to detect importer/exporter operator and only them nicely.

9 years agoFix/tweak for cycles border render, it wasn't generating the exact same samples
Brecht Van Lommel [Mon, 16 Apr 2012 09:52:25 +0000 (09:52 +0000)]
Fix/tweak for cycles border render, it wasn't generating the exact same samples
when rendering a subset instead of the whole, mostly useful for debugging.

9 years agobmesh todos:
Campbell Barton [Mon, 16 Apr 2012 09:34:43 +0000 (09:34 +0000)]
bmesh todos:
- dont do name based object lookup to find the object for a mesh undo state (possibly object is renamed inbetween undos which would crash)
- remove some todo comments for things that are working as they should.

9 years agoFix for isnan compile issue on windows (second try).
Brecht Van Lommel [Mon, 16 Apr 2012 09:13:32 +0000 (09:13 +0000)]
Fix for isnan compile issue on windows (second try).

9 years agobmesh todo: ctrl+l now delimits by hidden faces.
Campbell Barton [Mon, 16 Apr 2012 08:44:11 +0000 (08:44 +0000)]
bmesh todo: ctrl+l now delimits by hidden faces.

9 years agoFix #30966: cycles nan mesh vertices got set to (0, 0, 0), now remove them instead.
Brecht Van Lommel [Mon, 16 Apr 2012 08:35:21 +0000 (08:35 +0000)]
Fix #30966: cycles nan mesh vertices got set to (0, 0, 0), now remove them instead.

9 years agoFix windows compile issue with missing isnan.
Brecht Van Lommel [Mon, 16 Apr 2012 08:11:07 +0000 (08:11 +0000)]
Fix windows compile issue with missing isnan.

9 years agobmesh todos:
Campbell Barton [Mon, 16 Apr 2012 08:04:12 +0000 (08:04 +0000)]
bmesh todos:
- curve undo now runs ED_curve_updateAnimPaths() again.
- comment out unneeded index setting.

9 years agomake scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge...
Campbell Barton [Mon, 16 Apr 2012 06:48:57 +0000 (06:48 +0000)]
make scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge it didn't need to be) - now rendering uses its better if its threadsafe.

9 years agostyle cleanup: scanfill, spelling and use NULL rather then 0
Campbell Barton [Mon, 16 Apr 2012 05:23:40 +0000 (05:23 +0000)]
style cleanup: scanfill, spelling and use NULL rather then 0

9 years agocode cleanup: avoid confusion with incorrectly named argument to BLI_edgefill(),...
Campbell Barton [Mon, 16 Apr 2012 05:03:04 +0000 (05:03 +0000)]
code cleanup: avoid confusion with incorrectly named argument to BLI_edgefill(), was 'mat_nr', now 'do_quad_tri_speedup'

9 years agobmesh api todo:
Campbell Barton [Mon, 16 Apr 2012 04:17:33 +0000 (04:17 +0000)]
bmesh api todo:
emDM_getTessFaceDataArray now returns UV's and Colors from editmode loops.

9 years agorename wm.blenderplayer_start label from 'Start' to 'Start Game In Player', also...
Campbell Barton [Mon, 16 Apr 2012 02:28:18 +0000 (02:28 +0000)]
rename wm.blenderplayer_start label from 'Start' to 'Start Game In Player', also made it check if the player is found before running.

9 years agofix [#30967] Straighten X/Y in the UV/Image Editor bug
Campbell Barton [Mon, 16 Apr 2012 01:55:25 +0000 (01:55 +0000)]
fix [#30967] Straighten X/Y in the UV/Image Editor bug
patch by Bastien Montagne, checked this works the same as 2.62.

9 years agoFix for remesh modifier crash mentioned in comments of bug [#30966]
Nicholas Bishop [Mon, 16 Apr 2012 01:18:02 +0000 (01:18 +0000)]
Fix for remesh modifier crash mentioned in comments of bug [#30966]

Reading in triangles now skips any NaN coordinates.

9 years agoUI:
Thomas Dinges [Sun, 15 Apr 2012 21:10:14 +0000 (21:10 +0000)]
* Remove un-descriptive Tooltip from Cloth preset menu.

9 years agoFluid Simulation:
Thomas Dinges [Sun, 15 Apr 2012 21:02:08 +0000 (21:02 +0000)]
Fluid Simulation:
* Replaced the hard coded viscosity presets with Python ones.

* Added version check, so older files load fine.
Loading new files into 2.62 also works fine.

9 years agoFix [#30943] Crash when edge mode enabled and use the bmesh vertex slide(shift-V)
Francisco De La Cruz [Sun, 15 Apr 2012 18:34:13 +0000 (18:34 +0000)]
Fix [#30943] Crash when edge mode enabled and use the bmesh vertex slide(shift-V)

Also fixed snapping sensitivity. Gave BMOp a more consistent name "vertex_slide".

9 years agoFix #30955: cycles render issue with lights that have shadow casting disabled.
Brecht Van Lommel [Sun, 15 Apr 2012 15:35:09 +0000 (15:35 +0000)]
Fix #30955: cycles render issue with lights that have shadow casting disabled.

9 years agoadd 'idprop' module so we can document idprop.types.*, currently doc generator has...
Campbell Barton [Sun, 15 Apr 2012 14:54:15 +0000 (14:54 +0000)]
add 'idprop' module so we can document idprop.types.*, currently doc generator has no access to ID Property types.

9 years agoFix bug [#30953] Changing brush preset irreversibly undoes things
Nicholas Bishop [Sun, 15 Apr 2012 14:54:01 +0000 (14:54 +0000)]
Fix bug [#30953] Changing brush preset irreversibly undoes things

Remove REGISTER/UNDO flags from brush preset operator.

9 years agocode cleanup: minor edits, use function for getting console module.
Campbell Barton [Sun, 15 Apr 2012 14:51:37 +0000 (14:51 +0000)]
code cleanup: minor edits, use function for getting console module.

9 years agofix [#30956] Unwrapping, Lightmap Pack broken
Campbell Barton [Sun, 15 Apr 2012 14:14:15 +0000 (14:14 +0000)]
fix [#30956] Unwrapping, Lightmap Pack broken

9 years agoStyle cleanup (mostly line length, also no final point in tips...).
Bastien Montagne [Sun, 15 Apr 2012 13:41:07 +0000 (13:41 +0000)]
Style cleanup (mostly line length, also no final point in tips...).

9 years agoBGE bug #30555: crash in Replace Mesh when physics shape is triangle mesh and new...
Benoit Bolsee [Sun, 15 Apr 2012 12:49:34 +0000 (12:49 +0000)]
BGE bug #30555: crash in Replace Mesh when physics shape is triangle mesh and new mesh has no collision faces. The fix consists in keeping the previous physics shape, which is not quite correct, but the situation is unusual anyway.

9 years agoBGE bug #30515: Sensor physics mode missing UI for use_actor option. This option...
Benoit Bolsee [Sun, 15 Apr 2012 11:47:08 +0000 (11:47 +0000)]
BGE bug #30515: Sensor physics mode missing UI for use_actor option. This option tells whether the sensor object is only affected by objects that have the Actor option on or any object. The option was missing from the UI.

9 years agoBugfix [#30954] Fluid obstacle checkbox has no effect
Daniel Genrich [Sun, 15 Apr 2012 10:31:38 +0000 (10:31 +0000)]
Bugfix [#30954] Fluid obstacle checkbox has no effect

Needs testing for sideeffects.

If there are negative sideeffects, revert commit and mark as "will not fix"/"not supported"/"needs UI fix".

9 years agoFix #30952: uv unwrapper not working as well as 2.62 on some topologies, let the
Brecht Van Lommel [Sun, 15 Apr 2012 10:31:07 +0000 (10:31 +0000)]
Fix #30952: uv unwrapper not working as well as 2.62 on some topologies, let the
unwrapper itself decide how to split quads since it has specific checks for the
best unwrapping split built in, gives better results.

9 years agomake ngon_perimeter into a public api function and expose to python.
Campbell Barton [Sun, 15 Apr 2012 10:09:27 +0000 (10:09 +0000)]
make ngon_perimeter into a public api function and expose to python.

9 years agoFix #30960: various mesh operators were missing tooltip descriptions.
Brecht Van Lommel [Sun, 15 Apr 2012 10:07:57 +0000 (10:07 +0000)]
Fix #30960: various mesh operators were missing tooltip descriptions.

9 years agoTweak knife/unwrap tesselation code a bit, it uses a random offset, now also
Brecht Van Lommel [Sun, 15 Apr 2012 10:06:36 +0000 (10:06 +0000)]
Tweak knife/unwrap tesselation code a bit, it uses a random offset, now also
seed the random number generator to at least make these operator repeatable.

I don't know why it is using random numbers at all, we should really not be
doing this in my opinion, but I don't understand why it's being done so won't
remove it.

9 years agofix incorrect use of PLATFORM_DEFAULT with cmake
Campbell Barton [Sun, 15 Apr 2012 09:51:30 +0000 (09:51 +0000)]
fix incorrect use of PLATFORM_DEFAULT with cmake

9 years agoFix [#30959] "undocumented operator" tooltip for Collada im- and export
Thomas Dinges [Sun, 15 Apr 2012 09:39:51 +0000 (09:39 +0000)]
Fix [#30959] "undocumented operator" tooltip for Collada im- and export

* Also change UI name for ColorRamp node in rna_nodetree_types.h (Had a different name than in the actual UI)

9 years agoqtcreator/netbeans generators: fix for error getting project info when svn isnt found...
Campbell Barton [Sun, 15 Apr 2012 09:34:57 +0000 (09:34 +0000)]
qtcreator/netbeans generators: fix for error getting project info when svn isnt found (common on windows)

9 years agoFix #30949: live unwrap when marking seams did not work with bmesh.
Brecht Van Lommel [Sun, 15 Apr 2012 09:20:42 +0000 (09:20 +0000)]
Fix #30949: live unwrap when marking seams did not work with bmesh.

9 years agoFix #30948: add scene > copy settings did not copy settings like units, audio, game
Brecht Van Lommel [Sun, 15 Apr 2012 08:48:11 +0000 (08:48 +0000)]
Fix #30948: add scene > copy settings did not copy settings like units, audio, game
data, and tool settings.

What exactly should be copied is a bit up to interpretation, but I think these make
sense, and things like audio or game data used to be part of render settings which
do get copied so at least for those it was a regression.

9 years agocode cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some...
Campbell Barton [Sun, 15 Apr 2012 07:54:07 +0000 (07:54 +0000)]
code cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some defines/includes for windows.

9 years agodisallow invalid mingw configurations, not just disable by default but disallow the...
Campbell Barton [Sun, 15 Apr 2012 07:32:56 +0000 (07:32 +0000)]
disallow invalid mingw configurations, not just disable by default but disallow the built to run if they are set by the developer.

9 years agostyle cleanup: for loop macros, also add a config file for uncrustify source formatte...
Campbell Barton [Sun, 15 Apr 2012 07:24:14 +0000 (07:24 +0000)]
style cleanup: for loop macros, also add a config file for uncrustify source formatter (able to get very close to our own style guide).

9 years agoScons:
Thomas Dinges [Sat, 14 Apr 2012 22:33:48 +0000 (22:33 +0000)]
* Add new scons options to 'blenderlite' target

* Remove ancient yafray comment

9 years agoHrm...parse error from previous commit
Antony Riakiotakis [Sat, 14 Apr 2012 22:21:50 +0000 (22:21 +0000)]
Hrm...parse error from previous commit

9 years agoScons ToDo:
Thomas Dinges [Sat, 14 Apr 2012 22:19:29 +0000 (22:19 +0000)]
Scons ToDo:
* Made Frameserver building optional, added WITH_BF_FRAMESERVER.
* Enabled per default in

9 years agoScons ToDo:
Thomas Dinges [Sat, 14 Apr 2012 21:55:38 +0000 (21:55 +0000)]
Scons ToDo:
* Made Smoke building optional, added WITH_BF_SMOKE.
* Enabled per default in

9 years agoBlender Internal:
Thomas Dinges [Sat, 14 Apr 2012 21:48:34 +0000 (21:48 +0000)]
Blender Internal:
* Remove some remaining (already commented) radiosity cruft.

9 years agoFix linking issue with MinGW. For some reason ffmpeg needs to be enabled. Some kind...
Antony Riakiotakis [Sat, 14 Apr 2012 21:26:50 +0000 (21:26 +0000)]
Fix linking issue with MinGW. For some reason ffmpeg needs to be enabled. Some kind of bizarre linking order issue seems to be the case but since it touches so many areas of the code I prefer to simply enable by default.

9 years agoFluidsim: Text fix.
Daniel Genrich [Sat, 14 Apr 2012 20:35:39 +0000 (20:35 +0000)]
Fluidsim: Text fix.

9 years agoFluidsim:
Daniel Genrich [Sat, 14 Apr 2012 20:24:12 +0000 (20:24 +0000)]
a) Remove "animatable" flag from resolution property
b) "Hide fluid surface": Add description and changed prperty name. Nobody really understood the purpose of that checkbox.

9 years agoRevert rename of ColorRamp node from r45629.
Thomas Dinges [Sat, 14 Apr 2012 18:05:44 +0000 (18:05 +0000)]
Revert rename of ColorRamp node from r45629.

Don't make such changes based on an assumption, it could be wrong and coordinate with the UI team first!

9 years agoMinor fix to UI messages.
Bastien Montagne [Sat, 14 Apr 2012 16:24:30 +0000 (16:24 +0000)]
Minor fix to UI messages.

9 years agoMinor fix to recent i18n commits.
Bastien Montagne [Sat, 14 Apr 2012 16:06:59 +0000 (16:06 +0000)]
Minor fix to recent i18n commits.

9 years agoFixed some UI message typos (spotted by Leon Cheung, thx).
Bastien Montagne [Sat, 14 Apr 2012 15:44:31 +0000 (15:44 +0000)]
Fixed some UI message typos (spotted by Leon Cheung, thx).

9 years agoFixed another bunch of i18n bugs (thx to Leon Cheung for spotting them), among which:
Bastien Montagne [Sat, 14 Apr 2012 15:06:41 +0000 (15:06 +0000)]
Fixed another bunch of i18n bugs (thx to Leon Cheung for spotting them), among which:
* Drag'n'drop translation in Outliner
* "Execute" button in file window
* "Labels" of spacing elements, in multi-column enums
* A glitch with nodes "Value to RGB", they where called "ColorRamp" in node_type_base() call. This is not definitive, though, as it appears that UI node names are determined by this call, while it should be by "defines" in rna_nodetrre_types.h, I guess... Anyway, not good to have such things in two different places!

Also moved default context name under BLF_translation.h, much better to have those all in one place, accessible from whole Blender code!

9 years agoCamera tracking: initial commit of dopesheet view for clip editor:
Sergey Sharybin [Sat, 14 Apr 2012 12:03:23 +0000 (12:03 +0000)]
Camera tracking: initial commit of dopesheet view for clip editor:

- Changed regions to use the whole main region for such views as
  curves and dopesheet. This allows to have own panels with
  tools/properties in this areas.
- Active clip is getting synchronized between different clip editor
  editors in the same screen, so updating of curve/dopesheet views
  happens automatically when one changes current clip in one of this
- Curves and dopesheet are still using PREVIEW region type instead of
  re-using main region.
- To deal with vertical synchronization in dopesheet, re-initialization
  of preview region happens.
- Panels in toolbox and properties panels are now separated to rely
  on current view mode, some operators and poll functions still need
  to be updated.
- Added new screen called "Movie Tracking" where layout is configured to
  display timeline, main clip window, curves and dopesheet.

9 years agoCamera tracking: use texture buffers (if supported) to display clip editor frames
Sergey Sharybin [Sat, 14 Apr 2012 12:03:09 +0000 (12:03 +0000)]
Camera tracking: use texture buffers (if supported) to display clip editor frames

Initial idea was to perform bilinear filtering for displaying proxied frame
to make it looking a bit smoother. It was done but it was also discovered
that using such kind of texture buffers helps on some crappy videocards
when playing $k footage.

9 years agoCamera tracking: revert changes made for texture buffer frame drawing.
Sergey Sharybin [Sat, 14 Apr 2012 12:03:03 +0000 (12:03 +0000)]
Camera tracking: revert changes made for texture buffer frame drawing.
Will be applied as another cleaned-up patch.

9 years agoCamera tracking: if there's no image for current frame display
Sergey Sharybin [Sat, 14 Apr 2012 12:02:54 +0000 (12:02 +0000)]
Camera tracking: if there's no image for current frame display
default grid and allow to interact with tracks for operators
which doesn't require image.

9 years agoCamera tracking: support of tripod motion solving
Sergey Sharybin [Sat, 14 Apr 2012 12:02:47 +0000 (12:02 +0000)]
Camera tracking: support of tripod motion solving

Expose option into interface to use modal solver which currently
supports only tripod motion.

This solver requires two tracks at least to reconstruct motion.
Using more tracks aren't improving solution in general, just adds
instability into solution and slows down things a lot.

Refirement of camera intrinsics is supported by this solver.

To use this solver just activate "Tripod Motion" checkbox in
solver panel.

9 years agolibmv: bundle new upstream version of libmv from own branch
Sergey Sharybin [Sat, 14 Apr 2012 12:02:39 +0000 (12:02 +0000)]
libmv: bundle new upstream version of libmv from own branch

Added modal solver module which is needed for tripod solving.
For details of this solver read changelog of libmv.

9 years agoSilencing some compiler warnings on Windows
Joshua Leung [Sat, 14 Apr 2012 11:58:52 +0000 (11:58 +0000)]
Silencing some compiler warnings on Windows

argv is defined as "char *" here so that unicode magic can happen causing
problems later on when "const char**" is expected instead. While this fix is
redundant on other platforms, it's a lot less confusing than some of the
alternative fixes.

9 years agoMerging r44227 through r45619 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 14 Apr 2012 10:46:47 +0000 (10:46 +0000)]
Merging r44227 through r45619 from trunk into soc-2011-tomato

9 years agodon't constrain single edge extrude, annoying for retopo
Campbell Barton [Sat, 14 Apr 2012 05:09:23 +0000 (05:09 +0000)]
don't constrain single edge extrude, annoying for retopo

request from ZanQdo, VenomGFX & Jonathan Williams.

For previous functionality Z, Shift+Z.

9 years agocode cleanup: comment (almost) all members of KeyBlock & Key.
Campbell Barton [Sat, 14 Apr 2012 03:58:08 +0000 (03:58 +0000)]
code cleanup: comment (almost) all members of KeyBlock & Key.

9 years agocode cleanup: when extending name length Key.elemstr was incorrectly extended to...
Campbell Barton [Sat, 14 Apr 2012 02:48:56 +0000 (02:48 +0000)]
code cleanup: when extending name length Key.elemstr was incorrectly extended to 64 chars, added comment and set back to original length.

9 years agostyle cleanup: key.c
Campbell Barton [Sat, 14 Apr 2012 02:32:32 +0000 (02:32 +0000)]
style cleanup: key.c

9 years agoGrmph, BLF_(p)gettext were not protected against NULL message/context, was causing...
Bastien Montagne [Fri, 13 Apr 2012 20:58:59 +0000 (20:58 +0000)]
Grmph, BLF_(p)gettext were not protected against NULL message/context, was causing a sigsev with latest own commits (in File menu)!

9 years agoi18n: "labels" of multi-section enums need to be marked for gettext (N_()), as they...
Bastien Montagne [Fri, 13 Apr 2012 20:25:05 +0000 (20:25 +0000)]
i18n: "labels" of multi-section enums need to be marked for gettext (N_()), as they are not available from python...

9 years agoFixed (or partly fixed) various missing UI translations, mainly with some specific...
Bastien Montagne [Fri, 13 Apr 2012 19:59:29 +0000 (19:59 +0000)]
Fixed (or partly fixed) various missing UI translations, mainly with some specific ops invocations (popup menus…), and (to some extent) with the undo/redo stuff.

9 years agoScons:
Thomas Dinges [Fri, 13 Apr 2012 19:34:15 +0000 (19:34 +0000)]
* Compile fix for r45609, pthreads include was missing.

9 years agoFix #30376: cycles ignores camera override from sequencer.
Brecht Van Lommel [Fri, 13 Apr 2012 17:42:03 +0000 (17:42 +0000)]
Fix #30376: cycles ignores camera override from sequencer.

9 years agoFix #30858: UI losing buttons at some random moment after using Blender for a
Brecht Van Lommel [Fri, 13 Apr 2012 16:03:52 +0000 (16:03 +0000)]
Fix #30858: UI losing buttons at some random moment after using Blender for a
while. This may not fix all cases but should at least solve the issue when
rendering with cycles.

The cause was a race condition on C->data.recursion, with multiple threads
accessing context at the same time. Cycles itself does not access context
from the render thread, but the bpy api would do a context update for any
callback in case e.g. a new file got loaded. Disabled that now in non-main

The ideal solution would be to not allow any context access at all from threads
but that's not so simple to implement, especially not this close to release.

9 years agoremove duplicate notifier event
Antony Riakiotakis [Fri, 13 Apr 2012 15:33:29 +0000 (15:33 +0000)]
remove duplicate notifier event

9 years agoDo not hide (gray out) lens/lock to object/lock to cursor options in Quad views ...
Bastien Montagne [Fri, 13 Apr 2012 15:21:26 +0000 (15:21 +0000)]
Do not hide (gray out) lens/lock to object/lock to cursor options in Quad views (View panel)...

9 years agofix [#30728] Align View Restricts Further View Changes
Campbell Barton [Fri, 13 Apr 2012 15:15:13 +0000 (15:15 +0000)]
fix [#30728] Align View Restricts Further View Changes

turntable rotation can get into gimbal lock.

9 years agoFix missing cycles update when tweaking some render layer settings.
Brecht Van Lommel [Fri, 13 Apr 2012 14:18:33 +0000 (14:18 +0000)]
Fix missing cycles update when tweaking some render layer settings.

9 years agocode cleanup: use axis_angle_to_quat() to simplify turntable view rotate code.
Campbell Barton [Fri, 13 Apr 2012 13:55:55 +0000 (13:55 +0000)]
code cleanup: use axis_angle_to_quat() to simplify turntable view rotate code.

9 years agofix for editmode UV hiding with edges, was also using deprecated flag (UV_SELECT_FACE)
Campbell Barton [Fri, 13 Apr 2012 13:31:41 +0000 (13:31 +0000)]
fix for editmode UV hiding with edges, was also using deprecated flag (UV_SELECT_FACE)