blender.git
6 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.

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

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

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

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

6 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]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

6 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

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

adds:
- isect_point_poly_v2()
- isect_point_poly_v2_int()

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

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

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

6 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

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

6 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

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

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

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

6 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

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

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

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

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

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

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

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

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

6 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

6 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
immediately

6 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

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

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

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

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

6 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
selected
* Clicking on the name part of the "Active Action" tracks now selects the
AnimData block that action is attached to

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

6 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

6 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 :)

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

6 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
commit)
* Support for smooth stroke across all paint systems

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

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

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

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

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

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

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

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

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

6 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

6 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. :/

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

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

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

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

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

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

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

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

6 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

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

6 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

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

6 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

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

6 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

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

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

6 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

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

ALERT! POSSIBLE BREAKING COMMIT, ESPECIALLY FOR SCULPT!

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!

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

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

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

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

6 years agoPrint compositor execution statistics when in background mode
Sergey Sharybin [Tue, 12 Mar 2013 14:28:52 +0000 (14:28 +0000)]
Print compositor execution statistics when in background mode

This will print memory usage, mapped memory usage, memory peak,
compositing tree name and number of finished tiles to stdout
when blender is rendering in background mode.

This makes compositor a less blackbox and should help trouble
shooting issues happening during 4K ToS project.

6 years agoFix for strict compiler's flags
Sergey Sharybin [Tue, 12 Mar 2013 14:06:18 +0000 (14:06 +0000)]
Fix for strict compiler's flags

6 years agoFix for crash in special cases when mixing translate node with other
Sergey Sharybin [Tue, 12 Mar 2013 14:04:58 +0000 (14:04 +0000)]
Fix for crash in special cases when mixing translate node with other

Issue was caused by calling ensureDelta from initexecution, which will
read pixels from an input and it could read from non-initialized
operations.

Issue was originally introduced in svn rev54235 which added ensureDelta
to translate's initExecution, but since rev54349 this call seems to be
doing nothing.

6 years agoTemp fix for stupid -Wformat-security issue.
Bastien Montagne [Tue, 12 Mar 2013 13:18:39 +0000 (13:18 +0000)]
Temp fix for stupid -Wformat-security issue.

Also makes more use of BLI_snprintf, and makes more consistent code acrross all "header strings" generation in transform.c.

6 years agoOuliner: Added recursive setting of (visibility/selectability) for bones (Edit- and...
Gaia Clary [Tue, 12 Mar 2013 13:03:58 +0000 (13:03 +0000)]
Ouliner: Added recursive setting of (visibility/selectability) for bones (Edit- and Object-mode)

6 years agoreplace sprintf -> strcpy where its not needed.
Campbell Barton [Tue, 12 Mar 2013 12:47:57 +0000 (12:47 +0000)]
replace sprintf -> strcpy where its not needed.

6 years agoChanging image ID datablock fomr browser in Image node didn't change output sockets
Sergey Sharybin [Tue, 12 Mar 2013 11:03:50 +0000 (11:03 +0000)]
Changing image ID datablock fomr browser in Image node didn't change output sockets

Which lead to either multilayer sockets hanging around when switching image from
multilayer to singlelayer, or missing layers outputs when switching from single
to multilayer image.

6 years agoFixe related on #34608: MultiLayer OpenEXR (from Maya) - passes lost in Compositor...
Sergey Sharybin [Tue, 12 Mar 2013 10:34:14 +0000 (10:34 +0000)]
Fixe related on #34608: MultiLayer OpenEXR (from Maya) - passes lost in Compositor Image Node

imb_exr_split_channel_name didn't set any value to layer and pass names,
leaving them uninitialized.

This is likely solves initial report, but will know for sure after testing
windows build only.

6 years agoWoops, installing dlls shall happen after all the folders are created.
Sergey Sharybin [Tue, 12 Mar 2013 09:24:52 +0000 (09:24 +0000)]
Woops, installing dlls shall happen after all the folders are created.

6 years agoMade a mistake in recent windows buildbot tweaks.
Sergey Sharybin [Tue, 12 Mar 2013 09:19:38 +0000 (09:19 +0000)]
Made a mistake in recent windows buildbot tweaks.
Didn't count indentation correct..

6 years agocode cleanup: quiet struct gcc warnings, also use more conventional names for bmesh...
Campbell Barton [Tue, 12 Mar 2013 08:50:02 +0000 (08:50 +0000)]
code cleanup: quiet struct gcc warnings, also use more conventional names for bmesh dissolve.