blender.git
5 years agoadd typechecks when assigning id-property arrays from python (overflows and errors...
Campbell Barton [Thu, 17 Oct 2013 03:18:21 +0000 (03:18 +0000)]
add typechecks when assigning id-property arrays from python (overflows and errors weren't detected)
reduce/simplify exceptions more.

5 years agosimplify & improve error handling for id-property python-api.
Campbell Barton [Thu, 17 Oct 2013 02:57:59 +0000 (02:57 +0000)]
simplify & improve error handling for id-property python-api.

5 years agofix [#37105] Long int IDproperties produces errors at weird spots.
Campbell Barton [Thu, 17 Oct 2013 02:36:33 +0000 (02:36 +0000)]
fix [#37105] Long int IDproperties produces errors at weird spots.

5 years agopatch [#37114] copypaste for NORMAL buttons (BUT_NORMAL)
Campbell Barton [Wed, 16 Oct 2013 23:42:44 +0000 (23:42 +0000)]
patch [#37114] copypaste for NORMAL buttons (BUT_NORMAL)
from Philipp Oeser (lichtwerk)

5 years agocorrect BM_edge_face_pair() being called inside BLI_assert() - this needed to run...
Campbell Barton [Wed, 16 Oct 2013 22:07:16 +0000 (22:07 +0000)]
correct BM_edge_face_pair() being called inside BLI_assert() - this needed to run every time.
also other minor changes.

5 years agoTriangulate modifier - beauty option is back
Dalai Felinto [Wed, 16 Oct 2013 17:58:00 +0000 (17:58 +0000)]
Triangulate modifier - beauty option is back

Patch reviewed and with collaborations from Campbell Barton

5 years agoBGE: Fix to allow render options such display framerate and profile to work
Mitchell Stokes [Wed, 16 Oct 2013 17:54:12 +0000 (17:54 +0000)]
BGE: Fix to allow render options such display framerate and profile to work
when launching the Blenderplayer from Blender.

This bug was reported and fixed by SolarLune.

5 years agoProject Pampa request: copy-paste for curve mapping widgets
Sergey Sharybin [Wed, 16 Oct 2013 17:48:33 +0000 (17:48 +0000)]
Project Pampa request: copy-paste for curve mapping widgets

Use C-c for copy, C-v for paste over the widget.

5 years agoFix #37084, Backdrop not invalidating inside node groups.
Lukas Toenne [Wed, 16 Oct 2013 07:55:52 +0000 (07:55 +0000)]
Fix #37084, Backdrop not invalidating inside node groups.
Extended the is_active_group flag such that both the current edittree as well as the base node tree in Scene do a viewer node update.

5 years agoadd IDP_FreeFromGroup(), replaces IDP_RemFromGroup(), IDP_FreeProperty(), MEM_freeN().
Campbell Barton [Wed, 16 Oct 2013 05:29:28 +0000 (05:29 +0000)]
add IDP_FreeFromGroup(), replaces IDP_RemFromGroup(), IDP_FreeProperty(), MEM_freeN().

5 years agofix [#37100] Segfault when I rotate an edge
Campbell Barton [Wed, 16 Oct 2013 05:24:55 +0000 (05:24 +0000)]
fix [#37100] Segfault when I rotate an edge

5 years agostyle cleanup
Campbell Barton [Wed, 16 Oct 2013 04:08:20 +0000 (04:08 +0000)]
style cleanup

5 years agobeautify: passing edge/face flags as arguments
Dalai Felinto [Wed, 16 Oct 2013 03:24:50 +0000 (03:24 +0000)]
beautify: passing edge/face flags as arguments
no functional change, just preparing the ground for the beautify in
triangulate modifier changes.

5 years agosplit operators/bmo_beautify.c into tools/bmesh_beautify.c
Dalai Felinto [Wed, 16 Oct 2013 03:24:38 +0000 (03:24 +0000)]
split operators/bmo_beautify.c into tools/bmesh_beautify.c

This is a proper design if we want to use the beautify routine elsewhere
(e.g., in the triangulate modifier)

5 years agofix [#37013] Mesh > bisect can't fill the cut if it lines up with two or more adjacen...
Campbell Barton [Wed, 16 Oct 2013 03:21:55 +0000 (03:21 +0000)]
fix [#37013] Mesh > bisect can't fill the cut if it lines up with two or more adjacent vertices

5 years agoFix part of #37087, brush curve becomes inverted when using the reset
Antony Riakiotakis [Wed, 16 Oct 2013 01:49:11 +0000 (01:49 +0000)]
Fix part of #37087, brush curve becomes inverted when using the reset
curve button.

From the bug report it also seems that positive slope curve presets are
not always reset correctly. However I haven't seen any place where
positive slope curve presets are used. This will fix the initial brush
problem, however it might be good to investigate further if curve
presets are to be used elsewhere. It looks like the issue is related to
bezier curve calculation.

5 years agoedits to r60777 - move ED_object_hook_reset_do into BKE object (if RNA needs to call...
Campbell Barton [Tue, 15 Oct 2013 20:15:45 +0000 (20:15 +0000)]
edits to r60777 - move ED_object_hook_reset_do into BKE object (if RNA needs to call ED_* functions its a hint they might be better in BKE).

5 years agoadd 'Extrude Region, Vertex Normal' to the extrude menu, equivalent of 'Extrude,...
Campbell Barton [Tue, 15 Oct 2013 18:30:49 +0000 (18:30 +0000)]
add 'Extrude Region, Vertex Normal' to the extrude menu, equivalent of 'Extrude, Escape, Alt+S'

5 years agoFix stubs for player
Jens Verwiebe [Tue, 15 Oct 2013 17:19:02 +0000 (17:19 +0000)]
Fix stubs for player

5 years agoFix #37090: Blender crashes on "Make single user" option
Sergey Sharybin [Tue, 15 Oct 2013 17:11:15 +0000 (17:11 +0000)]
Fix #37090: Blender crashes on "Make single user" option

issue was caused by id->mewid pointing to an invalid memory
after file load.

The rule here: all the tools need to reset it to NULL (or
other value they need) in the beginning.

Currently some tools are doing newid clear in the beginning
and some does it in the end. We need to clean it up so clear
only happens in the beginning.

But ideal we need some kind NewIDContext to make duplication
safe for threading.

5 years ago3D view: textured draw mode now has a Shadeless option in the Shading panel,
Brecht Van Lommel [Tue, 15 Oct 2013 15:56:00 +0000 (15:56 +0000)]
3D view: textured draw mode now has a Shadeless option in the Shading panel,
to draw textures without shading. For Cycles this was not possible yet, and
for Blender Internal you had to move away all lights which was also not ideal.

(Caminandes feature request)

5 years agorenaming "Beautify Fill" to "Beautify Faces"
Dalai Felinto [Tue, 15 Oct 2013 15:34:14 +0000 (15:34 +0000)]
renaming "Beautify Fill" to "Beautify Faces"

changing the ot->name only, not the ot->idname
(to avoid breaking scripts)

The tool requires the selection to be fill previously,
the original name was confusing if we consider we have
"Fill" with the "Beauty" option.

Discussed with Bastien Montagne and Brecht van Lommel.

5 years agoCode cleanup: move function prototype to header file
Sergey Sharybin [Tue, 15 Oct 2013 15:21:44 +0000 (15:21 +0000)]
Code cleanup: move function prototype to header file

5 years agoGet rid of Allow Fallback option
Sergey Sharybin [Tue, 15 Oct 2013 15:21:41 +0000 (15:21 +0000)]
Get rid of Allow Fallback option

It was rather confusing from the user usage point
of view and didn't get so much improvement after
new bundle adjuster was added.

In the future we might want to switch resection
to PPnP algorithm, which could also might be a
nice alternative to fallback option.

5 years agoCode cleanup: move hardcoded structure to a typedef
Sergey Sharybin [Tue, 15 Oct 2013 15:21:33 +0000 (15:21 +0000)]
Code cleanup: move hardcoded structure to a typedef

5 years agoCode cleanup: use bools instead of ints for tracking utility functions
Sergey Sharybin [Tue, 15 Oct 2013 15:21:28 +0000 (15:21 +0000)]
Code cleanup: use bools instead of ints for tracking utility functions

5 years agoFix [#37085] Hook modifier work when created with Ctrl+H, but not when created via...
Bastien Montagne [Tue, 15 Oct 2013 14:54:12 +0000 (14:54 +0000)]
Fix [#37085] Hook modifier work when created with Ctrl+H, but not when created via modifier panel

"transform matrix" of the hook was not inited (reset) when assinging and object to it, now use same code for both OBJECT_OT_hook_reset operator and RNA object assignement.

Reviewed by Brecht, thanks.

5 years agoremoving PSD from the fileformat list fix [#37080] The file which I stored in PSD...
Dalai Felinto [Tue, 15 Oct 2013 14:32:33 +0000 (14:32 +0000)]
removing PSD from the fileformat list fix [#37080] The file which I stored in PSD file format in Blender cannot open by Photoshop
PSD writing is not supported at the moment

5 years agoFix [#37077] User prefs > Input and Outliner Keymaps mismatch in representation.
Bastien Montagne [Tue, 15 Oct 2013 13:55:06 +0000 (13:55 +0000)]
Fix [#37077] User prefs > Input and Outliner Keymaps mismatch in representation.

Remove KeyMap mode from outliner, was an old half-finished features redondant with user preferences settings...

Also moved key map item's "event type to map type" and map type defines at WM level, this is too much generic to be at RNA level.

Also added a check in versionning code to convert all outdated outliner modes to a valid one (seems old 'verse' ones were not handled as well).

Thanks to Brecht for reviews and advices!

5 years agoFinal fix for #36905. Enforce redraw of window once before sampling.
Antony Riakiotakis [Tue, 15 Oct 2013 13:45:27 +0000 (13:45 +0000)]
Final fix for #36905. Enforce redraw of window once before sampling.
Thanks to Brecht for the solution!

5 years agoFix duplicated key in ghash assert caused by object orco
Sergey Sharybin [Tue, 15 Oct 2013 09:08:08 +0000 (09:08 +0000)]
Fix duplicated key in ghash assert caused by object orco

Code was rather confusing, get_object_orco was only
checking for orco in cache for some objects and was
actually allocating orco for other objects.

Now made it so get_object_orco always only checks
the cache and only call set_object_orco if there's
no orco for it yet.

5 years agofix [#37082] Texture paint artefact
Campbell Barton [Tue, 15 Oct 2013 08:44:13 +0000 (08:44 +0000)]
fix [#37082] Texture paint artefact

5 years agoStyle cleanup (defines -> enums, bit flags values as bitshifts, etc.).
Bastien Montagne [Tue, 15 Oct 2013 08:05:57 +0000 (08:05 +0000)]
Style cleanup (defines -> enums, bit flags values as bitshifts, etc.).

5 years agocode cleanup: project paint, use mod_i() to simplift wrapping, use booleans for stati...
Campbell Barton [Tue, 15 Oct 2013 07:35:12 +0000 (07:35 +0000)]
code cleanup: project paint, use mod_i() to simplift wrapping, use booleans for static function returns.

5 years agocode cleanup: use booleans for projection paint and make some args const.
Campbell Barton [Tue, 15 Oct 2013 07:18:23 +0000 (07:18 +0000)]
code cleanup: use booleans for projection paint and make some args const.

5 years agosphinx docgen wasn't including example scripts for python methods of RNA types.
Campbell Barton [Tue, 15 Oct 2013 05:55:51 +0000 (05:55 +0000)]
sphinx docgen wasn't including example scripts for python methods of RNA types.

5 years agofix [#37067] Bone Crash
Campbell Barton [Tue, 15 Oct 2013 02:23:28 +0000 (02:23 +0000)]
fix [#37067] Bone Crash

Holding Ctrl+RMB is supposed to select objects, while in editmode,
however it would end up calling editmode selection as well as pose selection while an armature was in editmode (which caused the crash).

Add the ability for view3d_opengl_select() to skip editmode selection.

5 years agofix [#37078] Search props don't react on click at the right end (where 'X' is if...
Campbell Barton [Tue, 15 Oct 2013 00:24:53 +0000 (00:24 +0000)]
fix [#37078] Search props don't react on click at the right end (where 'X' is if field not empty)

5 years agoA follow-up to Bug #37070: LineStyle appears in Outliner by default though Freestyle...
Tamito Kajiyama [Mon, 14 Oct 2013 23:08:45 +0000 (23:08 +0000)]
A follow-up to Bug #37070: LineStyle appears in Outliner by default though Freestyle is not enabled.
Line style data blocks are shown in the outliner only when the Blender Internal is used.

5 years agoRename "Show Python Tooltips" to "Python Tooltips"
Jonathan Williamson [Mon, 14 Oct 2013 21:41:03 +0000 (21:41 +0000)]
Rename "Show Python Tooltips" to "Python Tooltips"

This makes the naming more consistent with other options, such as "Tooltips" and "Object Info"

5 years agoAdded poll function to disable "Remove Shape key from object".
Jonathan Williamson [Mon, 14 Oct 2013 21:03:18 +0000 (21:03 +0000)]
Added poll function to disable "Remove Shape key from object".

This disables the "-" button when no shape keys exist on the currently selected object. Thanks to Campbell for the help on my first real commit!

5 years agoFix particle group use count option losing objects for linked groups. There
Brecht Van Lommel [Mon, 14 Oct 2013 20:13:40 +0000 (20:13 +0000)]
Fix particle group use count option losing objects for linked groups. There
was no reason to go through newlibadr here, go->ob should already have the
right pointer.

5 years agoFix for #37070: LineStyle appears in Outliner by default though Freestyle is not...
Tamito Kajiyama [Mon, 14 Oct 2013 19:57:16 +0000 (19:57 +0000)]
Fix for #37070: LineStyle appears in Outliner by default though Freestyle is not enabled.

5 years agofix [#37072] Crash on RMB click on bone's custom property
Campbell Barton [Mon, 14 Oct 2013 19:53:28 +0000 (19:53 +0000)]
fix [#37072] Crash on RMB click on bone's custom property

5 years agoFix Brush datablock writing MTex blocks to .blend files twice.
Brecht Van Lommel [Mon, 14 Oct 2013 19:37:15 +0000 (19:37 +0000)]
Fix Brush datablock writing MTex blocks to .blend files twice.
Patch by Janis Streib.

5 years agoFix cycles textured draw mode problem with objects that have an image texture
Brecht Van Lommel [Mon, 14 Oct 2013 19:37:12 +0000 (19:37 +0000)]
Fix cycles textured draw mode problem with objects that have an image texture
but not UV coordinates, it would show a different color with the object selected
and deselected.

5 years agoUV editor: remove duplicate Select Split entry from UV menu.
Brecht Van Lommel [Mon, 14 Oct 2013 19:36:47 +0000 (19:36 +0000)]
UV editor: remove duplicate Select Split entry from UV menu.

5 years agoInterface / Text:
Thomas Dinges [Mon, 14 Oct 2013 17:14:43 +0000 (17:14 +0000)]
Interface / Text:
* Add "Open" operator to the Text Editor header, it's a common operation next to New.
* Add Body Text property to the Font panel for Text objects, so text can easily be pasted into Blender and editing it becomes easier too. This was only accessible via the RNA Data blocks before.

5 years ago* Improved Tooltip for Particle Brownian property, patch by Jonathan Williamson....
Thomas Dinges [Mon, 14 Oct 2013 16:38:47 +0000 (16:38 +0000)]
* Improved Tooltip for Particle Brownian property, patch by Jonathan Williamson. Thanks!

5 years agoFix #37043: bpy.ops.sequencer.rebuild_proxy() don't release memory
Sergey Sharybin [Mon, 14 Oct 2013 15:56:48 +0000 (15:56 +0000)]
Fix #37043: bpy.ops.sequencer.rebuild_proxy() don't release memory

5 years agoOSX/fs_menue: change the availability macros, so ppl could still compile on 10.5...
Jens Verwiebe [Mon, 14 Oct 2013 15:37:16 +0000 (15:37 +0000)]
OSX/fs_menue: change the availability macros, so ppl could still compile on 10.5 by just also using 10.4 code then

5 years agoFIx #37005: Mask tool + "Area" Brush Mapping + "Anchored" Stroke = crash
Sergey Sharybin [Mon, 14 Oct 2013 11:42:36 +0000 (11:42 +0000)]
FIx #37005: Mask tool + "Area" Brush Mapping + "Anchored" Stroke = crash

Was caused by area normal calvultion using undo nodes to get coords
from and undo nodes does not contain coords whe using mask tool.

5 years agonote in bisect tooltip that you need to click-drag the plane.
Campbell Barton [Mon, 14 Oct 2013 08:45:43 +0000 (08:45 +0000)]
note in bisect tooltip that you need to click-drag the plane.

5 years agocode cleanup: correct unsigned int in string formatting and use empty() checks for...
Campbell Barton [Mon, 14 Oct 2013 08:23:57 +0000 (08:23 +0000)]
code cleanup: correct unsigned int in string formatting and use empty() checks for vectors.

5 years agoFix for crash from double-freeing in nodes:
Lukas Toenne [Mon, 14 Oct 2013 08:03:55 +0000 (08:03 +0000)]
Fix for crash from double-freeing in nodes:
The way node groups check for localized trees in the ntreeFreeTree_ex function does not work. When the main library is freed on exit it also frees genuine node groups trees (which is correct), but then
node groups referencing these trees will not find them in the library and interpret that as a localized group, attempting to free them a second time ... Nicer solution is to just use a special flag on
localized node trees so we can clearly distinguish them from genuine trees in main.

5 years agoFix #37057, Detach (Alt + D) doesn't work in nodes editor / compositor.
Lukas Toenne [Mon, 14 Oct 2013 08:03:53 +0000 (08:03 +0000)]
Fix #37057, Detach (Alt + D) doesn't work in nodes editor / compositor.
The operator exits early when there are no internal links. This prevents it from removing links which have no internal connection.

5 years agocode cleanup: remove duplicate assignments
Campbell Barton [Mon, 14 Oct 2013 07:15:59 +0000 (07:15 +0000)]
code cleanup: remove duplicate assignments

5 years agofix for array index use before checking range
Campbell Barton [Mon, 14 Oct 2013 07:10:38 +0000 (07:10 +0000)]
fix for array index use before checking range

5 years agoInterface:
Thomas Dinges [Sun, 13 Oct 2013 23:45:41 +0000 (23:45 +0000)]
Interface:
* More compact and better looking Vertex Groups panel (Particle System).
* Smaller uiLists for Cycles as well.

5 years agoInterface / Template Lists:
Thomas Dinges [Sun, 13 Oct 2013 23:24:37 +0000 (23:24 +0000)]
Interface / Template Lists:
* Reduce the space of more lists, should be all in bl_ui/

5 years agoInterface / Template lists:
Thomas Dinges [Sun, 13 Oct 2013 23:04:39 +0000 (23:04 +0000)]
Interface /  Template lists:
* Make the gap for the filtering options slightly bigger, so 1 row doesn't look so cluttered.
* Default Render Layer and Particle System list in the Properties Editor to 1 row as well, to save space.

5 years ago* Silence Blender Internal / Volumetric printf.
Thomas Dinges [Sun, 13 Oct 2013 22:33:30 +0000 (22:33 +0000)]
* Silence Blender Internal / Volumetric printf.

5 years agoProperties Editor / Mesh Data:
Thomas Dinges [Sun, 13 Oct 2013 22:26:53 +0000 (22:26 +0000)]
Properties Editor / Mesh Data:
* Give the uiLists a default size of 1, when we don't have any element in it. This saves some space.

Vertex Groups and Shape Keys list will jump to 5 as before when we have an element, due to the additional buttons, for the others, just grow with additional elements.

5 years agoProject Pampa request: option to lock frame selection to the range
Sergey Sharybin [Sun, 13 Oct 2013 20:46:02 +0000 (20:46 +0000)]
Project Pampa request: option to lock frame selection to the range

This means when you've got "Lock Frame Selection" option (which is
in the timeline next to the preview range button) you're not able
to go to the frames which are out of current frame range with your
mouse.

TODO: Make it so current frame slider also respects this setting?
      Not so much important for tonight.

5 years agoOSX: comment cleanup
Jens Verwiebe [Sun, 13 Oct 2013 18:51:21 +0000 (18:51 +0000)]
OSX: comment cleanup

5 years agoFix for a bug in StrokeCleaner identified through a discussion for Bug #36425 (freest...
Tamito Kajiyama [Sun, 13 Oct 2013 18:17:46 +0000 (18:17 +0000)]
Fix for a bug in StrokeCleaner identified through a discussion for Bug #36425 (freestyle edge marks not working).
Many thanks for Anthony Edlin who helped fix the issue.

5 years agoOSX: Final cleanup for #60729
Jens Verwiebe [Sun, 13 Oct 2013 18:14:38 +0000 (18:14 +0000)]
OSX: Final cleanup for #60729

5 years agoOSX: Get mounted volumes better method by using volume enums
Jens Verwiebe [Sun, 13 Oct 2013 17:12:36 +0000 (17:12 +0000)]
OSX: Get mounted volumes better method by using volume enums

5 years agoFix for commit r60718. There was a remaining WITH_IMAGE_OPENIMAGEIO in CMakeLists...
Irie Shinsuke [Sun, 13 Oct 2013 09:35:54 +0000 (09:35 +0000)]
Fix for commit r60718.  There was a remaining WITH_IMAGE_OPENIMAGEIO in CMakeLists.txt still.

5 years ago* Fix scons compilation on Windows, missing pthreads include.
Thomas Dinges [Sun, 13 Oct 2013 09:27:48 +0000 (09:27 +0000)]
* Fix scons compilation on Windows, missing pthreads include.

5 years agofix [#37058] 2.69 RC1: Symmetrize directions are all reverse
Dalai Felinto [Sun, 13 Oct 2013 05:45:29 +0000 (05:45 +0000)]
fix [#37058] 2.69 RC1: Symmetrize directions are all reverse

5 years agofix for over-alloc in dyntopo, was allocating the vertex size, not pointer size ...
Campbell Barton [Sun, 13 Oct 2013 05:13:38 +0000 (05:13 +0000)]
fix for over-alloc in dyntopo, was allocating the vertex size, not pointer size (~85% wasted space).

5 years agofix [#37046] Dissolve edges and vertices problem with triangulate
Dalai Felinto [Sun, 13 Oct 2013 05:04:06 +0000 (05:04 +0000)]
fix [#37046] Dissolve edges and vertices problem with triangulate
with review and collaboration from Campbell Barton

5 years agoimprove warp transform so it can be used as a general bending tool too.
Campbell Barton [Sun, 13 Oct 2013 01:09:23 +0000 (01:09 +0000)]
improve warp transform so it can be used as a general bending tool too.

5 years agocode cleanup: utility function for getting a bool as a string.
Campbell Barton [Sun, 13 Oct 2013 00:32:31 +0000 (00:32 +0000)]
code cleanup: utility function for getting a bool as a string.

5 years agofix [#37034] Triangulate modifier asserts with GHASH_FLAG_ALLOW_DUPES
Dalai Felinto [Sun, 13 Oct 2013 00:30:49 +0000 (00:30 +0000)]
fix [#37034] Triangulate modifier asserts with GHASH_FLAG_ALLOW_DUPES

5 years agocmake/openimageio - partially reverting #60692
Dalai Felinto [Sat, 12 Oct 2013 23:56:21 +0000 (23:56 +0000)]
cmake/openimageio - partially reverting #60692

We now have openimageio building when cycles builds or when it's
manually set to build.

(I reverted the _IMAGE_ in the define name because I think the closer
the cmake flags match the defines in the software the better, and there
is no reason to rename all the existent WITH_OPENIMAGEIO references in
CMakeLists.txt - which would be the alternative)

5 years agocode cleanup: use more obvious assignments for transform snapping angles.
Campbell Barton [Sat, 12 Oct 2013 22:31:02 +0000 (22:31 +0000)]
code cleanup: use more obvious assignments for transform snapping angles.

5 years agofix [#37059] OSX Debug - assert when using external screen with MacBookPro
Dalai Felinto [Sat, 12 Oct 2013 20:01:17 +0000 (20:01 +0000)]
fix [#37059] OSX Debug - assert when using external screen with MacBookPro

This was old code, Blender now supports multiple screens.
The assert was breaking my builds with -DWITH_ASSERT_ABORT=ON

5 years agofix for possible eyedropper NULL pointer use.
Campbell Barton [Sat, 12 Oct 2013 18:11:54 +0000 (18:11 +0000)]
fix for possible eyedropper NULL pointer use.

5 years agoOSX/scons: clean message
Jens Verwiebe [Sat, 12 Oct 2013 15:31:53 +0000 (15:31 +0000)]
OSX/scons: clean message

5 years agoOSX/scons: rename a confusing (outdated) message
Jens Verwiebe [Sat, 12 Oct 2013 15:25:31 +0000 (15:25 +0000)]
OSX/scons: rename a confusing (outdated) message

5 years agoFix for prefetch not working correct if last frame was loaded
Sergey Sharybin [Sat, 12 Oct 2013 14:47:04 +0000 (14:47 +0000)]
Fix for prefetch not working correct if last frame was loaded

5 years agoOption to overlay mask over the footage
Sergey Sharybin [Sat, 12 Oct 2013 14:09:05 +0000 (14:09 +0000)]
Option to overlay mask over the footage

Currently supports only two modes:
- Show alpha channel of the mask
- Multiply footage by the mask, which will give
  you final-looking combined image.

TODO: Currently rasterization happens on every
      redraw, need to cache rasterized mask
      somewhere to make redraw more realtime.

5 years agoTask scheduler ported form CYcles to C
Sergey Sharybin [Sat, 12 Oct 2013 14:08:59 +0000 (14:08 +0000)]
Task scheduler ported form CYcles to C

Replaces ThreadedWorker and is gonna to be used
for threaded object update in the future and
some more upcoming changes.

But in general, it's to be used for any task
based subsystem in Blender.

Originally written by Brecht, with some fixes
and tweaks by self.

5 years agoFix #37002: cycles viewport render shows white on old graphics cards with no
Brecht Van Lommel [Sat, 12 Oct 2013 13:55:52 +0000 (13:55 +0000)]
Fix #37002: cycles viewport render shows white on old graphics cards with no
support for non-power-of-two textures.

5 years agoFix #37045: blender internal SSS rendering black on some system when the SSS
Brecht Van Lommel [Sat, 12 Oct 2013 13:44:40 +0000 (13:44 +0000)]
Fix #37045: blender internal SSS rendering black on some system when the SSS
reflection color was set to 1 1 1. BSSRDF parameter fit not converging properly
due to float precision issues.

5 years agoFurther tweak for dual quaternion armature deform problem, tweak the epsilon
Brecht Van Lommel [Sat, 12 Oct 2013 12:54:09 +0000 (12:54 +0000)]
Further tweak for dual quaternion armature deform problem, tweak the epsilon
value to solve some more cases.

5 years agoRevert both own r60700 and r60702. API behavior for expanded enums is completly incon...
Bastien Montagne [Sat, 12 Oct 2013 11:28:37 +0000 (11:28 +0000)]
Revert both own r60700 and r60702. API behavior for expanded enums is completly inconsistent, but again, better to do such changes (soft-breaking API) in bulk...

5 years agoAdd poll function for overlay panel. Thanks to Thomas Dinges for the report!
Antony Riakiotakis [Sat, 12 Oct 2013 11:18:38 +0000 (11:18 +0000)]
Add poll function for overlay panel. Thanks to Thomas Dinges for the report!

5 years agoFix #37047, Expanded Enum Alignment glitching.
Lukas Toenne [Sat, 12 Oct 2013 11:05:12 +0000 (11:05 +0000)]
Fix #37047, Expanded Enum Alignment glitching.
The enum item buttons in the node header change their alignr when switching the tree type, due to different things being shown in the header (this rarely happens in other panels, so it doesn't turn
up easily). The new alignnr needs to be copied to existing block buttons in ui_but_update_from_old_block to ensure the enum items get aligned to each other.

5 years agoFollowup to own r60700, fix was not correct... In fact, beahivor of expanded enums...
Bastien Montagne [Sat, 12 Oct 2013 11:03:32 +0000 (11:03 +0000)]
Followup to own r60700, fix was not correct... In fact, beahivor of expanded enums is not consistent with other properties, as there labels are never shown. Keep it for now, though, as this would break many scripts and ui file, better to do this in bulk!

Thanks to DingTo and plasmasolutions for notifying the issue.

5 years agoCode cleanup: Remove some more unused cycles SSS code, related to the lookup table.
Thomas Dinges [Sat, 12 Oct 2013 09:54:57 +0000 (09:54 +0000)]
Code cleanup: Remove some more unused cycles SSS code, related to the lookup table.

5 years agoFix obvious error in expanded enum layout code, given uiname would never be use...
Bastien Montagne [Sat, 12 Oct 2013 09:43:57 +0000 (09:43 +0000)]
Fix obvious error in expanded enum layout code, given uiname would never be use...

5 years agoMore fixes for PSD support in SCons scirpts...
Irie Shinsuke [Sat, 12 Oct 2013 06:11:26 +0000 (06:11 +0000)]
More fixes for PSD support in SCons scirpts...

5 years agotransform - use 2d float's for the viewport center (allows for vector math functions...
Campbell Barton [Sat, 12 Oct 2013 03:42:06 +0000 (03:42 +0000)]
transform - use 2d float's for the viewport center (allows for vector math functions to be used more easily).

5 years agocode cleanup: use const's for vector args.
Campbell Barton [Sat, 12 Oct 2013 02:19:37 +0000 (02:19 +0000)]
code cleanup: use const's for vector args.

5 years agoFix dual quaternion armature deform giving erratic results in some cases. Bug
Brecht Van Lommel [Sat, 12 Oct 2013 00:08:34 +0000 (00:08 +0000)]
Fix dual quaternion armature deform giving erratic results in some cases. Bug
was encountered in a Kiribati rig file.

The problem was actually in the matrix to quaternion conversion function. One
problem is that it was using the wrong matrix indices in case of an ill defined
matrix trace. Besides that FLT_EPSILON was too small to detect cases where
float precision becomes a problem.

5 years agoFix crash running Blender in background mode, caused by revision 60633.
Brecht Van Lommel [Sat, 12 Oct 2013 00:08:33 +0000 (00:08 +0000)]
Fix crash running Blender in background mode, caused by revision 60633.

5 years agoCode cleanup: remove some unused cycles SSS code.
Brecht Van Lommel [Sat, 12 Oct 2013 00:08:31 +0000 (00:08 +0000)]
Code cleanup: remove some unused cycles SSS code.