7 years agoFix #35337: sculpt performance regression, partial redraw was not working anymore
Brecht Van Lommel [Mon, 13 May 2013 13:32:42 +0000 (13:32 +0000)]
Fix #35337: sculpt performance regression, partial redraw was not working anymore
due to paint cursor redraw problem.

7 years agonew bridge tool: fix for cases with it would crash when existing faces matched the...
Campbell Barton [Mon, 13 May 2013 12:58:25 +0000 (12:58 +0000)]
new bridge tool: fix for cases with it would crash when existing faces matched the newly created ones.

7 years agoAdded RNA access to mask spline's points.
Sergey Sharybin [Mon, 13 May 2013 12:24:35 +0000 (12:24 +0000)]
Added RNA access to mask spline's points.

Straightforward patch, point tructure was already defined,
was just matter of defining RNA collection property for
mask spline.

Available via: mask.layers[0].splines[0].points

7 years agofix [#35308] Edge Split operator splits unselected edges
Campbell Barton [Mon, 13 May 2013 12:09:21 +0000 (12:09 +0000)]
fix [#35308] Edge Split operator splits unselected edges

7 years agoFix #35330: Blur node crash due to size overflow
Sergey Sharybin [Mon, 13 May 2013 11:52:04 +0000 (11:52 +0000)]
Fix #35330: Blur node crash due to size overflow

Issue was caused by too hight value used for size,
which came from infinite Z-buffer point.

Solved the crash by clamoing maximal gaussian table
radius to 30K, which seems to be reasonable.

7 years agofix for bridge flipping, loops pointing away from eachother (over 90d difference...
Campbell Barton [Mon, 13 May 2013 11:21:33 +0000 (11:21 +0000)]
fix for bridge flipping, loops pointing away from eachother (over 90d difference) would flip
now check the loops are facing eachother, taking their relative positions into account.

7 years agoC forbids having variables declarations in the middle of code block.
Sergey Sharybin [Mon, 13 May 2013 11:20:32 +0000 (11:20 +0000)]
C forbids having variables declarations in the middle of code block.

7 years agoFix #35329: action actuator crash with replacemesh, pointers got outdated.
Brecht Van Lommel [Mon, 13 May 2013 10:54:57 +0000 (10:54 +0000)]
Fix #35329: action actuator crash with replacemesh, pointers got outdated.
No need to cache this, creating it is quick.

7 years agoFix #35327: compositing Z combine node was not giving the same result as previous
Brecht Van Lommel [Mon, 13 May 2013 10:40:42 +0000 (10:40 +0000)]
Fix #35327: compositing Z combine node was not giving the same result as previous
versions when the Z values were the same, Also was inconsistent between full sample

7 years agoHeaders cleanup.
Sergey Sharybin [Mon, 13 May 2013 09:51:36 +0000 (09:51 +0000)]
Headers cleanup.

7 years agoAdded an entry for Reroute node in the node categories. Reroute is not a "real" node...
Lukas Toenne [Mon, 13 May 2013 09:32:17 +0000 (09:32 +0000)]
Added an entry for Reroute node in the node categories. Reroute is not a "real" node, but for users it's a bit hard to find, so a menu entry is ok for now.

Eventually a context menu for nodes could be a nicer solution: right-click on node link opening a popup with operators for the node, socket or link under cursor, including option "Insert Reroute".

7 years agoNo end point in UI messages...
Bastien Montagne [Mon, 13 May 2013 07:32:48 +0000 (07:32 +0000)]
No end point in UI messages...

7 years agofix [#35335] Crash when rendering a text object with a remesh modifier and a material...
Campbell Barton [Mon, 13 May 2013 07:13:28 +0000 (07:13 +0000)]
fix [#35335] Crash when rendering a text object with a remesh modifier and a material texture

7 years agochange to drag-lock behavior, only use with outliner (this way layers can be changed...
Campbell Barton [Mon, 13 May 2013 06:51:13 +0000 (06:51 +0000)]
change to drag-lock behavior, only use with outliner (this way layers can be changed all at once)

7 years agofix for toggle drag not working in popups (move layers for eg)
Campbell Barton [Mon, 13 May 2013 06:23:50 +0000 (06:23 +0000)]
fix for toggle drag not working in popups (move layers for eg)

7 years agofix for building with mingw
Campbell Barton [Mon, 13 May 2013 05:40:51 +0000 (05:40 +0000)]
fix for building with mingw

7 years agoBGE: Fix for [#35320] "Crash When Adding Property without Setting Material" reported...
Mitchell Stokes [Mon, 13 May 2013 05:37:45 +0000 (05:37 +0000)]
BGE: Fix for [#35320] "Crash When Adding Property without Setting Material" reported by Leon Cheung.

Adding an extra NULL check to draw_mesh_text() to avoid accessing a NULL material array.

7 years agoBGE: I had the assert in stubs.c backwards. However, it looks like the Blenderplayer...
Mitchell Stokes [Mon, 13 May 2013 04:08:16 +0000 (04:08 +0000)]
BGE: I had the assert in stubs.c backwards. However, it looks like the Blenderplayer ends up making a bad level call on startup. So, I've added a way to easily turn the asserts on and off (default to off) to allow people to still hunt down bad level calls without interfering with other people's debug builds.

7 years agoBGE: Adding an assert(true); to every function defined in stubs.c. This should help...
Mitchell Stokes [Mon, 13 May 2013 02:59:13 +0000 (02:59 +0000)]
BGE: Adding an assert(true); to every function defined in stubs.c. This should help in hunting down errors caused by code calling into stubs.c, which shouldn't happen while the Blenderplayer is running. Remember, stubs.c is just to help with linking, these calls should never be used!

7 years agoBGE: Tweaking the linking order of the Blenderplayer (CMake) to avoid needing to...
Mitchell Stokes [Mon, 13 May 2013 02:49:18 +0000 (02:49 +0000)]
BGE: Tweaking the linking order of the Blenderplayer (CMake) to avoid needing to put BLI code in stubs.c. This fixes an infinite loop with the Edge Split modifier in the Blenderplayer. SCons still has to be tested.

7 years agoadd missing STACK_INIT, also quiet float <> double conversion warnings.
Campbell Barton [Mon, 13 May 2013 02:10:59 +0000 (02:10 +0000)]
add missing STACK_INIT, also quiet float <> double conversion warnings.

7 years agofix [#35326] Even edge slide on open edge crashes Blender
Campbell Barton [Mon, 13 May 2013 02:01:35 +0000 (02:01 +0000)]
fix [#35326] Even edge slide on open edge crashes Blender

7 years agoForgot this in one of previous commits
Sergey Sharybin [Sun, 12 May 2013 22:40:12 +0000 (22:40 +0000)]
Forgot this in one of previous commits

Idea here is to be able to have all files opened in IDE
and not confuse it by the same function implemented in
multiple files.

7 years agoCompilation fix for recent commit.
Sergey Sharybin [Sun, 12 May 2013 22:30:34 +0000 (22:30 +0000)]
Compilation fix for recent commit.

7 years agoRemplace bunch of annoying ifdefs in tracking.c with a
Sergey Sharybin [Sun, 12 May 2013 22:17:37 +0000 (22:17 +0000)]
Remplace bunch of annoying ifdefs in tracking.c with a

Makes code in much easier to understand and modify,
without worring to breck compulation with Libmv disabled.

It is still possible compilation will break due to libmv-capi
changes, but that's not happening so much often.

7 years agoFix ctrl+(shift)+tab shortcut key not working on OS X after recent bugfix to
Brecht Van Lommel [Sun, 12 May 2013 22:15:05 +0000 (22:15 +0000)]
Fix ctrl+(shift)+tab shortcut key not working on OS X after recent bugfix to
interact better with system shortcuts.

This is a special shortcut for switching between views and does not get
delivered directly to our view when we pass it through the application key
event handling path. We only have a single OpenGL view, so there's no need to
pass it on to the application, instead just interpret it directly.

7 years agoFix for keyed marker search not happening correct in some cases
Sergey Sharybin [Sun, 12 May 2013 21:57:57 +0000 (21:57 +0000)]
Fix for keyed marker search not happening correct in some cases

Was an heuristic failure writen for cases when there's no keyframe
in desired direction. Shall all be fine now.

7 years agoSpeedup for rendered viewport for blender internal
Sergey Sharybin [Sun, 12 May 2013 19:01:23 +0000 (19:01 +0000)]
Speedup for rendered viewport for blender internal

Display code was a bottleneck here, so made it so render
result draw follows Image Draw settings.

7 years agoFix for "no functional changes" commit
Sergey Sharybin [Sun, 12 May 2013 18:50:39 +0000 (18:50 +0000)]
Fix for "no functional changes" commit

Apparently eitehr merge conflict happened, or i had
too much depression in blood, but first camera was
just wrong after reconstruction.

7 years agoViewport Render Internal:
Ton Roosendaal [Sun, 12 May 2013 17:16:43 +0000 (17:16 +0000)]
Viewport Render Internal:

Animated characters were not rendering yet, the render code for it
caused a signal for re-draw and re-render, in eternal loop.

Solved by forcing viewport render to use the same derivedmesh data
as for 3d viewport drawing. Faster too.

7 years agoCycles / Orthographic Camera:
Thomas Dinges [Sun, 12 May 2013 17:14:01 +0000 (17:14 +0000)]
Cycles / Orthographic Camera:
* Avoid one unneeded division by 1.0f and save one variable assignment.

7 years agoUpdate bundled version of libmv
Sergey Sharybin [Sun, 12 May 2013 17:06:00 +0000 (17:06 +0000)]
Update bundled version of libmv

- Ensures fix for msvc2012 is applying correct.
- Some code cleanup to match libmv's code style.
- Do not include points which were intersect
  behind the camera to a reconstruction.
- Includes changes needed for keyframe selection.

7 years agoFix build error on MinGW64
Antony Riakiotakis [Sun, 12 May 2013 16:52:42 +0000 (16:52 +0000)]
Fix build error on MinGW64

7 years agoRefine markers position operator
Sergey Sharybin [Sun, 12 May 2013 16:04:14 +0000 (16:04 +0000)]
Refine markers position operator

This operator will run a tracker from previous
keyframe to current frame for all selected markers.
Current markers positions are considering initial
position guess which could be updated by a tracker
for better match.

Useful in cases when feature disappears from the
frame and then appears again. Usage in this case
is the following:

- When feature point re-appeared on frame, manully
  place marker on it.
- Use Refine Markers operation (which is in Track
  panel) to allow tracker to find a better match.

Depending on direction of tracking use either
Forwards or Backwards refining. It's easy: if
trackign happens forwards, use Refine Frowards,
otherwise use Refine Backwards :)

7 years agoDocumentation for functions inside tracking.c
Sergey Sharybin [Sun, 12 May 2013 16:04:08 +0000 (16:04 +0000)]
Documentation for functions inside tracking.c

Additional changes:

- Cleaned up sources to reduce mess in some
  big functions.
- Removed unused function from libmv c-api.
- Made functions naming more consistent.
- Use bool for internal stuff in tracking.c.

Shall be no functional changes :)

7 years agoFix for [#35238] Blender does not save custom orientations from "view"
Bastien Montagne [Sun, 12 May 2013 15:52:05 +0000 (15:52 +0000)]
Fix for [#35238] Blender does not save custom orientations from "view"

Actually more a feature request... Now create orientations operator has an additional option, use_view, when this one is enabled it will use current view instead of active object to create the new space.

Also made some cleanup (made some funcs static).

7 years agoRender Layers UI
Pablo Vazquez [Sun, 12 May 2013 15:25:35 +0000 (15:25 +0000)]
Render Layers UI
Expand the Layers panel by default on Blender Internal as well.

7 years agofix for crash with new bridge method used with invalid edge-loops.
Campbell Barton [Sun, 12 May 2013 15:24:02 +0000 (15:24 +0000)]
fix for crash with new bridge method used with invalid edge-loops.

7 years agoFix crash when closing blend files with no line styles
Sv. Lockal [Sun, 12 May 2013 14:45:15 +0000 (14:45 +0000)]
Fix crash when closing blend files with no line styles

7 years agoremove BLI_array allocations from uv/color reverse, rotate.
Campbell Barton [Sun, 12 May 2013 14:45:09 +0000 (14:45 +0000)]
remove BLI_array allocations from uv/color reverse, rotate.

7 years agoCycles / Math:
Thomas Dinges [Sun, 12 May 2013 14:13:29 +0000 (14:13 +0000)]
Cycles / Math:
* Add M_2PI_F and M_4PI_F constants and use them inside the codebase.

7 years agoFix material/lamp drivers not working sometimes when they were used by multiple
Brecht Van Lommel [Sun, 12 May 2013 13:33:20 +0000 (13:33 +0000)]
Fix material/lamp drivers not working sometimes when they were used by multiple
objects, found while looking into another bug.

7 years agoFix for [#35224] Transform Orientation - order inconsistency
Bastien Montagne [Sun, 12 May 2013 13:16:11 +0000 (13:16 +0000)]
Fix for [#35224] Transform Orientation - order inconsistency

Fix turned out to remove as much "manual UI" from 3D view header as possible. Mode selector and all transform manipulators/orientations stuff are now RNA-based UI (leaving basically only edit mesh select modes with custom handlers, as they have some quite specific features).

To achieve this, four main modifications were done:
* enum-operator-generated menus are now MENU (i.e. dropdown lists) in headers too.
* All bit-flag enums expanded in ROW buttons now have a handling consistent with e.g. layers, or what we already have for transform manipulators, i.e. clicking select only one element, shift-click to select multiple ones.
* Consequently, the three RNA booleans manipulators flags are merged into a single bit-flag enum (yes, this is also an API change, though I doubt many scripts use it).
* Now the width of enum-based dropdown lists is computed from longest item name in enum, no more from a dummy place holder string (when no label/name is given).

All this allows to remove some code from 3DView/transform areas, that was actually mostly duplicating RNA/operator one.

Also done a few optimizations here and there (among others, do not pass &numitems to RNA_property_enum_items() when you do not need it, saves at least an iteration over enum items to count them).

Many thanks to Brecht for the reviews!

7 years ago3D viewport render preview:
Ton Roosendaal [Sun, 12 May 2013 13:15:41 +0000 (13:15 +0000)]
3D viewport render preview:

- Put it available as a default now (no debug value needed)
- Fixed viewport size error, viewport was badly set
  (visible with border render, property regions)
- Fixed hanging lock in conflict between drawing and initialize
  new renders.

7 years agobmesh recalculate normals - remove BLI_array reallocation, the max size of the array...
Campbell Barton [Sun, 12 May 2013 12:23:44 +0000 (12:23 +0000)]
bmesh recalculate normals - remove BLI_array reallocation, the max size of the array is known.
replace with STACK_* macros (moved to BLI_utildefines.h).

7 years agoremove wanton use of array reallocation for mesh smoothing.
Campbell Barton [Sun, 12 May 2013 12:06:08 +0000 (12:06 +0000)]
remove wanton use of array reallocation for mesh smoothing.

7 years agobridge tool: add support for face selection.
Campbell Barton [Sun, 12 May 2013 11:41:19 +0000 (11:41 +0000)]
bridge tool: add support for face selection.

7 years agobridge option to bridge loop pairs,
Campbell Barton [Sun, 12 May 2013 10:00:15 +0000 (10:00 +0000)]
bridge option to bridge loop pairs,
change the operator option to an enum: Connect Loops - open/closed/pairs
because it was getting confusing having all as bools.

7 years agoFix #35319: python 2x2 matrix inverse and adjugate were wrong.
Brecht Van Lommel [Sun, 12 May 2013 09:26:02 +0000 (09:26 +0000)]
Fix #35319: python 2x2 matrix inverse and adjugate were wrong.

7 years agoImage paint: 2D painting now supports texture masks and does masking more
Brecht Van Lommel [Sun, 12 May 2013 09:14:13 +0000 (09:14 +0000)]
Image paint: 2D painting now supports texture masks and does masking more
consistent with projection painting.

Also did some refactoring of this code, moving the brush image creation code
out of brush.c and making it consistent with image updating code.

7 years agoFix #35317: crash with boolean modifier using an object whose library linked
Brecht Van Lommel [Sun, 12 May 2013 09:14:07 +0000 (09:14 +0000)]
Fix #35317: crash with boolean modifier using an object whose library linked
mesh datablock went missing.

7 years agoOptimize face-select drawing (weight/vertex paint mode face selection)
Campbell Barton [Sun, 12 May 2013 08:42:24 +0000 (08:42 +0000)]
Optimize face-select drawing (weight/vertex paint mode face selection)
with bmesh theres no need for edge-hash lookups, replace EdgeHash with BLI_bitmap.

7 years agoquiet sign conversion warnings and reduce sign conversion for BLI_string, and BLF.
Campbell Barton [Sun, 12 May 2013 06:33:21 +0000 (06:33 +0000)]
quiet sign conversion warnings and reduce sign conversion for BLI_string, and BLF.

7 years agocorrect assert for driver evaluation,
Campbell Barton [Sun, 12 May 2013 05:54:33 +0000 (05:54 +0000)]
correct assert for driver evaluation,
also add asserts for listbase functions when the list is NULL, and use noreturn attribute for jpeg_error.

7 years agofix for 2 crashes in bridge tool mixing open/closed loops with different vertex counts.
Campbell Barton [Sun, 12 May 2013 04:08:45 +0000 (04:08 +0000)]
fix for 2 crashes in bridge tool mixing open/closed loops with different vertex counts.

7 years agobridge tool: support for bridging loops with different numbers of vertices.
Campbell Barton [Sun, 12 May 2013 03:36:41 +0000 (03:36 +0000)]
bridge tool: support for bridging loops with different numbers of vertices.

7 years agoadd support for bridging multiple edge loops at once.
Campbell Barton [Sat, 11 May 2013 16:20:29 +0000 (16:20 +0000)]
add support for bridging multiple edge loops at once.

7 years agoBug fix, irc submitted
Ton Roosendaal [Sat, 11 May 2013 16:15:09 +0000 (16:15 +0000)]
Bug fix, irc submitted

If you have three scenes, current is A, others are B and C.

B uses C as background, and C uses B as a background.
(which is possible via linked libraries)

If you then try to use B or C as background of A, code went to eternal loop.

7 years agoBug fix #35307
Ton Roosendaal [Sat, 11 May 2013 15:29:57 +0000 (15:29 +0000)]
Bug fix #35307

Popup menus in nodes, with nodes outside window boundary, were clipped very badly, even
causing it to fill entire window.

Now the clip code nicely translates the menu horizontally to be in view.

7 years ago- add generic edge-loop utility functions for bmesh.
Campbell Barton [Sat, 11 May 2013 14:40:03 +0000 (14:40 +0000)]
- add generic edge-loop utility functions for bmesh.
- rewrite bridge tool to use the new functions (using edge & vertex arrays was quite cumbersome).

7 years agoFix libmv build with visual studio 2012.
Brecht Van Lommel [Sat, 11 May 2013 13:10:39 +0000 (13:10 +0000)]
Fix libmv build with visual studio 2012.

Patch #35158 by Jurgen Herrmann.

7 years agoFix for previous fix, not sure it will cause issues in practice but better be
Brecht Van Lommel [Sat, 11 May 2013 12:21:33 +0000 (12:21 +0000)]
Fix for previous fix, not sure it will cause issues in practice but better be
sure to avoid invalid memory access.

7 years agoutility functions to reverse and rotate linklists.
Campbell Barton [Sat, 11 May 2013 12:18:12 +0000 (12:18 +0000)]
utility functions to reverse and rotate linklists.

7 years agoFix #35265: on OS X, pressing system shortcuts such as cmd+M or cmd+` would both
Brecht Van Lommel [Sat, 11 May 2013 10:15:27 +0000 (10:15 +0000)]
Fix #35265: on OS X, pressing system shortcuts such as cmd+M or cmd+` would both
insert text in the text editor and do the associated operation like minimizing the
window or switching windows.

The code was always doing both without trying to ensure only one is done. Now we
integrate a bit better with the event handling and pass the event to NSApp, which
then decides to handle the event itself or pass it on to the window, from where
we then send it back to be handled.

7 years agoFix #35306: cycles normal mapping not working with flat shading.
Brecht Van Lommel [Sat, 11 May 2013 09:31:58 +0000 (09:31 +0000)]
Fix #35306: cycles normal mapping not working with flat shading.

7 years agoBGE: Fix for [#34044] "Objects with no material don't have their "face image" always...
Mitchell Stokes [Sat, 11 May 2013 03:20:19 +0000 (03:20 +0000)]
BGE: Fix for [#34044] "Objects with no material don't have their "face image" always working on bge" reported by Dalai Felinto (dfelinto).

NULL materials are no longer cached.

7 years agoBGE: Fix for [#34631] "Textures bad in game mode" reported by pablo aaa (p9ablo).
Mitchell Stokes [Sat, 11 May 2013 02:43:35 +0000 (02:43 +0000)]
BGE: Fix for [#34631] "Textures bad in game mode" reported by pablo aaa (p9ablo).

Disabling caching if materials have Face Textures enabled.

7 years agoonly use OSKEY as a replacement for CTRL on Apple (was already the case in many areas).
Campbell Barton [Sat, 11 May 2013 01:12:29 +0000 (01:12 +0000)]
only use OSKEY as a replacement for CTRL on Apple (was already the case in many areas).

7 years agostyle cleanup
Campbell Barton [Sat, 11 May 2013 01:06:01 +0000 (01:06 +0000)]
style cleanup

7 years agoFix #35262: assiging shortcuts from e.g. delete or selection mode menus did not
Brecht Van Lommel [Fri, 10 May 2013 23:41:41 +0000 (23:41 +0000)]
Fix #35262: assiging shortcuts from e.g. delete or selection mode menus did not
work anymore. This was due to a bugfix to show missing shortcut keys for e.g. the
mesh > vertices > separate menu. Both should work now.

7 years agoCycles / Closures:
Thomas Dinges [Fri, 10 May 2013 22:41:24 +0000 (22:41 +0000)]
Cycles / Closures:
* Avoid some unnecessary re-declarations of closure data and simplify *_setup() functions a bit.

7 years agoFix #35289: UV layout export to image was extremely slow for large meshes. This
Brecht Van Lommel [Fri, 10 May 2013 22:05:47 +0000 (22:05 +0000)]
Fix #35289: UV layout export to image was extremely slow for large meshes. This
was due to slow implementation of slice operation for things like mesh uv data.
Made that faster now for cases where the internal storage is an array.

7 years agoFix #35273: click in empty space to deselect as used by the Maya keymap gave
Brecht Van Lommel [Fri, 10 May 2013 20:49:16 +0000 (20:49 +0000)]
Fix #35273: click in empty space to deselect as used by the Maya keymap gave
a python error when used in pose mode.

7 years agoFix #35281: search menu buttons (with an X on the right side to clear) had text
Brecht Van Lommel [Fri, 10 May 2013 20:34:35 +0000 (20:34 +0000)]
Fix #35281: search menu buttons (with an X on the right side to clear) had text
overlapping the X icon if the text was long.

7 years agoFix #35292: edge slide slow with big image in image editor. Avoid redrawing the
Brecht Van Lommel [Fri, 10 May 2013 20:17:18 +0000 (20:17 +0000)]
Fix #35292: edge slide slow with big image in image editor. Avoid redrawing the
image editor during slide like other operators, instant feedback can be nice but
is not so important here and we don't have notifiers fine grained enough to avoid
full redraws.

7 years agoFix #35284: outline name edit textbox did not show properly in some cases. Also
Brecht Van Lommel [Fri, 10 May 2013 19:54:32 +0000 (19:54 +0000)]
Fix #35284: outline name edit textbox did not show properly in some cases. Also
fix issues with its size not scaling with DPI.

7 years agoCouple fixes for my previous commit:
Miika Hamalainen [Fri, 10 May 2013 19:30:08 +0000 (19:30 +0000)]
Couple fixes for my previous commit:
- In some cases smoke flow could have 1 cell clipped off its sides.
- Forgot to re-enable openmp for emission code.

7 years agoFix #35296: particles crash with long object name.
Brecht Van Lommel [Fri, 10 May 2013 17:14:07 +0000 (17:14 +0000)]
Fix #35296: particles crash with long object name.

7 years agoFix for version patch in recent smoke commit, was using && instead of &.
Brecht Van Lommel [Fri, 10 May 2013 16:57:20 +0000 (16:57 +0000)]
Fix for version patch in recent smoke commit, was using && instead of &.

7 years agoCycles: bump node changes to add a Distance input that controls the overall displacement
Brecht Van Lommel [Fri, 10 May 2013 16:57:17 +0000 (16:57 +0000)]
Cycles: bump node changes to add a Distance input that controls the overall displacement
distance, and an Invert option to invert the bump effect.

7 years agoSmoke: Add new "Full Sample" option to high resolution smoke panel.
Miika Hamalainen [Fri, 10 May 2013 16:18:00 +0000 (16:18 +0000)]
Smoke: Add new "Full Sample" option to high resolution smoke panel.

This is hopefully the ultimate solution against smoke blockiness near emitter.

Previously high resolution flow/emitter voxels were generated based on the low resolution ones. So if you had 32 resolution and 4 division high resolution, it still used smoke flow generated from those 32 resolution voxels. Now I introduced a new sampling method called "Full Sample" that generates full resolution flow for for high resolution domain as well.

Read more about it in my blog post:

Also changed "quick smoke" operator default voxel data interpolation mode to "Cubic B-Spline" to smoothen out it even more.

7 years agoSet scene frames operator for clip editor.
Sergey Sharybin [Fri, 10 May 2013 15:56:32 +0000 (15:56 +0000)]
Set scene frames operator for clip editor.

This operator will set scene's start/end frames to
match clip's start frame and footage duration.

Available in Clip panel in clip editor's toolbox.

7 years agoFix for recent bugfix with anisotropic node crash, could do invalid memory access.
Brecht Van Lommel [Fri, 10 May 2013 15:10:54 +0000 (15:10 +0000)]
Fix for recent bugfix with anisotropic node crash, could do invalid memory access.

7 years agoFix #35270: files with numbers higher than 2147483648 or with different numbers
Brecht Van Lommel [Fri, 10 May 2013 14:52:23 +0000 (14:52 +0000)]
Fix #35270: files with numbers higher than 2147483648 or with different numbers
of leading zeros but otherwise the same would show in random order in the file
browser. Selecting an item would change the order of all the items.

Problem was that it was comparing by parsing the number into an int, which has
only limited precision and does not care about the number of leading zeros. Now
do the comparison directly on the string.

7 years agoFix #35267: cmd+v, cmd+c on OS X for copy/paste worked in some editors like the 3D
Brecht Van Lommel [Fri, 10 May 2013 13:47:28 +0000 (13:47 +0000)]
Fix #35267: cmd+v, cmd+c on OS X for copy/paste worked in some editors like the 3D
view and text editor but not in the animation editors, node editor and sequencer.

7 years agoCycles: add Use Surfaces and Use Hair option to render layers, to disable rendering
Brecht Van Lommel [Fri, 10 May 2013 13:34:49 +0000 (13:34 +0000)]
Cycles: add Use Surfaces and Use Hair option to render layers, to disable rendering
of hair and surfaces, similar to blender internal options.

7 years agoCode cleanup / Cycles:
Thomas Dinges [Fri, 10 May 2013 12:51:30 +0000 (12:51 +0000)]
Code cleanup / Cycles:
* Change some more if / else if conditions to switch / case.
* Avoid an unneeded variable casting in phong_ramp closure.

7 years agoFix #35278: textures nodes Mix RGB node did not have a Use Alpha option like
Brecht Van Lommel [Fri, 10 May 2013 12:39:11 +0000 (12:39 +0000)]
Fix #35278: textures nodes Mix RGB node did not have a Use Alpha option like
the compositing node. Note the shader nodes can't have this because color
sockets there are only RGB, not RGBA.

7 years agoFix #35269: compositing setup with only file output node and no composite node
Brecht Van Lommel [Fri, 10 May 2013 12:27:18 +0000 (12:27 +0000)]
Fix #35269: compositing setup with only file output node and no composite node
refused to render. It's not possible to actually see the compositing result
in the render result without that but might as well work.

7 years agoFix for #35291, Deleting 'Group Output' node in compositor causes Segfault. A group...
Lukas Toenne [Fri, 10 May 2013 12:19:42 +0000 (12:19 +0000)]
Fix for #35291, Deleting 'Group Output' node in compositor causes Segfault. A group without an output node in compositor would leave the original Node instance in the graph with outgoing connections. This causes trouble because the Node is expected to be a NodeOperation. Now group nodes always get disconnected and if no output node is present will use the default group output values (which is slightly less confusing than using input values from connected nodes).

7 years agoFix #35261: double clicking the up arrow in the file browser to go up multiple
Brecht Van Lommel [Fri, 10 May 2013 12:16:12 +0000 (12:16 +0000)]
Fix #35261: double clicking the up arrow in the file browser to go up multiple
directories fast would start drag and drop. Disabled drag on those items now.

7 years agouse unsigned ints for edgehash
Campbell Barton [Fri, 10 May 2013 12:06:40 +0000 (12:06 +0000)]
use unsigned ints for edgehash

7 years agoFix #35282: cycles color ramp set to constant interpolation did not work well.
Brecht Van Lommel [Fri, 10 May 2013 11:44:24 +0000 (11:44 +0000)]
Fix #35282: cycles color ramp set to constant interpolation did not work well.

7 years agoFix #35272: cycles GPU crash with anisotropic shader in group node.
Brecht Van Lommel [Fri, 10 May 2013 11:31:57 +0000 (11:31 +0000)]
Fix #35272: cycles GPU crash with anisotropic shader in group node.

Problem was that due to group proxy node the anisotropic node did not detect
early enough that it needs generated texture coordinate data to generate the
tangent. Now the proxy nodes are removed earlier.

7 years agoOptimize BKE_mesh_calc_normals(), gives approx 25% speedup.
Campbell Barton [Fri, 10 May 2013 10:07:01 +0000 (10:07 +0000)]
Optimize BKE_mesh_calc_normals(), gives approx 25% speedup.
- no need to allocate polygon normal array.
- no need to use BLI_array_ functions (realloc's).
- reduce some of the looping.

7 years agoSmall fix for node add operators: use the UNDO option so they get registered in undo...
Lukas Toenne [Fri, 10 May 2013 09:54:25 +0000 (09:54 +0000)]
Small fix for node add operators: use the UNDO option so they get registered in undo stack properly.

7 years agoFix for #35286, 'Reset to Default Theme' makes some node titlebars go black. These...
Lukas Toenne [Fri, 10 May 2013 08:08:29 +0000 (08:08 +0000)]
Fix for #35286, 'Reset to Default Theme' makes some node titlebars go black. These node theme colors were set in init_userdef_do_versions, but missing in ui_theme_init_default. Also adjusted the group input/output colors there to match the colors set in do_versions.

7 years agoavoid using BLI_array_* macros for uv reset.
Campbell Barton [Fri, 10 May 2013 08:08:18 +0000 (08:08 +0000)]
avoid using BLI_array_* macros for uv reset.

7 years agoLeft extra logging print by accident.
Sergey Sharybin [Fri, 10 May 2013 07:26:55 +0000 (07:26 +0000)]
Left extra logging print by accident.

7 years agoBGE: Fix for [#35204] "New Alpha-Enabled Shadows Work Until UVs Change" reported...
Mitchell Stokes [Fri, 10 May 2013 07:05:12 +0000 (07:05 +0000)]
BGE: Fix for [#35204] "New Alpha-Enabled Shadows Work Until UVs Change" reported by Josiah Lane (solarlune).

BL_BlenderShader was only sending over proper UV data if the current drawing mode was KX_TEXTURED. Now it also checks for (and sends data for) alpha shadows.