Sergey Sharybin [Fri, 5 Oct 2012 07:31:30 +0000 (07:31 +0000)]
Booleans: epsilon for planar checks seems a bit too small for single precision math
This could solve issue #32748: Boolean Modifiers Making unneeded edges?
Sergey Sharybin [Fri, 5 Oct 2012 07:17:45 +0000 (07:17 +0000)]
Fix #32707: texture preview not loaded
Bastien Montagne [Fri, 5 Oct 2012 07:05:52 +0000 (07:05 +0000)]
Some effect-less code cleanup...
Joshua Leung [Fri, 5 Oct 2012 06:40:21 +0000 (06:40 +0000)]
Bugfix [#32760] Crash on entering pose mode if motion paths have no baked points
Dunno how a file with this situation arose, but we now perform some more sanity checking to abort in this sticky situation.
Campbell Barton [Fri, 5 Oct 2012 05:59:15 +0000 (05:59 +0000)]
fixes/minor improvements to circle select in armature and pose mode.
- pose mode now checks if circle select intersects the bone if neither head/tail are reached (as with editmode)
- checking if the mouse intersects with the bone now checks that neither projection failed.
- use ED_view3d_project_int_object rather then the global version.
Campbell Barton [Fri, 5 Oct 2012 05:27:51 +0000 (05:27 +0000)]
fix for circle select ignoring lock selection option for pose and edit modes, added macros PBONE_SELECTABLE, EBONE_SELECTABLE
Campbell Barton [Fri, 5 Oct 2012 05:11:10 +0000 (05:11 +0000)]
replace ED_view3d_project_short_* with ED_view3d_project_int_*, when the result was converted to an int after.
also optimization for particle editmode key_test_depth() was projecting the screen coords, but all callers had already done this, so pass an arg.
Campbell Barton [Fri, 5 Oct 2012 04:43:46 +0000 (04:43 +0000)]
knife tool: avoid sqrt's for length comparison, and define KNIFE_FLT_EPS rather than using (FLT_EPSILON * 80).
Campbell Barton [Fri, 5 Oct 2012 04:18:52 +0000 (04:18 +0000)]
fix for bug in loop select, picking the active vert/edge/face was using global space checks on object space coordinates. this removes last use of ED_view3d_project_float_noclip().
Campbell Barton [Fri, 5 Oct 2012 03:57:56 +0000 (03:57 +0000)]
replace most uses of ED_view3d_project_float_noclip() with ED_view3d_project_float_global/object
Campbell Barton [Fri, 5 Oct 2012 03:20:14 +0000 (03:20 +0000)]
replace ED_view3d_project_float with ED_view3d_project_float_global
Campbell Barton [Fri, 5 Oct 2012 03:06:01 +0000 (03:06 +0000)]
Improvements for knife tool execute function (code was a bit sloppy & could leak memory).
- vertex to screenspace projections were not checking for failure to project (vertex behind the view for eg).
- vertex screenspace 2d vectors were each malloc'd and added to own ghash, then fetched for each edge.
now just store a vertex aligned array and do index lookups.
- projections were done in global space, now do them in object space (avoids a matrix multiply).
- error cases were commented out and would fail silently, now report them to the operator.
- remove MAX_CUTS hard coded limit, dynamically allocate the mouse path.
- add missing free calls in error cases.
Campbell Barton [Fri, 5 Oct 2012 01:34:47 +0000 (01:34 +0000)]
code cleanup: quiet warnings and use define for transform snap max distance.
Campbell Barton [Fri, 5 Oct 2012 01:27:28 +0000 (01:27 +0000)]
add ED_view3d_project_float_global, ED_view3d_project_float_object, ED_view3d_project_float_ex function calls and cleanup cursor3d set function which had some odd logic.
Thomas Dinges [Thu, 4 Oct 2012 23:44:03 +0000 (23:44 +0000)]
* Fix Scons build when OCIO is disabled.
Still fails when it's enabled though (unresolved symbols).
Brecht Van Lommel [Thu, 4 Oct 2012 21:40:39 +0000 (21:40 +0000)]
Cycles: add "From Dupli" option for texture coordinate node. This gets the
Generated and UV coordinates from the duplicator of instance instead of the
object itself.
This was used in e.g. Big Buck Bunny for texturing instanced feathers with
a UV map on the bird. Many files changed, mainly to do some refactoring to
get rid of G.rendering global in duplilist code.
Brecht Van Lommel [Thu, 4 Oct 2012 21:40:10 +0000 (21:40 +0000)]
Mesh Deform Modifier: binding is now accelerated with a BVH tree, can make it
much faster for complex meshes. Patch by Joe Eager.
Bastien Montagne [Thu, 4 Oct 2012 20:59:47 +0000 (20:59 +0000)]
Quick fix for [#32764] Some new object types are added at the origin instead of the 3D cursor
Own fault (r50994). Those "add object" ops really need a cleanup to make them more consistent! Will try to see this tomorrow.
Sergey Sharybin [Thu, 4 Oct 2012 20:31:08 +0000 (20:31 +0000)]
Fix #32763: Image flickering appears if Movie Clip Editor and compositor opened
The issue was caused by compositor was allocating float buffer for image and
then this buffer was filled with data converted from byte buffer.
If display happens at time between float was allocated and it was filled black
areas were appearing on the screen.
Made it so IMB_float_from_rect locks color management thread so display
transform wouldn't use uninitialized buffer anymore.
Brecht Van Lommel [Thu, 4 Oct 2012 20:12:16 +0000 (20:12 +0000)]
Fix #31806: cycles crash rendering a particular node setup with multiple mix/add
shader nodes.
Brecht Van Lommel [Thu, 4 Oct 2012 20:12:05 +0000 (20:12 +0000)]
UI: buttons that open menus now align to the menu rather than looking disconnected.
Also fixed some cases where the menu was offset 1 or 2 pixels wrong, though not
quite all of them, still off by 1 pixel sometimes.
http://www.pasteall.org/pic/show.php?id=38478
Brecht Van Lommel [Thu, 4 Oct 2012 20:11:54 +0000 (20:11 +0000)]
Code cleanup: fix some clang checker warnings.
Bastien Montagne [Thu, 4 Oct 2012 18:53:17 +0000 (18:53 +0000)]
Fix for commit r51049: no need to create two contexts when one if enough.
Also please define and use constants in BLF_translation.h rather than directly typing contexts' names, it's safer (typo would break at compile time, instead of generating more contexts!).
Sergey Sharybin [Thu, 4 Oct 2012 18:30:28 +0000 (18:30 +0000)]
Fix #32755: Stripes in Metastrip can not be moved on other channel with mouse (grab tool)
The issue was caused by SEQ_BEGIN macro modifying sequence's depth
which ruined transformation routines. Used own DFS instead which
doesn't modify sequences.
Also corrected some typos in api and comments.
Sv. Lockal [Thu, 4 Oct 2012 18:21:34 +0000 (18:21 +0000)]
Add translation context for volume (Audio), pitch (Rotation) and rename tip->tooltip for custom properties
Tracked in [#31062] [2.6x] Context Ambiguity List & Discussion (keep updating)
Campbell Barton [Thu, 4 Oct 2012 17:52:12 +0000 (17:52 +0000)]
make ED_view3d_project_int equivalent to ED_view3d_project_short functions.
Campbell Barton [Thu, 4 Oct 2012 16:46:15 +0000 (16:46 +0000)]
refactor ED_view3d_project_short & ED_view3d_project_short_noclip,
This is apart of a code cleanup to make ED_view3d_project_short/ED_view3d_project_int/ED_view3d_project_float interchangeable. Currently they work very differently in a way thats quite confusing (and cause of bugs in blender that remain uncorrected) - fixes coming.
There are also cases where ED_view3d_project_short is used, then the values are converted from shorts into int's after because ED_view3d_project_int() behaves differently, will unify behavior of these functions after this commit.
- rather then clip/noclip versions, pass flags (for bound-box clip, window clip).
- rather then store the invalid clip-value, return success (or error value clip_near, clip_bb, clip_win, overflow).
- remove local copies of project functions from drawobject.c: view3d_project_short_clip, view3d_project_short_noclip, view3d_project_short_clip_persmat.
add functions:
- ED_view3d_project_short_global() global space projection
- ED_view3d_project_short_object() object space projection.
- ED_view3d_project_short_ex() take perspective matrix and local space option as args.
- ED_view3d_project_base() - special function to set the Object 'Base' screen coords (sx, sy), since this is a common enough operation.
Dan Eicher [Thu, 4 Oct 2012 15:14:15 +0000 (15:14 +0000)]
Have CPack rpm builder install the colorspace folder too
Bastien Montagne [Thu, 4 Oct 2012 13:59:14 +0000 (13:59 +0000)]
Kind of cleanup of "menu strings": always have a space between the entry's label and value (these strings are a nightmare to handle in RTL languages like arabic or persian, but a bit less of a nightmare this way ;) ).
Bastien Montagne [Thu, 4 Oct 2012 13:49:39 +0000 (13:49 +0000)]
Fix for rtl processing of menu strings...
Sergey Sharybin [Thu, 4 Oct 2012 13:39:08 +0000 (13:39 +0000)]
Color Management: fallback to stub ocio implementation in cases when
ocio configuration file failed to load
This solves issues with infinite NULL-checks to prevent crashes in
such situations. Currently only happens if there's no configuration
file at all, but could be tweaked further to fallback if this file
isn't usable by blender.
Campbell Barton [Thu, 4 Oct 2012 13:26:15 +0000 (13:26 +0000)]
style cleanup: comment blocks
Campbell Barton [Thu, 4 Oct 2012 11:39:30 +0000 (11:39 +0000)]
code cleanup: comment verse outliner views, also correct warning in recent commit.
Jens Verwiebe [Thu, 4 Oct 2012 11:37:17 +0000 (11:37 +0000)]
OSX/cmake: fix warning: go back to initial state, not the right way to get rid of this
Jens Verwiebe [Thu, 4 Oct 2012 11:26:02 +0000 (11:26 +0000)]
OSX/cmake: fix warning: second try
Joshua Leung [Thu, 4 Oct 2012 11:05:48 +0000 (11:05 +0000)]
Bugfix [#32754] Clear Motion paths button not available on Motion paths panel
On second thought, perhaps it is more convenient/natural if this was shown in
both places, given that many
people may only find the motion paths options through the UI now.
Joshua Leung [Thu, 4 Oct 2012 10:58:03 +0000 (10:58 +0000)]
Added convenience operator to clear animation (i.e. all keyframes = F-Curves)
from selected objects and bones
Jens Verwiebe [Thu, 4 Oct 2012 10:48:17 +0000 (10:48 +0000)]
OSX/cmake: fix warning: -Wuninitialized is not supported without -O, in debug-mode
Campbell Barton [Thu, 4 Oct 2012 09:55:10 +0000 (09:55 +0000)]
fix for using hsv uninitialized in ui_draw_but_HSVCIRCLE()
Campbell Barton [Thu, 4 Oct 2012 09:43:27 +0000 (09:43 +0000)]
code cleanup: make the behavior of set_current_material_texture() clearer and remove redundant NULL check there. also small changes to ui_draw_but_HSVCIRCLE().
Campbell Barton [Thu, 4 Oct 2012 09:33:14 +0000 (09:33 +0000)]
avoid a sqrtf call in ui_hsvcircle_vals_from_pos() for values outside the circle.
Campbell Barton [Thu, 4 Oct 2012 09:20:58 +0000 (09:20 +0000)]
use GCC's -Wpadded on DNA files, gives more useful warnings then makesdna.
Campbell Barton [Thu, 4 Oct 2012 09:12:08 +0000 (09:12 +0000)]
code cleanup: remove USE_BMESH_FORWARD_COMPAT - this was added to load bmesh in pre-bmesh blender version, remove MODSTACK_DEBUG, was never used.
Thomas Dinges [Thu, 4 Oct 2012 08:56:37 +0000 (08:56 +0000)]
* Trunk is open again, BCon 1.
Dan Eicher [Wed, 3 Oct 2012 21:52:36 +0000 (21:52 +0000)]
colormanage_colorspace_get_named() can (and does) return NULL, added checks to prevent null pointer dereference if the named color profile isn't found
Sergey Sharybin [Wed, 3 Oct 2012 14:16:07 +0000 (14:16 +0000)]
Artifacts on splash are resolved.
Sergey Sharybin [Wed, 3 Oct 2012 12:07:29 +0000 (12:07 +0000)]
Correction to commit rev48866 -- convert_tface_mt must happen before BKE_mesh_do_versions_convert_mfaces_to_mpolys
Discovered when were looking into crystal_cube.blend from our regression files
collection. Now it should look the same as in 2.62 release. 2.63 release wouldn't
work correct for this file because of wrong mtface->material conversion after
bmesh merge.
Thomas Dinges [Wed, 3 Oct 2012 09:37:36 +0000 (09:37 +0000)]
* Fix for the elsyiun.xml theme, Reports in Info Header were not readable (grey on grey). Patch by "ejnersan" in IRC.
Sergey Sharybin [Wed, 3 Oct 2012 08:51:05 +0000 (08:51 +0000)]
Fix #32742: Motion path calculation on linked armatures locks up Blender
Issue was happening when linking armature object and making proxy and was
caused by not copying visualization settings in BKE_pose_copy_data.
This lead to deadlocks in motion path drawing code.
After discussion with Campbell decided it is crucial fix since it fixes
bug appearing in really common scenario of using armatures.
Campbell Barton [Wed, 3 Oct 2012 07:35:29 +0000 (07:35 +0000)]
fix [#32743] Freed memory access when freeing materials.
Campbell Barton [Wed, 3 Oct 2012 07:33:04 +0000 (07:33 +0000)]
fix [#32739] Glare node does "add" instead of "lighten"
Campbell Barton [Wed, 3 Oct 2012 05:49:22 +0000 (05:49 +0000)]
fix for cmake constructing an invalid include path.
Sergey Sharybin [Tue, 2 Oct 2012 16:39:37 +0000 (16:39 +0000)]
Entering Bcon5 stage!
- Bump version to 2.64
- No version char for this cycle
- This is finally release stage!
Splash would be commited in some hours from now.
Thanks everyone!
Alex Fraser [Tue, 2 Oct 2012 14:15:02 +0000 (14:15 +0000)]
Added example of KX_GameObject subclassing to game engine docs.
Campbell Barton [Tue, 2 Oct 2012 13:59:05 +0000 (13:59 +0000)]
freeing node trees no longer decreases their user counts, this cause causing invalid memory access when freeing the blend file.
Campbell Barton [Tue, 2 Oct 2012 13:24:28 +0000 (13:24 +0000)]
revert fix for [#31555] Username with special chars in Windows 7
this breaks and causes bug: [#32720], where sys.stdout becomes invalid and print() does nothing.
On investigation - python is not getting the environment variable from blender (aparently because its a DLL?) so this should be resolved rather then overwriting sys.stdout.
Campbell Barton [Tue, 2 Oct 2012 13:13:26 +0000 (13:13 +0000)]
correct spelling error in operator property
Jeroen Bakker [Tue, 2 Oct 2012 11:37:15 +0000 (11:37 +0000)]
* fix for regression test [compo_map_uv.blend]
the wrapping was resized to fit the uv map. this step was wrong and has
been deleted.
Jeroen Bakker [Tue, 2 Oct 2012 10:03:16 +0000 (10:03 +0000)]
* fix for regression file [compo_map_zcombine_cubes.blend]
the alpha mix formula was wrong. updated it.
Be aware that the regression file does not take the alpha into account,
but it should. or at least one z combine should and the other not.
this fails in 2.63a.
- At Mind -
Thomas Dinges [Tue, 2 Oct 2012 06:24:02 +0000 (06:24 +0000)]
UI:
* Fix RNA name for "turbulence_strength" property.
Campbell Barton [Tue, 2 Oct 2012 05:12:49 +0000 (05:12 +0000)]
fix for crash in own recent masking commit with 'flood fill' operator.
Campbell Barton [Tue, 2 Oct 2012 04:31:51 +0000 (04:31 +0000)]
fix for mesh_foreachScreenEdge__mapFunc running the callback with V3D_CLIP_TEST_RV3D_CLIPPING'd verts. (used uninitialised stack memory)
Campbell Barton [Tue, 2 Oct 2012 03:18:48 +0000 (03:18 +0000)]
correct some include dirs not being included as SYSTEM paths in cmake.
Campbell Barton [Tue, 2 Oct 2012 01:10:18 +0000 (01:10 +0000)]
fix for error in mask drawing, was using glVertex3fv on 2d verts. (buffer overrun)
Campbell Barton [Tue, 2 Oct 2012 00:54:41 +0000 (00:54 +0000)]
fix for crash loading durian file '08.5e_comp.blend' - external data pointer for face data was NULL.
Campbell Barton [Tue, 2 Oct 2012 00:28:01 +0000 (00:28 +0000)]
fix: path looper was checking the path of old tessface external data rather then loop data. (missed with bmesh upgrade)
Brecht Van Lommel [Mon, 1 Oct 2012 20:21:50 +0000 (20:21 +0000)]
Fix #32712: non-multilayer openexr file save for a single channel image would
write wrong colors for float and crash for half-float.
Brecht Van Lommel [Mon, 1 Oct 2012 18:31:32 +0000 (18:31 +0000)]
Fix/workaround #31987: sample as lamp for environment textures not working
with multi GPU when resolution > 128.
Bastien Montagne [Mon, 1 Oct 2012 17:40:02 +0000 (17:40 +0000)]
Fix [#32719] "New object align to view" option doesn't work on lamps and force fields
There was strange context changes in the Add menu... Now everything uses the EXEC_REGION_WIN one (no need to invoke here, and metaballs have a strange specific invoke func...). This fixes the problem when using Add menu from a 3D view. Obviously, it still doesn't work when used from Info window's header, but that can't be helped for now (and never worked for any kind of object).
Anyway, imho all this "add object" code could use some review/cleanup, both on py menu and C ops side, but this is obviously postponed to after 2.64!
Sergey Sharybin [Mon, 1 Oct 2012 17:38:22 +0000 (17:38 +0000)]
Fix #32728: File Output node always save as RGBA, even when RGB is selected
Seems to be a regression in new compositor system -- wrong number of planes
was using for image buffer allocation.
Brecht Van Lommel [Mon, 1 Oct 2012 17:09:12 +0000 (17:09 +0000)]
Fix #32725: cycles border render + panorama camera not working in viewport. It will
still look a bit strange since the viewport can't actually render such panorama views,
so the opengl drawn scene behind the border render will not match up.
Brecht Van Lommel [Mon, 1 Oct 2012 16:45:50 +0000 (16:45 +0000)]
CMake: disable some warnings on mac that cause prints in nearly every file, and
remove duplicate -Wundef entries.
Campbell Barton [Mon, 1 Oct 2012 15:39:29 +0000 (15:39 +0000)]
fix for own bug in bmesh api, setting a byte string customdata layer assumed the input data was 256 length, assigning smaller values would read past the buffer.
Campbell Barton [Mon, 1 Oct 2012 15:27:50 +0000 (15:27 +0000)]
quiet some warnings.
Campbell Barton [Mon, 1 Oct 2012 15:26:48 +0000 (15:26 +0000)]
fix for unlikely crash if smoke collision data couldn't be read. (pointer was used before doing NULL check)
Campbell Barton [Mon, 1 Oct 2012 15:17:03 +0000 (15:17 +0000)]
possible fix for crashing when re-doing mouse select operator, there was a missing NULL check on space-image.
Campbell Barton [Mon, 1 Oct 2012 14:51:53 +0000 (14:51 +0000)]
fix [#32716] continuous grab bevel inset faces
Campbell Barton [Mon, 1 Oct 2012 14:23:57 +0000 (14:23 +0000)]
revert r50969, gives problems with weight paint + modifiers, need to investigate further after release.
Sergey Sharybin [Mon, 1 Oct 2012 14:15:05 +0000 (14:15 +0000)]
Fixed memory leak in CustomData_interp in cases when sources count is more than
SOURCE_BUF_SIZE and there's no more destination layers in main cycle of this function.
Campbell Barton [Mon, 1 Oct 2012 14:14:21 +0000 (14:14 +0000)]
fix for crash found when attempting to setup testing environment to find crashes :)
scripts that have `Register` enabled and load another blend file would crash blender.
Jens Verwiebe [Mon, 1 Oct 2012 14:03:02 +0000 (14:03 +0000)]
OSX/cmake: simplificate compile conditions and silence lot of CLANG warnings
Thomas Dinges [Mon, 1 Oct 2012 14:02:47 +0000 (14:02 +0000)]
File Output Node:
* Small cosmetic change, move up/down buttons next to the list, instead of beneath.
* Removed redundant "uiLayout" declarations.
Sergey Sharybin [Mon, 1 Oct 2012 12:41:20 +0000 (12:41 +0000)]
Disable render part of display transformation for icon/texture preview
This change mainly caused by too dark icon generated for texture brushes,
but also makes it a bit more straightforward from what's going on point of view.
Sergey Sharybin [Mon, 1 Oct 2012 11:26:52 +0000 (11:26 +0000)]
Fix #32686: MovieClip background initialisaton error
Undistorted rendering with original footage settings does not require proxies to be enabled.
Sergey Sharybin [Mon, 1 Oct 2012 11:14:02 +0000 (11:14 +0000)]
Fix #32695: Can't disable color management for 3D view
Made it so viewport will disable color management if display device set to None.
This solves couple of regressions, mainly related on old BGE files and made
None display behave exactly as old color management disabled.
Campbell Barton [Mon, 1 Oct 2012 11:12:49 +0000 (11:12 +0000)]
add compiler hints that failing to create a bmesh face is unlikely.
Campbell Barton [Mon, 1 Oct 2012 11:05:09 +0000 (11:05 +0000)]
fix [#32713] Crash with modifiers + GLSL mode
crash caused by own commit r50969, the fix exposed a crash in an area of code that must have never been used before.
Campbell Barton [Mon, 1 Oct 2012 10:43:52 +0000 (10:43 +0000)]
fix [#31654] Non-proportional edge slide behaving incorrectly.
Campbell Barton [Mon, 1 Oct 2012 07:54:37 +0000 (07:54 +0000)]
fix for some errors when unlinking.
- movieclip unlink didn't clear node ID pointers from the scene (leaving dangling pointers).
- mask datablock unlink was clearning references from scene nodes twice.
Antony Riakiotakis [Mon, 1 Oct 2012 07:53:54 +0000 (07:53 +0000)]
Fix: gpu_colors_enable could cause 3d display corruption because it always enables glColorMaterial. Make sure to call gpu_colors_disable even if we don't have a mask layer, to match gpu_colors_enable above
Campbell Barton [Mon, 1 Oct 2012 06:34:02 +0000 (06:34 +0000)]
fix [#32709] Color mix node produces artifacts from other frames
Campbell Barton [Mon, 1 Oct 2012 06:18:45 +0000 (06:18 +0000)]
style cleanup: define float sizes for interpolation functions, add retirn's on newlines (to better add breakpoints).
Campbell Barton [Mon, 1 Oct 2012 05:19:57 +0000 (05:19 +0000)]
mask data is no longer automatically added when sculpting (except when there is a multi-res modifier).
Campbell Barton [Mon, 1 Oct 2012 04:59:21 +0000 (04:59 +0000)]
DM_set_only_copy() wasn't setting only-copy flags for loops and polygons. (should have been added during bmesh merge)
Campbell Barton [Mon, 1 Oct 2012 04:00:41 +0000 (04:00 +0000)]
fix for leak when freeing mask data in editmode.
Campbell Barton [Mon, 1 Oct 2012 03:45:31 +0000 (03:45 +0000)]
fix for crash deleting higher multi-res levels without mask data.
Campbell Barton [Mon, 1 Oct 2012 02:04:06 +0000 (02:04 +0000)]
update UI introspection script for changes to blender.
Campbell Barton [Mon, 1 Oct 2012 01:26:54 +0000 (01:26 +0000)]
updated themes with active pose bone color.
Sergey Sharybin [Sun, 30 Sep 2012 15:04:46 +0000 (15:04 +0000)]
Revert changes made to support diffuse color when sculpting
This changes are not stable enough and trying fix it could backfire in some
other regressions which isn't wanted so much close to the release.
This means objects will have gray color as diffuse which becomes darker in
masked areas for 2.64.
Proper fix is aimed for 2.65.
This commit reverts 50827 and 50898.
Campbell Barton [Sun, 30 Sep 2012 12:24:29 +0000 (12:24 +0000)]
fix for using uninitialized blur falloff for dilate/erode node.