blender.git
6 years agoresize info header (was too much white space)
Campbell Barton [Mon, 8 Oct 2012 10:50:18 +0000 (10:50 +0000)]
resize info header (was too much white space)

6 years agospeaker and empty where hardly visible
Campbell Barton [Mon, 8 Oct 2012 10:19:59 +0000 (10:19 +0000)]
speaker and empty where hardly visible

6 years agoupdate to ubuntu theme
Campbell Barton [Mon, 8 Oct 2012 10:04:36 +0000 (10:04 +0000)]
update to ubuntu theme

6 years agostyle cleanup: pep8
Campbell Barton [Mon, 8 Oct 2012 10:03:01 +0000 (10:03 +0000)]
style cleanup: pep8

6 years agoquiet msvc warning & allow zero arguments to add functions.
Campbell Barton [Mon, 8 Oct 2012 09:39:35 +0000 (09:39 +0000)]
quiet msvc warning & allow zero arguments to add functions.

6 years agoCode cleanup - Convert if blocks to switch
Joshua Leung [Mon, 8 Oct 2012 08:44:48 +0000 (08:44 +0000)]
Code cleanup - Convert if blocks to switch

6 years agostyle cleanup: pep8
Campbell Barton [Mon, 8 Oct 2012 08:28:05 +0000 (08:28 +0000)]
style cleanup: pep8

6 years agoDo not use nodeLabel() to generate new nodes' names, this is an UI func returning...
Bastien Montagne [Mon, 8 Oct 2012 07:40:57 +0000 (07:40 +0000)]
Do not use nodeLabel() to generate new nodes' names, this is an UI func returning translated strings, which should never get into data. And it may generates dummy names in some situations (like all new Filter nodes were getting "Soften" as name (default option), better to always get "Filter" in this case!).

(Note for Lockal: also checked fcurves/drivers, but those names are directly taken from RNA prop name, hence they are as UI label, translated in the current language, but not stored in data. So no problem here ;) ).

6 years agocode cleanup: reduce change the size of some float vectors that were bigger then...
Campbell Barton [Mon, 8 Oct 2012 07:08:29 +0000 (07:08 +0000)]
code cleanup: reduce change the size of some float vectors that were bigger then they needed to be.

update to clang_array_check.py - parse function definitions lazily for some speedup.

6 years agoFix #32803: Incorrect sequencer color space for newly added scenes
Sergey Sharybin [Mon, 8 Oct 2012 06:38:34 +0000 (06:38 +0000)]
Fix #32803: Incorrect sequencer color space for newly added scenes

6 years agoCode cleanup - silence some "uninitialised" warnings in BMesh code
Joshua Leung [Mon, 8 Oct 2012 06:28:06 +0000 (06:28 +0000)]
Code cleanup - silence some "uninitialised" warnings in BMesh code

There are still a lot more in bmo_bevel.c and bmo_extrude.c, but those don't
seem that easy to fix.

6 years agoBugfix: No enum tooltips displayed for many 3D view navigation tools (+ Code
Joshua Leung [Mon, 8 Oct 2012 06:21:36 +0000 (06:21 +0000)]
Bugfix: No enum tooltips displayed for many 3D view navigation tools (+ Code
cleanup)

* Enum tooltips will only be detected in the case that we assign that as the
default property (ot->prop) of the operator. Set all of the offending properties
to get this status, since those operators would be useless without that property
anyway

* Improved the wording/capitalisation of a few of these tooltips and labels

6 years agoDisplay enum descriptions in tooltips for operators using a "type" or "mode"
Joshua Leung [Mon, 8 Oct 2012 05:57:52 +0000 (05:57 +0000)]
Display enum descriptions in tooltips for operators using a "type" or "mode"
property

Changes:
This commit adds a second line to the tooltips (below the generic operator
description) showing the appropriate description for each enum option. This
brings it more into line enum properties in Blender which also show this sort of
information.

Rationale:
Operators such as Snap and Mirror in the Action and Graph Editors use an enum to
control their behaviour (respectively, "how to snap" or "what to use as the
mirror line"). In the menus, these options are displayed using a submenu, but
hovering over each of these items for more information from a tooltip only shows
the (relatively unhelpful) generic operator tooltip/description.

Another area where these descriptions are useful is for Keying Sets, where it's
now possible to see the descriptions for what each Keying Set
does/affects/requires. Again, this is more helpful than just the generic
tooltip, which would be something like "Insert keyframes using a Keying Set".

6 years agoPatch [#32639] Pose breakdown confirm by Return Key
Joshua Leung [Mon, 8 Oct 2012 04:42:06 +0000 (04:42 +0000)]
Patch [#32639] Pose breakdown confirm by Return Key

Thanks Julien DUROURE (julien)

6 years agofix [#32799] right click select in filebrowser breaks opening folders
Campbell Barton [Mon, 8 Oct 2012 03:33:02 +0000 (03:33 +0000)]
fix [#32799] right click select in filebrowser breaks opening folders
own regression since 2.63,

The path length for FILE_OT_select_bookmark was too short as well (256 --> FILE_MAXDIR).

6 years agoBGE: Setting up the RAS_ICanvas interface as the primary way to alter the OpenGL
Mitchell Stokes [Mon, 8 Oct 2012 03:28:11 +0000 (03:28 +0000)]
BGE: Setting up the RAS_ICanvas interface as the primary way to alter the OpenGL
viewport. This helps to eliminate OpenGL calls in weird places like the physics
code and to reduce glGet calls, which are expensive.

There should be no functional changes (except maybe a very slight speed improvement).

6 years agoadd option to build without blenders default avi codec.
Campbell Barton [Mon, 8 Oct 2012 02:51:42 +0000 (02:51 +0000)]
add option to build without blenders default avi codec.

6 years agofix for crash in the sequencer if the video file fails to load (missing NULL check...
Campbell Barton [Mon, 8 Oct 2012 02:20:47 +0000 (02:20 +0000)]
fix for crash in the sequencer if the video file fails to load (missing NULL check on imbuf),

all other uses of sequencer_imbuf_assign_spaces() check for NULL or assume IMB_allocImBuf() succeeds.

6 years agoBGE: Disable depth testing when drawing the overhead profile information in the Blend...
Mitchell Stokes [Mon, 8 Oct 2012 01:25:21 +0000 (01:25 +0000)]
BGE: Disable depth testing when drawing the overhead profile information in the Blenderplayer. This keeps the text from being blocked by geometry in the scene.

6 years agoquiet invalid warning in ffmpeg_log_callback with -Wmissing-format-attribute.
Campbell Barton [Mon, 8 Oct 2012 01:05:37 +0000 (01:05 +0000)]
quiet invalid warning in ffmpeg_log_callback with -Wmissing-format-attribute.

6 years agocode cleanup: replace VECADDISFAC with math function.
Campbell Barton [Mon, 8 Oct 2012 00:51:55 +0000 (00:51 +0000)]
code cleanup: replace VECADDISFAC with math function.

6 years agominor edit to type checking macro to avoid clangs static checker tagging the var...
Campbell Barton [Sun, 7 Oct 2012 23:58:57 +0000 (23:58 +0000)]
minor edit to type checking macro to avoid clangs static checker tagging the var as possibly NULL.

6 years agoGrease Pencil py-api
Dan Eicher [Sun, 7 Oct 2012 20:07:30 +0000 (20:07 +0000)]
Grease Pencil py-api

* new/remove for GPencil frames/strokes/
* add/pop for points
* clear for frame/layer & grease_pencil
* copy for frame

+ fix for free_gpencil_frames() not clearing the active frame

6 years agoBGE: When applying movement to an object with the Character physics type, use the...
Mitchell Stokes [Sun, 7 Oct 2012 19:10:03 +0000 (19:10 +0000)]
BGE: When applying movement to an object with the Character physics type, use the btKinematicCharacterController's setWalkDirection() instead of moving the physics object ourselves. This reduces issues with tunneling (the character going through other objects).

6 years agoFix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in wm_window_title.
Sv. Lockal [Sun, 7 Oct 2012 15:39:47 +0000 (15:39 +0000)]
Fix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in wm_window_title.

6 years agoRevert fix for #31806, needs a better solution, can hang compiling some shaders.
Brecht Van Lommel [Sun, 7 Oct 2012 14:15:50 +0000 (14:15 +0000)]
Revert fix for #31806, needs a better solution, can hang compiling some shaders.

6 years agostyle cleanup: line length,
Campbell Barton [Sun, 7 Oct 2012 14:00:18 +0000 (14:00 +0000)]
style cleanup: line length,
rename V3D_PROJ_RET_SUCCESS ->  V3D_PROJ_RET_OK

6 years agocode cleanup: grease pencil eraser had duplicated logic for getting screen coords...
Campbell Barton [Sun, 7 Oct 2012 12:31:56 +0000 (12:31 +0000)]
code cleanup: grease pencil eraser had duplicated logic for getting screen coords of a point, move into a static function.

6 years agocode cleanup: use checks for empty rather then size in the BGE
Campbell Barton [Sun, 7 Oct 2012 12:28:19 +0000 (12:28 +0000)]
code cleanup: use checks for empty rather then size in the BGE

6 years agofix for logical errors
Campbell Barton [Sun, 7 Oct 2012 10:01:54 +0000 (10:01 +0000)]
fix for logical errors
- range check on hair_velocity_smoothing() was off by one.
- cloth sim parm's are used before NULL check in readfile.c

6 years agostyle cleanup: if();
Campbell Barton [Sun, 7 Oct 2012 09:48:59 +0000 (09:48 +0000)]
style cleanup: if();

6 years agocode cleanup: glare stream operation was setting alpha array twice.
Campbell Barton [Sun, 7 Oct 2012 07:38:22 +0000 (07:38 +0000)]
code cleanup: glare stream operation was setting alpha array twice.

6 years agoadd type checking for more error prone macros.
Campbell Barton [Sun, 7 Oct 2012 07:27:09 +0000 (07:27 +0000)]
add type checking for more error prone macros.

6 years agorename avi files (endian.h is common linux include).
Campbell Barton [Sun, 7 Oct 2012 06:27:31 +0000 (06:27 +0000)]
rename avi files (endian.h is common linux include).

6 years agopatch [#32556] Stupid endian conversion in avi format
Campbell Barton [Sun, 7 Oct 2012 06:06:28 +0000 (06:06 +0000)]
patch [#32556] Stupid endian conversion in avi format
from Andreas Schwab (schwab)

modified to use code from BLI_endian_switch.

6 years agoOptimization for endian switching, but shifting is a lot faster then using a temp...
Campbell Barton [Sun, 7 Oct 2012 04:21:37 +0000 (04:21 +0000)]
Optimization for endian switching, but shifting is a lot faster then using a temp char (approx 18x speedup on my system).

6 years agopatch [#32791] Spelling mistakes corrected.
Campbell Barton [Sun, 7 Oct 2012 03:26:30 +0000 (03:26 +0000)]
patch [#32791] Spelling mistakes corrected.
from Sunny Gogoi (darkowlzz)

6 years agoFix render engine API compatibility breakage in end_result, this parameter
Brecht Van Lommel [Sun, 7 Oct 2012 00:30:31 +0000 (00:30 +0000)]
Fix render engine API compatibility breakage in end_result, this parameter
should have been optional.

6 years agoBGE: Committing patch [#31442] "API improvements: Group references python api, for...
Mitchell Stokes [Sun, 7 Oct 2012 00:09:02 +0000 (00:09 +0000)]
BGE: Committing patch [#31442] "API improvements: Group references python api, for better control over groups and instances" by Martin Sell (moerdn). This patch adds a member and a group property to KX_GameObject:
  * KX_GameObject.member returns the list of group members if the object is a group object, otherwise None is returned
  * KX_GameObject.group returns the group object that the object belongs to or None if the object is not part of a group

6 years agoForce USE_QTKIT for osx 64bit
Jens Verwiebe [Sat, 6 Oct 2012 18:53:57 +0000 (18:53 +0000)]
Force USE_QTKIT for osx 64bit

6 years agoFix for WITH_LLVM cmake option: When using WITH_CYCLES_OSL this option is forced...
Lukas Toenne [Sat, 6 Oct 2012 18:40:05 +0000 (18:40 +0000)]
Fix for WITH_LLVM cmake option: When using WITH_CYCLES_OSL this option is forced ON, but this change was not cached yet. Thanks to Jens Verwiebe for providing this fix.

6 years agoAvoid unecessary minimizer calculations in dualcon
Nicholas Bishop [Sat, 6 Oct 2012 18:28:38 +0000 (18:28 +0000)]
Avoid unecessary minimizer calculations in dualcon

* The minimize() function, which solves a least-squares problem, is
  only needed for sharp remesh mode, but was being calculated for
  smooth and blocks modes as well. Disabling this calculation when
  it's not needed gives a big performance boost.

6 years agoCode cleanups for dualcon octree
Nicholas Bishop [Sat, 6 Oct 2012 18:28:34 +0000 (18:28 +0000)]
Code cleanups for dualcon octree

* Move InternalNode operators from Octree class into InternalNode
  struct

* Constify various member functions

6 years agoIncrease maximum octree depth to 12
Nicholas Bishop [Sat, 6 Oct 2012 17:51:52 +0000 (17:51 +0000)]
Increase maximum octree depth to 12

Note that this is just an RNA change, underlying dualcon octree
already supports even higher values.

6 years agoCycles / OSL:
Thomas Dinges [Sat, 6 Oct 2012 17:11:53 +0000 (17:11 +0000)]
Cycles / OSL:
* OSL UI message did not show up when device type was GPU, but User Preferences were None. Also remove experimental check, more convenient for testing.

6 years agoImprove flat-shaded VBO drawing for sculpt meshes
Nicholas Bishop [Sat, 6 Oct 2012 16:52:52 +0000 (16:52 +0000)]
Improve flat-shaded VBO drawing for sculpt meshes

Separate vertex copies are now made for flat-shading, such that the
normal is correctly flat-shaded. The element index buffer is not
created in this case.

6 years agoCode cleanups for PBVH GPU buffers
Nicholas Bishop [Sat, 6 Oct 2012 16:42:11 +0000 (16:42 +0000)]
Code cleanups for PBVH GPU buffers

* De-duplicate GPU code to check if VBO should be used.

* Add a flag to indicate if the buffer should be drawn smooth or not,
  rather than checking each time the node is drawn.

6 years agoFix for a case of 'static initialization fiasco' with OSL closure variables. The...
Lukas Toenne [Sat, 6 Oct 2012 16:28:02 +0000 (16:28 +0000)]
Fix for a case of 'static initialization fiasco' with OSL closure variables. The parameter lists are using OIIO::TypeDesc static standards, which are also static variables. With static OSL libraries these are not initialized when the closure parameter lists are initialized, so OSL rejects the closure types.

Putting static initialization into functions works just as well, but ensures the OIIO::TypeDesc access is delayed until initialization is complete.

6 years agoFix for incomplete loading of liboslexec static library. This is needed in order...
Lukas Toenne [Sat, 6 Oct 2012 14:35:48 +0000 (14:35 +0000)]
Fix for incomplete loading of liboslexec static library. This is needed in order to provide the osl_allocate_closure_component function for LLVM.

6 years agoadded simple checker for array sizes, uses clang to parse C/C++,
Campbell Barton [Sat, 6 Oct 2012 12:36:21 +0000 (12:36 +0000)]
added simple checker for array sizes, uses clang to parse C/C++,

Warns if an array is passed to a function where the array is declared larger, eg float[2] argument is passed function defined as float[3], (or a greater size).

Existing free static checkers dont do this from what I can tell.

6 years agofix writing past array bounds in imagewraposa().
Campbell Barton [Sat, 6 Oct 2012 12:04:09 +0000 (12:04 +0000)]
fix writing past array bounds in imagewraposa().

also correct array sizes in othere areas.

6 years agofix reading past array bounds for nearest_uv_between() and draw_tracking_tracks().
Campbell Barton [Sat, 6 Oct 2012 12:00:54 +0000 (12:00 +0000)]
fix reading past array bounds for nearest_uv_between() and draw_tracking_tracks().

6 years agoFix for UV texture coordinate problem in cycles, after recent fix.
Brecht Van Lommel [Sat, 6 Oct 2012 11:52:54 +0000 (11:52 +0000)]
Fix for UV texture coordinate problem in cycles, after recent fix.

6 years agoBetter support for LLVM linking, needed for static OSL library.
Lukas Toenne [Sat, 6 Oct 2012 11:00:45 +0000 (11:00 +0000)]
Better support for LLVM linking, needed for static OSL library.

This adds cmake code for LLVM on linux and updates the cmake code used for OSX.
LLVM is linked like other external libraries now, by using the setup_liblinks and setup_libdirs macros instead of the PLATFORM_LINKFLAGS variable.
The use of llvm-config for getting a list of libraries can also be simplified quite a bit.

Caching the LLVM_DIRECTORY and LLVM_VERSION strings could be nicer though.

6 years agoColor Management: fixed loading configuration from non-ascii paths
Sergey Sharybin [Sat, 6 Oct 2012 07:03:03 +0000 (07:03 +0000)]
Color Management: fixed loading configuration from non-ascii paths

Used the same hack as BLI gzip is using -- calculate short path and
send it to OCIO library.

6 years agoBugfix [#32789] (Minor) Different types used between func declaration and
Joshua Leung [Sat, 6 Oct 2012 03:56:09 +0000 (03:56 +0000)]
Bugfix [#32789] (Minor) Different types used between func declaration and
definition (EDBM_selectmode_convert())

Cheers to Sebastian Nell (codemanx) for catching this.

6 years agotoggle cut through in the knife tool now refreshes (before you had to wave the mouse...
Campbell Barton [Sat, 6 Oct 2012 03:34:52 +0000 (03:34 +0000)]
toggle cut through in the knife tool now refreshes (before you had to wave the mouse about to see the result).
also remove print from last commit.

6 years agofix [#32779] Bmesh module: assigning to bm.select_mode crashes Blender if bmesh is...
Campbell Barton [Sat, 6 Oct 2012 03:33:11 +0000 (03:33 +0000)]
fix [#32779] Bmesh module: assigning to bm.select_mode crashes Blender if bmesh is empty

was missing set typecheck

6 years agoadd mball_foreachScreenElem() and use for lasso & circle selection, also utility...
Campbell Barton [Sat, 6 Oct 2012 03:02:14 +0000 (03:02 +0000)]
add mball_foreachScreenElem() and use for lasso & circle selection, also utility metaball functions to (de)select all.

6 years agoadd circle select for metaballs
Campbell Barton [Sat, 6 Oct 2012 01:30:49 +0000 (01:30 +0000)]
add circle select for metaballs

6 years agodisable padding warning for DNA, gave problems with struct bounds padding which DNA...
Campbell Barton [Sat, 6 Oct 2012 00:42:30 +0000 (00:42 +0000)]
disable padding warning for DNA, gave problems with struct bounds padding which DNA ignores.
tag operator callbacks as needing their return values used. These are not directly called in many places so the inconvenience is minimal.

6 years agoGrease Pencil notifier/listener cleanup
Dan Eicher [Fri, 5 Oct 2012 19:51:11 +0000 (19:51 +0000)]
Grease Pencil notifier/listener cleanup

As suggested by Campbell on the IRC gave grease pencil its own notifier type (NC_GPENCIL) and made the makesrna notifier functions actually update properly.

Also got the #ifdef'd GreasePencil.layers.[new/remove] functions working.

6 years agouse pose_foreachScreenBone for pose lasso and circle select
Campbell Barton [Fri, 5 Oct 2012 17:51:44 +0000 (17:51 +0000)]
use pose_foreachScreenBone for pose lasso and circle select

6 years agoFix part of cycles/osl light pass rendering, transmission still not correct.
Brecht Van Lommel [Fri, 5 Oct 2012 17:17:19 +0000 (17:17 +0000)]
Fix part of cycles/osl light pass rendering, transmission still not correct.

6 years agoadd armature_foreachScreenBone(), use for lasso and circle select.
Campbell Barton [Fri, 5 Oct 2012 17:07:02 +0000 (17:07 +0000)]
add armature_foreachScreenBone(), use for lasso and circle select.
also add boundbox checking for lasso select.

6 years agocode cleanup: de-duplicate enum.
Campbell Barton [Fri, 5 Oct 2012 15:48:39 +0000 (15:48 +0000)]
code cleanup: de-duplicate enum.

6 years agocode cleanup: use functions to initialize selection user data structs, use radius...
Campbell Barton [Fri, 5 Oct 2012 15:44:11 +0000 (15:44 +0000)]
code cleanup: use functions to initialize selection user data structs, use radius-squared for circle select comparisons.
edge_fully_inside_rect() & edge_inside_rect() args were shorts when all callers were passing ints.

6 years agoCode cleanup
Joshua Leung [Fri, 5 Oct 2012 14:56:04 +0000 (14:56 +0000)]
Code cleanup
* Added/fixed some comments
* Swapped order that invoke/exec calls are defined in the operator definitions
to reflect flow better

6 years agoFix generated texture coordinate issue after "from dupli" option was added.
Brecht Van Lommel [Fri, 5 Oct 2012 14:54:32 +0000 (14:54 +0000)]
Fix generated texture coordinate issue after "from dupli" option was added.

6 years agoFollow Path Constraint - "Animate Path" Operator
Joshua Leung [Fri, 5 Oct 2012 14:51:35 +0000 (14:51 +0000)]
Follow Path Constraint - "Animate Path" Operator

Added a convenience operator to the Follow Path constraint which adds a F-Curve
for the path (or the operator's "fixed position" value if no path is assigned),
with options for setting the start frame and length of motion. This makes it
easier for common users to just set up a quick follow-path animation where the
camera (e.g. flying around a set over certain number of frames).

A key advantage of this is that it takes care of the underlying math required
for setting up the generator curve accordingly (I've got some plans for making
this a bit friendlier to use later). Now, animating the paths is a one-click
operation, with the start and length properties able to be controlled using the
operator properties.

6 years agoWhitespace edits
Joshua Leung [Fri, 5 Oct 2012 14:05:49 +0000 (14:05 +0000)]
Whitespace edits

6 years agoWarning indicators for animators when Auto Keying is enabled during transform
Joshua Leung [Fri, 5 Oct 2012 13:22:09 +0000 (13:22 +0000)]
Warning indicators for animators when Auto Keying is enabled during transform

Recently on the bf-funboard list, there have been some requests for clearer
indications for animators that autokeying has been enabled when transforming so
that corrective action can be taken sooner if this wasn't expected. This is
especially important in distributed+collaborative environments where multiple
artists may work on a single shot file: someone working on a shot from
another animator may not be aware that autokeying was enabled, thus accidentally
setting a whole bunch of extra keyframes.

In this current incarnation, we display using red (not hardcoded, but using an
existing theme color) a solid 1px border around the 3D view while transforming
with autokeying enabled. In addition to the border, a blinking indicator (record
icon + "Auto Keying On" text) appear in the top right corner, as inspired by the
traditional recording indicator icons on camcorders.

6 years agoFix #32770: iTaSC IK solver not working correct with bones that have stretch with
Brecht Van Lommel [Fri, 5 Oct 2012 13:11:16 +0000 (13:11 +0000)]
Fix #32770: iTaSC IK solver not working correct with bones that have stretch with
have all rotation axes disabled.

6 years agoTypo fix: Tooltip for "Offset Factor" for FollowPath constraint referred to
Joshua Leung [Fri, 5 Oct 2012 13:06:36 +0000 (13:06 +0000)]
Typo fix: Tooltip for "Offset Factor" for FollowPath constraint referred to
"bone" instead of "curve"

6 years agoClean up in "add object" code:
Bastien Montagne [Fri, 5 Oct 2012 12:59:09 +0000 (12:59 +0000)]
Clean up in "add object" code:
* Get rid of ED_object_add_generic_invoke() and all invoke callbacks using it, it was doing nothing exec() callbacks would not do. In fact, its only action (setting part of common add ops properties, like loc, layers, etc.) was needed too by direct exec call, so it was done twice in case of using invoke()!
* Replace custom invoke code for metaballs by WM_menu_invoke helper (as already used by lamps).
* Add a new OBJECT_OT_empty_add op, to allow direct addition of empties of a given drawtype.
* And some general code cleanup (like trailing spaces, empty lines, ...).

Did quite a bunch of tests/verifications, but obviously could not tackle all possible scenarios... Anyway, if any, bugs should arize quite quickly (but I don’t expect any! :p ).

6 years agoFix #32734: Object.to_mesh() gave wrong user count for curves/surface/text objects.
Brecht Van Lommel [Fri, 5 Oct 2012 12:18:09 +0000 (12:18 +0000)]
Fix #32734: Object.to_mesh() gave wrong user count for curves/surface/text objects.

6 years agoFix related to #32734: crash saving blend file from render_pre callback. Not
Brecht Van Lommel [Fri, 5 Oct 2012 12:18:07 +0000 (12:18 +0000)]
Fix related to #32734: crash saving blend file from render_pre callback. Not
sure I want to recommend anyone doing this, but the fix is simple.

6 years agoFix #32735: GLSL shadows not working together with X-ray drawing.
Brecht Van Lommel [Fri, 5 Oct 2012 12:18:04 +0000 (12:18 +0000)]
Fix #32735: GLSL shadows not working together with X-ray drawing.

6 years agomore improvements to logic for selection/projection: replace ED_view3d_project_short_...
Campbell Barton [Fri, 5 Oct 2012 10:28:36 +0000 (10:28 +0000)]
more improvements to logic for selection/projection: replace ED_view3d_project_short_global() with ED_view3d_project_int_object() in some places.

6 years agoFixed compilation error on widows
Sergey Sharybin [Fri, 5 Oct 2012 10:05:26 +0000 (10:05 +0000)]
Fixed compilation error on widows

Was caused by mixing up own C-API typedefs with OCIO's

6 years agoBooleans: epsilon for planar checks seems a bit too small for single precision math
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?

6 years agoFix #32707: texture preview not loaded
Sergey Sharybin [Fri, 5 Oct 2012 07:17:45 +0000 (07:17 +0000)]
Fix #32707: texture preview not loaded

6 years agoSome effect-less code cleanup...
Bastien Montagne [Fri, 5 Oct 2012 07:05:52 +0000 (07:05 +0000)]
Some effect-less code cleanup...

6 years agoBugfix [#32760] Crash on entering pose mode if motion paths have no baked points
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.

6 years agofixes/minor improvements to circle select in armature and pose mode.
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.

6 years agofix for circle select ignoring lock selection option for pose and edit modes, added...
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

6 years agoreplace ED_view3d_project_short_* with ED_view3d_project_int_*, when the result was...
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.

6 years agoknife tool: avoid sqrt's for length comparison, and define KNIFE_FLT_EPS rather than...
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).

6 years agofix for bug in loop select, picking the active vert/edge/face was using global space...
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().

6 years agoreplace most uses of ED_view3d_project_float_noclip() with ED_view3d_project_float_gl...
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

6 years agoreplace ED_view3d_project_float with ED_view3d_project_float_global
Campbell Barton [Fri, 5 Oct 2012 03:20:14 +0000 (03:20 +0000)]
replace ED_view3d_project_float with ED_view3d_project_float_global

6 years agoImprovements for knife tool execute function (code was a bit sloppy & could leak...
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.

6 years agocode cleanup: quiet warnings and use define for transform snap max distance.
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.

6 years agoadd ED_view3d_project_float_global, ED_view3d_project_float_object, ED_view3d_project...
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.

6 years ago* Fix Scons build when OCIO is disabled.
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).

6 years agoCycles: add "From Dupli" option for texture coordinate node. This gets the
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.

6 years agoMesh Deform Modifier: binding is now accelerated with a BVH tree, can make it
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.

6 years agoQuick fix for [#32764] Some new object types are added at the origin instead of the...
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.

6 years agoFix #32763: Image flickering appears if Movie Clip Editor and compositor opened
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.

6 years agoFix #31806: cycles crash rendering a particular node setup with multiple mix/add
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.