7 years agoNLA Editor: Show the ID+AnimData block that the AnimData panel is showing the
Joshua Leung [Sat, 16 Mar 2013 02:42:19 +0000 (02:42 +0000)]
NLA Editor: Show the ID+AnimData block that the AnimData panel is showing the
active action for

7 years agoobject converting curve/mball to a mesh would give invalid selection state (edges...
Campbell Barton [Sat, 16 Mar 2013 01:19:03 +0000 (01:19 +0000)]
object converting curve/mball to a mesh would give invalid selection state (edges selected but nothing else).
add arg to BKE_mesh_calc_edges() so selecting newly created edges is optional.

7 years agofix for own mistake in using alloca in a loop, replace with BLI_buffer
Campbell Barton [Sat, 16 Mar 2013 00:41:32 +0000 (00:41 +0000)]
fix for own mistake in using alloca in a loop, replace with BLI_buffer

7 years agochanges to BLI_buffer
Campbell Barton [Sat, 16 Mar 2013 00:12:14 +0000 (00:12 +0000)]
changes to BLI_buffer
- assert if BLI_buffer_at() is called with an out of bounds value.
- add BLI_buffer_resize_data() macro which resizes and returns a pointer to the new array.
- warn if missing call to BLI_buffer_free().

7 years agocorrect lasso, weightpaint select, was calling BLI_lasso_boundbox() twice.
Campbell Barton [Fri, 15 Mar 2013 22:56:24 +0000 (22:56 +0000)]
correct lasso, weightpaint select, was calling BLI_lasso_boundbox() twice.

7 years agocode cleanup: quiet some -Wshadow warnings, mix of obvious mistakes and harmless...
Campbell Barton [Fri, 15 Mar 2013 22:55:10 +0000 (22:55 +0000)]
code cleanup: quiet some -Wshadow warnings, mix of obvious mistakes and harmless global/local naming conflict.

7 years agominor cleanup and calculate rake angle before jittering or result
Antony Riakiotakis [Fri, 15 Mar 2013 22:32:44 +0000 (22:32 +0000)]
minor cleanup and calculate rake angle before jittering or result
becomes essentially, random

7 years agoknife project improvements
Campbell Barton [Fri, 15 Mar 2013 20:39:56 +0000 (20:39 +0000)]
knife project improvements
When running in non-interactive mode, dont add a area draw callback or adjust the cursor, use a fixed snap value and don't use opengl lookups on faces.
Minor optimization - compare squared distances where possible.

7 years agofix for error pasting into a color button (tried to read its rna index of -1)
Campbell Barton [Fri, 15 Mar 2013 20:16:20 +0000 (20:16 +0000)]
fix for error pasting into a color button (tried to read its rna index of -1)

7 years agoFix: multisample viewport drawing didn't work well with selection or particle
Brecht Van Lommel [Fri, 15 Mar 2013 19:56:33 +0000 (19:56 +0000)]
Fix: multisample viewport drawing didn't work well with selection or particle
brushes, due to issues with color coded drawing or slow/buggy reading from such
a buffer on some systems.

In case multisample is enabled now, it uses an offscreen buffer for such drawing,
which is not multisampled and so should not cause issues. This does mean there is
some extra GPU memory usage when multisample is enabled, and we could optimize
triple buffer to work together here somehow to share buffers, but it's better than
having selection not working.

7 years agoScreen: add exit callback for area and region types, this gets called when
Brecht Van Lommel [Fri, 15 Mar 2013 19:56:29 +0000 (19:56 +0000)]
Screen: add exit callback for area and region types, this gets called when
hiding or removing an area or region.

7 years agoknife project: improve selection inside/outside checks.
Campbell Barton [Fri, 15 Mar 2013 19:38:42 +0000 (19:38 +0000)]
knife project: improve selection inside/outside checks.
- use more accurate method to find if a face is inside projected lines.
- check faces intersect while expanding selection - in some cases this could result in the entire model being selected.

7 years agouse bool for knife, also scons tab/space mix.
Campbell Barton [Fri, 15 Mar 2013 19:00:21 +0000 (19:00 +0000)]
use bool for knife, also scons tab/space mix.

7 years agoCompile fix:
Thomas Dinges [Fri, 15 Mar 2013 17:18:52 +0000 (17:18 +0000)]
Compile fix:
* Scons needed PThread include after recent movie clip changes.

7 years agoFurther improvement for multi-threaded proxies
Sergey Sharybin [Fri, 15 Mar 2013 16:57:19 +0000 (16:57 +0000)]
Further improvement for multi-threaded proxies

Handle sequences in a special case for dealing with
sequence sources.

Namely handle separate frames in separate threads,
but do disk read from a critical section since HDD
is not so friendly with lots threads requesting for
data from it.

Makes proxy building much faster than it was before.

7 years agoFix #34649: texture size limit user preference not working.
Brecht Van Lommel [Fri, 15 Mar 2013 16:16:11 +0000 (16:16 +0000)]
Fix #34649: texture size limit user preference not working.

7 years agoadd in ifdef for WITH_LIBMV, correct own error passing float[2] as float[3]
Campbell Barton [Fri, 15 Mar 2013 15:47:32 +0000 (15:47 +0000)]
add in ifdef for WITH_LIBMV, correct own error passing float[2] as float[3]

7 years agoFix/disambiguation for some "Clip" i18n messages.
Bastien Montagne [Fri, 15 Mar 2013 15:13:34 +0000 (15:13 +0000)]
Fix/disambiguation for some "Clip" i18n messages.

7 years agoSmall fix to previous commit: temp buffer for translation context needs to be initial...
Bastien Montagne [Fri, 15 Mar 2013 15:12:46 +0000 (15:12 +0000)]
Small fix to previous commit: temp buffer for translation context needs to be initialized to relevant default value for operators... Also fixed not initializing those buffers in macro register function.

7 years agoknife project:
Campbell Barton [Fri, 15 Mar 2013 14:43:09 +0000 (14:43 +0000)]
knife project:
- selecting faces inside the cut now works properly
- improve epsilon for detecing if faces are inside a cut (still not perfect)

7 years agoAdd the possibility to define the translation context for py rna classes (operators...
Bastien Montagne [Fri, 15 Mar 2013 14:32:29 +0000 (14:32 +0000)]
Add the possibility to define the translation context for py rna classes (operators, panels and menus).

Thanks to Campell and Brecht for the reviews!

7 years agofix for own bad mistake using alloca in a loop, also knife project wasnt selecting...
Campbell Barton [Fri, 15 Mar 2013 13:18:35 +0000 (13:18 +0000)]
fix for own bad mistake using alloca in a loop, also knife project wasnt selecting correctly.

7 years agoknife projection feature,
Campbell Barton [Fri, 15 Mar 2013 13:06:31 +0000 (13:06 +0000)]
knife projection feature,
apart of 3d printing tools - use to cookie-cut text into a mesh.

7 years agoMulti-threaded frame calculation for movie clip proxies
Sergey Sharybin [Fri, 15 Mar 2013 11:59:46 +0000 (11:59 +0000)]
Multi-threaded frame calculation for movie clip proxies

This commit implements multi-threaded calculation of frames
when building proxies. Both scaling and undistortion steps
are now threaded.

Frames and proxy resolution are still handled one-by-one,
saving files after every single step. So if HDD is not so
fast, this commit could have not so much benefit.

Internal changes:

- Added IMB_scaleImBuf_threaded which scales given image
  buffer in multiple threads and uses bilinear filtering.

- libmv's camera intrinsics now have SetThreads() method
  which is used to specify how many OpenMP threads to use
  for buffer distortion/undistortion.

  And yeah, this code is using OpenMP for threading.

- Reshuffled a bit libmv-capi calls and added function
  BKE_tracking_distortion_set_threads to specify number
  of threads used by intrinscis.

7 years agocode cleanup: rename BKE_mesh_to_curve_ex --> BKE_mesh_to_curve_nurblist,
Campbell Barton [Fri, 15 Mar 2013 10:48:48 +0000 (10:48 +0000)]
code cleanup: rename BKE_mesh_to_curve_ex --> BKE_mesh_to_curve_nurblist,
also correct odd indentation.

7 years agoAdd missing operators from paint modes:
Antony Riakiotakis [Fri, 15 Mar 2013 10:45:43 +0000 (10:45 +0000)]
Add missing operators from paint modes:

All modes:
Shift-S sets smooth stroke mode

Texture Paint/Vertex Paint:
R springs brush rotation control menu
Ctrl-F sets brush user rotation

Vertex paint mode was getting transform events with R, made sure no
transform events are handled for paint modes.

7 years agoFix #34617, Track Position Node outputs had a limit value of 1 instead of the usual...
Lukas Toenne [Fri, 15 Mar 2013 10:34:32 +0000 (10:34 +0000)]
Fix #34617, Track Position Node outputs had a limit value of 1 instead of the usual 0 (multiple connections allowed). Common problem with the explicit limit value in socket C templates, should be removed ...

7 years agoSupport for rake in 2D image painting.
Antony Riakiotakis [Fri, 15 Mar 2013 09:48:51 +0000 (09:48 +0000)]
Support for rake in 2D image painting.

7 years agoPatch #34632: DPX/Cineon speed up
Sergey Sharybin [Fri, 15 Mar 2013 09:46:37 +0000 (09:46 +0000)]
Patch #34632: DPX/Cineon speed up

Done by Julien Enche (aka trap), thanks!

From the patch comment:
This patch speeds up Cineon/DPX file loading.
Some more checks are done in dpxOpen and cineonOpen functions so IB_test
flag can now be taken into account safely, and an unnecessary call to
IMB_rect_from_float has been removed.

DPX/Cineon file now loads around 3 times faster on my computer.

Own comment:
Ideally, IB_rect shall indeed indicate which buffers to load, however
currently all places which reads image uses this flag.

This fact already mentioned in OpenEXR reader and it shall be fine
to skip doing rect_from_float in readers themselves.

7 years agoSkip allocating any display buffer and starting any threads
Sergey Sharybin [Fri, 15 Mar 2013 09:35:12 +0000 (09:35 +0000)]
Skip allocating any display buffer and starting any threads
in case image buffer contains byte buffer only and it's
color space matches display space.

It was already check for this case, but it happened later
in color management routines, which is needed for saving
files, but not fast enough for realtime playback of 4K.

7 years agoSkip doing frame undistortion if it's not needed for proxies.
Sergey Sharybin [Fri, 15 Mar 2013 09:32:59 +0000 (09:32 +0000)]
Skip doing frame undistortion if it's not needed for proxies.

7 years agoFixes for 2d painting:
Antony Riakiotakis [Fri, 15 Mar 2013 09:19:41 +0000 (09:19 +0000)]
Fixes for 2d painting:

* Jittering accounts for zoom
* Smooth stroke accounts for zoom
* Expose smooth stroke in image paint editor.

7 years agoFix #34633: Merge First/Last crashes Blender
Sergey Sharybin [Fri, 15 Mar 2013 07:08:00 +0000 (07:08 +0000)]
Fix #34633: Merge First/Last crashes Blender

It was check happening when generating menu with available modes
for merge operator, but no checks happened when executing operator.

Since operator could be called from python or shortcut, it was
possible to bypass all the checks.

7 years agoFix own mistake. Erroneously prefixed sculpt capabilities with sculpt_
Antony Riakiotakis [Fri, 15 Mar 2013 00:22:04 +0000 (00:22 +0000)]
Fix own mistake. Erroneously prefixed sculpt capabilities with sculpt_
before separating them in another struct. Thanks to Sebastian Koenig for reporting

7 years agomove polygon intersection out of BLI_lasso into BLI_math_geom since its a generally...
Campbell Barton [Thu, 14 Mar 2013 21:44:16 +0000 (21:44 +0000)]
move polygon intersection out of BLI_lasso into BLI_math_geom since its a generally useful function.

- isect_point_poly_v2()
- isect_point_poly_v2_int()

7 years agoBLI_linklist_free() was incorrectly taking MEM_freeN() as an argument, evidentially...
Campbell Barton [Thu, 14 Mar 2013 19:40:42 +0000 (19:40 +0000)]
BLI_linklist_free() was incorrectly taking MEM_freeN() as an argument, evidentially this works on x86 - but could cause issues later on.
add BLI_linklist_freeN() which MEM_freeN's each item.

7 years agosplit up BKE_mesh_to_curve() into 2 functions, adding BKE_mesh_to_curve_ex() which...
Campbell Barton [Thu, 14 Mar 2013 18:44:32 +0000 (18:44 +0000)]
split up BKE_mesh_to_curve() into 2 functions, adding BKE_mesh_to_curve_ex() which doesn't do object type conversion.

7 years agoconverting a mesh to a curve was unnecessarily using tessface's.
Campbell Barton [Thu, 14 Mar 2013 18:35:21 +0000 (18:35 +0000)]
converting a mesh to a curve was unnecessarily using tessface's.
use mpolys instead and simplify checks for wire edges.

Also rename BKE_mesh_from_curve() --> BKE_mesh_to_curve() since this function converts a mesh into a curve.

7 years agoUserprefs:Addon panel - Renamed label of the link to the documentation
Gaia Clary [Thu, 14 Mar 2013 16:53:38 +0000 (16:53 +0000)]
Userprefs:Addon panel - Renamed label of the link to the documentation

7 years agoThere was a regression in recent bugfix which touched Mix node.
Sergey Sharybin [Thu, 14 Mar 2013 16:25:32 +0000 (16:25 +0000)]
There was a regression in recent bugfix which touched Mix node.

This commit hopefully fixes that regression.

7 years agoFix misguiding menu label and make tooltip more descriptive
Gaia Clary [Thu, 14 Mar 2013 15:01:23 +0000 (15:01 +0000)]
Fix misguiding menu label and make tooltip more descriptive

7 years agouse floats for knife tool internal mouse coord.
Campbell Barton [Thu, 14 Mar 2013 14:46:59 +0000 (14:46 +0000)]
use floats for knife tool internal mouse coord.

7 years agoUsual blenderplayer fix! :p
Bastien Montagne [Thu, 14 Mar 2013 14:05:41 +0000 (14:05 +0000)]
Usual blenderplayer fix! :p

7 years agominor knife refactor to prepare for running non interactively.
Campbell Barton [Thu, 14 Mar 2013 13:58:56 +0000 (13:58 +0000)]
minor knife refactor to prepare for running non interactively.

7 years agodisable -Wredundant-decls for gcc versions older then 4.6
Campbell Barton [Thu, 14 Mar 2013 13:00:00 +0000 (13:00 +0000)]
disable -Wredundant-decls for gcc versions older then 4.6

7 years agoui_def_but() allocating an extra byte in 'but->str' for no reason.
Campbell Barton [Thu, 14 Mar 2013 11:29:15 +0000 (11:29 +0000)]
ui_def_but() allocating an extra byte in 'but->str' for no reason.

7 years agouse BLI_strncpy_rlen() rather then BLI_snprintf() when no formatting is needed.
Campbell Barton [Thu, 14 Mar 2013 10:39:18 +0000 (10:39 +0000)]
use BLI_strncpy_rlen() rather then BLI_snprintf() when no formatting is needed.
also replace sprintf with strcpy when no formatting is done.

7 years agoCode cleanup: replace magic constant used for alpha ignore flag with a define.
Sergey Sharybin [Thu, 14 Mar 2013 10:15:10 +0000 (10:15 +0000)]
Code cleanup: replace magic constant used for alpha ignore flag with a define.

7 years agoadd BLI_strncpy_rlen(), a clone of BLI_strncpy() that returns the number of bytes...
Campbell Barton [Thu, 14 Mar 2013 10:07:05 +0000 (10:07 +0000)]
add BLI_strncpy_rlen(), a clone of BLI_strncpy() that returns the number of bytes copied.

also move doxy comments for BLI_string.h into the C file.

7 years agoFix #34616: Wrong face culling for curves with constructive modifiers
Sergey Sharybin [Thu, 14 Mar 2013 09:50:29 +0000 (09:50 +0000)]
Fix #34616: Wrong face culling for curves with constructive modifiers

If curve object does have derived mesh, culling shall happen for
back faces, not front.

7 years agominor change to BLI_strncpy(). replace strlen() with BLI_strnlen().
Campbell Barton [Thu, 14 Mar 2013 09:49:20 +0000 (09:49 +0000)]
minor change to BLI_strncpy(). replace strlen() with BLI_strnlen().

7 years agocode cleanup: de-duplicate view clipping function for paint and knife tool, minor...
Campbell Barton [Thu, 14 Mar 2013 07:56:40 +0000 (07:56 +0000)]
code cleanup: de-duplicate view clipping function for paint and knife tool, minor changes to knife initialization.

7 years agoBorder rendering now works for all scenes used in compositor,
Sergey Sharybin [Thu, 14 Mar 2013 07:38:37 +0000 (07:38 +0000)]
Border rendering now works for all scenes used in compositor,
before this only active scene would be rendered with border.

When do_render_fields_blur_3d() is finished, it'll modify
render's display rect so it'll correspond bordered render
result placed on black backgrund. Actual border is stored
nowhere, which makes it only way to re-calculate disprect
for all other renders used in compo based on source. Not
so big deal actually.

Also needed to modify Cycles a bit, because before this
patch it used border settings from scene being rendered.
Now made it so render data is passing to external engines.

Using a property inside RenderEngine structure for this.
Not best ever design for passing render data, but this
would prevent API breakage. So now external engines could
access engine.render to access active rendering settings.

Reviewed by Brecht, thanks!

7 years agotweaks to clang so blender can build with -Werror
Campbell Barton [Thu, 14 Mar 2013 07:25:54 +0000 (07:25 +0000)]
tweaks to clang so blender can build with -Werror

7 years agoQuick fixes for previous commit
Joshua Leung [Thu, 14 Mar 2013 07:11:36 +0000 (07:11 +0000)]
Quick fixes for previous commit
* Missing word in tooltip for operator
* Ensure that filters are set appropriately so that effect is visible

7 years agoNLA Editor: Operator to add AnimData to selected objects so that they can appear
Joshua Leung [Thu, 14 Mar 2013 06:34:02 +0000 (06:34 +0000)]
NLA Editor: Operator to add AnimData to selected objects so that they can appear

This commit introduces an operator in the Add menu - this operator ensures that
all selected objects have AnimData attached to them (even if they don't have any
actions/drivers yet). By doing this, these objects can at least appear in the
NLA Editor, which will allow them to have strips added to them in future without
having to create throwaway actions first (NOTE: there's still some stuff coming
to allow that).

Also, renamed NLA_OT_delete_tracks -> NLA_OT_tracks_delete

7 years agoBugfix: Filtering option in NLA Editor to include AnimData blocks with no
Joshua Leung [Thu, 14 Mar 2013 06:30:18 +0000 (06:30 +0000)]
Bugfix: Filtering option in NLA Editor to include AnimData blocks with no
actions or NLA data attached was broken

Looks like a typo whcih somehow slipped in at some stage, as I remember that
this used to work at some point 2 years ago!

7 years agofix reading out of buffer bounds for recent vertex paint commit.
Campbell Barton [Thu, 14 Mar 2013 05:59:34 +0000 (05:59 +0000)]
fix reading out of buffer bounds for recent vertex paint commit.

7 years agoRemove OPTYPE_REGISTER flag from click handler operator for anim editors
Joshua Leung [Thu, 14 Mar 2013 05:58:13 +0000 (05:58 +0000)]
Remove OPTYPE_REGISTER flag from click handler operator for anim editors

1) It made no sense to show this as the last operator which was used, since
these can only be used from the anim editors (and not the 3D View where this
panel appears most of the time)
2) Mouse select operators in other places didn't do this
3) There aren't really any editable parameters for this operator anyway
4) It's highly dependent on valid mouse coordinates as input.

Apart from that, undo still works fine, so no need to really keep this here.

7 years agostyle cleanup: odd indentation
Campbell Barton [Thu, 14 Mar 2013 05:52:30 +0000 (05:52 +0000)]
style cleanup: odd indentation

7 years agoMore AnimData selection fixes
Joshua Leung [Thu, 14 Mar 2013 05:44:56 +0000 (05:44 +0000)]
More AnimData selection fixes

* Not all supported datatypes would show up in the NLA Properties Region when
* Clicking on the name part of the "Active Action" tracks now selects the
AnimData block that action is attached to

7 years agoBugfix: Selecting AnimData "expanders" in AnimEditors works again
Joshua Leung [Thu, 14 Mar 2013 05:01:51 +0000 (05:01 +0000)]
Bugfix: Selecting AnimData "expanders" in AnimEditors works again

Somewhere along the line, this functionality broke, even though the code to
handle these settings was still in place for many of these. The main implication
of this fix is that it should now be possible to select a particular AnimData
block, which makes it possible to do things such as changing the action
associated with that AnimData block (i.e. via the "Animation Data" panel in the
NLA Editor), as well as other operations which I've had on the todolist for a
while. Stay tuned!

7 years agoFix silly mistake that could lead to crash. Also, slight cleanup/rename
Antony Riakiotakis [Thu, 14 Mar 2013 03:47:20 +0000 (03:47 +0000)]
Fix silly mistake that could lead to crash. Also, slight cleanup/rename
and comments

7 years agoSupport for textures in vertex painting.
Antony Riakiotakis [Thu, 14 Mar 2013 03:42:17 +0000 (03:42 +0000)]
Support for textures in vertex painting.

Developer notes: this commit does painting in sRGB space. Since colours
are stored im byte per component formats, expect this to have the usual
dark fringing issues. Speed wise vertex paint could use some
optimization, for instance we could store the screen space vertex
positions on initialization like we do for texture painting, but this is
for another time. Also noticed that vertex painting suffers from the
subsurf + mirror issue too :/

Apart from that it's quite exciting how easy it is to add support for
texturing now that proper abstractions for texture sampling have been
done :)

7 years agoExpose input stroke samples for image painting.
Antony Riakiotakis [Thu, 14 Mar 2013 02:45:23 +0000 (02:45 +0000)]
Expose input stroke samples for image painting.

7 years agoTwo new Features:
Antony Riakiotakis [Thu, 14 Mar 2013 02:27:36 +0000 (02:27 +0000)]
Two new Features:

* Support for Rake in projective paint (2D painting will be a separate
* Support for smooth stroke across all paint systems

7 years agoFix #34526: crash using mask modifier + subsurf + UV map.
Brecht Van Lommel [Wed, 13 Mar 2013 22:15:59 +0000 (22:15 +0000)]
Fix #34526: crash using mask modifier + subsurf + UV map.

7 years agoWM: remove "No (valid) startup.blend found" message printed on startup, can be useful...
Brecht Van Lommel [Wed, 13 Mar 2013 20:00:39 +0000 (20:00 +0000)]
WM: remove "No (valid) startup.blend found" message printed on startup, can be useful for debugging but hide it for normal usage.

7 years agoFix #34551: blender crash rendering with save buffers.
Brecht Van Lommel [Wed, 13 Mar 2013 19:48:07 +0000 (19:48 +0000)]
Fix #34551: blender crash rendering with save buffers.

Problem was the new usage of access() on Windows, this doesn't accept X_OK. Also wrapped _waccess so that UTF-8 paths work.

7 years agofix for 2 errors where the 2d arrays were used as 3d. (out of bounds read).
Campbell Barton [Wed, 13 Mar 2013 18:10:05 +0000 (18:10 +0000)]
fix for 2 errors where the 2d arrays were used as 3d. (out of bounds read).
also minor code cleanup.

7 years agoFix #34492: clipping border not working with GLSL/matcap and Nouveau drivers.
Brecht Van Lommel [Wed, 13 Mar 2013 18:00:13 +0000 (18:00 +0000)]
Fix #34492: clipping border not working with GLSL/matcap and Nouveau drivers.

7 years agosolidify modifier: thickness clamping helps prevent self intersections when there...
Campbell Barton [Wed, 13 Mar 2013 17:31:26 +0000 (17:31 +0000)]
solidify modifier: thickness clamping helps prevent self intersections when there are small details on a larger model.

7 years agoFix for build error with previous commit, seems the order of #includes matters here.
Brecht Van Lommel [Wed, 13 Mar 2013 17:30:31 +0000 (17:30 +0000)]
Fix for build error with previous commit, seems the order of #includes matters here.

7 years agoFix #34481: camera focal length and sensor size did not use units yet, now they do.
Brecht Van Lommel [Wed, 13 Mar 2013 17:16:49 +0000 (17:16 +0000)]
Fix #34481: camera focal length and sensor size did not use units yet, now they do.

I've added a separate camera unit type. It's a bit strange to have an exception for
this but it ensures units are shown in familiar millimeters and it also ensures
backwards compatibility.

7 years agoFix #34626: voxel data texture can't read > 2GB files on Windows.
Brecht Van Lommel [Wed, 13 Mar 2013 17:16:47 +0000 (17:16 +0000)]
Fix #34626: voxel data texture can't read > 2GB files on Windows.

Also fixed BLI_fopen not being used for AVI movie files, which meant AVI read
could fail reading a file from a path with special characters on Windows.

7 years agoattempt to quiet warnings for gcc4.2
Campbell Barton [Wed, 13 Mar 2013 15:41:14 +0000 (15:41 +0000)]
attempt to quiet warnings for gcc4.2

7 years agoFix [#34621] I18n Switch Issue When Gimbal and Rotation Manipulator On.
Bastien Montagne [Wed, 13 Mar 2013 15:27:54 +0000 (15:27 +0000)]
Fix [#34621] I18n Switch Issue When Gimbal and Rotation Manipulator On.

Real issue was that transform manipulators' code was calling TRANSFORM_OT_trackball with data (PointerRNA) from VIEW3D_OT_manipulator. That op has constraints props, while trackball has not. This created some kind of "ghost" properties, that showed up in redo panel.

Why this only segfaults in BLF_pgettext in 32bit builds remains a deep mystery (currently dusting out my 32 vbox to try to understand it...). BLF_pgettext is supposed to be pretty secure. :/

7 years agoBug fix #34620
Ton Roosendaal [Wed, 13 Mar 2013 15:11:45 +0000 (15:11 +0000)]
Bug fix #34620

SHIFT+T (texture space transform) crashed in editmode. Not checking NULL pointer.

7 years agoFix [#34628] Shift-V (vertex slide) does no longer show "vertex slide:" for the user.
Bastien Montagne [Wed, 13 Mar 2013 14:56:17 +0000 (14:56 +0000)]
Fix [#34628] Shift-V (vertex slide) does no longer show "vertex slide:" for the user.

Own stupid mistake in r55214 refactor.

7 years agofix for minor glitch in recent addition to create faces from partial selections.
Campbell Barton [Wed, 13 Mar 2013 14:54:47 +0000 (14:54 +0000)]
fix for minor glitch in recent addition to create faces from partial selections.
BM_edge_exists() would return an edge if both verts passed match, now assert instead.

7 years agoReport timing compositor statistics when running in background mode.
Sergey Sharybin [Wed, 13 Mar 2013 14:50:36 +0000 (14:50 +0000)]
Report timing compositor statistics when running in background mode.

This would help figuring out time spent on compositing, helpful for
render farms.

7 years agoDisable viewer nodes and previews when rendering in background mode
Sergey Sharybin [Wed, 13 Mar 2013 14:50:33 +0000 (14:50 +0000)]
Disable viewer nodes and previews when rendering in background mode

This node and operations are not useful in background mode anyway,
but calculating them could be really time-consuming especially
when working on 4K frames.

7 years agoFix node group drawing not taking into account DPI properly.
Brecht Van Lommel [Wed, 13 Mar 2013 14:19:57 +0000 (14:19 +0000)]
Fix node group drawing not taking into account DPI properly.

7 years agoFix write past end of array in recent texture sampling refactoring commit, and
Brecht Van Lommel [Wed, 13 Mar 2013 14:19:55 +0000 (14:19 +0000)]
Fix write past end of array in recent texture sampling refactoring commit, and
a small warning for double const keyword.

7 years agoFix wrong use of enum in UI code to reactive button on mouse over, this worked
Brecht Van Lommel [Wed, 13 Mar 2013 14:19:53 +0000 (14:19 +0000)]
Fix wrong use of enum in UI code to reactive button on mouse over, this worked
only by accident.

7 years agoOutliner: recursive select/deselect visibility and selectable unconditionally
Gaia Clary [Wed, 13 Mar 2013 14:12:17 +0000 (14:12 +0000)]
Outliner: recursive select/deselect visibility and selectable unconditionally

7 years agoFix bevel modifier bug #34611, limit bevel amount needed.
Howard Trickey [Wed, 13 Mar 2013 14:08:12 +0000 (14:08 +0000)]
Fix bevel modifier bug #34611, limit bevel amount needed.

This is a quick fix that perhaps overestimates the point
of first geometry collision, but at least for now it should
allow models that used the old modifier and a too-big
bevel amount to not look awful.

The correct solution to this problem is much more involved
and I'll get to it later.

7 years agoOutliner fix: selecting a bone did not unselect other bones when they are located...
Gaia Clary [Wed, 13 Mar 2013 12:52:44 +0000 (12:52 +0000)]
Outliner fix: selecting a bone did not unselect other bones when they are located in a hidden layer

7 years agoAdd Hebrew glyphs to i18n monospace font.
Irie Shinsuke [Wed, 13 Mar 2013 12:24:10 +0000 (12:24 +0000)]
Add Hebrew glyphs to i18n monospace font.

The glyphs were derived from Droid Sans Hebrew Regular (Widths and
horizontal positions were changed).

7 years agoSome small fixes found while investigating on bug [#34621] I18n Switch Issue When...
Bastien Montagne [Wed, 13 Mar 2013 12:12:13 +0000 (12:12 +0000)]
Some small fixes found while investigating on bug [#34621] I18n Switch Issue When Gimbal and Rotation Manipulator On

7 years agocode cleanup: use const events for modal and invoke operators.
Campbell Barton [Wed, 13 Mar 2013 09:03:46 +0000 (09:03 +0000)]
code cleanup: use const events for modal and invoke operators.

7 years agopatch [#34604] Add DPI read write for BMP and OpenEXR format
Campbell Barton [Wed, 13 Mar 2013 07:16:53 +0000 (07:16 +0000)]
patch [#34604] Add DPI read write for BMP and OpenEXR format

7 years agofix for crash with laplacian smooth when unselected ngons were used, volume calculati...
Campbell Barton [Wed, 13 Mar 2013 06:32:08 +0000 (06:32 +0000)]
fix for crash with laplacian smooth when unselected ngons were used, volume calculation assumed unselected face were not ngons.

- added convenience function BM_face_calc_tessellation() to get triangles from an ngon.
- expose volume function as BM_mesh_calc_volume().

7 years agocode cleanup: remove bmesh subdivide header, all definitions can be included in bmo_s...
Campbell Barton [Wed, 13 Mar 2013 05:33:23 +0000 (05:33 +0000)]
code cleanup: remove bmesh subdivide header, all definitions can be included in bmo_subdivide.c.
also only initialize random numbers when fractal option is set.

7 years agostyle cleanup: also remove unused defines in paint_image.c
Campbell Barton [Wed, 13 Mar 2013 05:23:53 +0000 (05:23 +0000)]
style cleanup: also remove unused defines in paint_image.c

7 years agoTexture sampling function refactoring:
Antony Riakiotakis [Wed, 13 Mar 2013 03:46:22 +0000 (03:46 +0000)]
Texture sampling function refactoring:


Separate the sculpt sampling function so that it can be reused
from other paint systems. This includes updating of the relevant
coordinates for anchored and rake style brushes, which are now
being updated as part of the stroke system.

I left only code for area-style brush texture mapping in sculpt
code, since it requires a few data structures not present on other
paint systems.

This commit makes it almost as easy to support rake on other systems as
exposing the python UI for it. Also it makes it totally possible to
have texture painting capabilities in vertex paint too :) These commits
will follow very soon.

Also, even if I did my best to keep the code from breaking, (even fixed a
leftover bug from coordinate changes) this is a big change. Please test!

7 years agostyle cleanup
Campbell Barton [Tue, 12 Mar 2013 21:46:33 +0000 (21:46 +0000)]
style cleanup

7 years agoPatch #34204: [Render Animation] Fails with "Error: Specified sample_fmt is not suppo...
Sergey Sharybin [Tue, 12 Mar 2013 16:57:14 +0000 (16:57 +0000)]
Patch #34204: [Render Animation] Fails with "Error: Specified sample_fmt is not supported" with ogg vorbis

Patch by Jehan Pages (pardon for mis-typing, emacs-nox works not so good with
urf-8 buffers here), with some own modifications. Thanks!

From the patch tracker:

The problem is because of several versions of ffmpeg, but even more because of
the fork situation libav/ffmpeg. So there are some installed versions out there
where you *must* use a float sample for some codec; whereas oppositely on some
other installations, you *must* use the int sample. So for some people, one
works not the other, and reciprocally.

As a consequence, you can't just have a switch codec-based, like in current
code, which decides on the float or int implementation, you must necessarily
have a runtime test because you won't know until then if ogg vorbis will use
one or another sample (note: that's true also for AC3 as I fixed the exact same
bug in DVDStyler for AC3 encoding a few months ago; and I guess it would be same
for AAC).

Some notes from self:
- New FFmpeg requires using FLTP for AAC, AC3 and Vorbis, it's not supported
  by audaspace and result in this case would be just wrong. Throw an error
  in cases FLTP is trying to be used.
- Moved strict_std_compliance a bit upper. When we'll support FLTP both
  FLT and FLTP for AAC would need to be using FF_COMPLIANCE_EXPERIMENTAL.
- It is nice to have such check of supported by codec formats anyway.

7 years agoPatch #34569: Enable PNG Codec for video output
Sergey Sharybin [Tue, 12 Mar 2013 16:09:23 +0000 (16:09 +0000)]
Patch #34569: Enable PNG Codec for video output

By Gottfried Hofmann, thanks!

7 years agochange defaults for window state on X11 (yet again), after further discussion.
Campbell Barton [Tue, 12 Mar 2013 14:55:52 +0000 (14:55 +0000)]
change defaults for window state on X11 (yet again), after further discussion.

instead use a fixed size as a default, clamp by the desktop size and add some padding (to account for title bar and panel).