6 years agoCode cleanup / Cycles:
Thomas Dinges [Sat, 18 May 2013 11:04:29 +0000 (11:04 +0000)]
Code cleanup / Cycles:
* Simplify shaperadius() function a bit to avoid castings.
* Style cleanup 1.f -> 1.0f, to follow rest of Cycles code.

6 years agoFix #35390: sequencer end frame of preview range was not drawing correct.
Brecht Van Lommel [Sat, 18 May 2013 10:24:38 +0000 (10:24 +0000)]
Fix #35390: sequencer end frame of preview range was not drawing correct.

6 years agoFix #35404: crash in file save with python code that accesses mesh from panel.
Brecht Van Lommel [Sat, 18 May 2013 10:24:34 +0000 (10:24 +0000)]
Fix #35404: crash in file save with python code that accesses mesh from panel.

On file save the mesh gets loads from the editmesh but the derived mesh caches
wer not cleared. This usually happens through the depsgraph but it needs to be
done manually here. Most changes are some refactoring to deduplicate derived
mesh freeing code.

6 years agoStroke code:
Antony Riakiotakis [Sat, 18 May 2013 09:44:30 +0000 (09:44 +0000)]
Stroke code:

* Fix crash on 2d painting when no active object is present (NULL
pointer dereference in cursor drawing)
* Skip conditional on space_stroke function, since this is already
checked for on higher level.
* Interpolate pressure on spaced strokes.

6 years agobump to version '2.67a'
Campbell Barton [Sat, 18 May 2013 08:47:34 +0000 (08:47 +0000)]
bump to version '2.67a'

6 years agorigidbody: Add missig notifiers for add/remove operators
Sergej Reich [Fri, 17 May 2013 18:34:13 +0000 (18:34 +0000)]
rigidbody: Add missig notifiers for add/remove operators

Fixes [#35403] Highlight not updating instantly when removing from Rigid body

6 years agoSmoke simulator: Add flow subframes and ability to set custom particle size.
Miika Hamalainen [Fri, 17 May 2013 17:45:37 +0000 (17:45 +0000)]
Smoke simulator: Add flow subframes and ability to set custom particle size.

Previously it was nearly impossible to have fast moving objects emitting smoke or they would just leave behind a row of smoke poofs instead of continious stream of smoke. Now it's possible to set number of subframes for each smoke flow.

Another new thing is ability to set size of smoke flow particles instead of using closest smoke cell. This also works with my earlier "full sample" commit, so no more blocky particles either. :)

For more info check my blog post:

This commit also includes couple of fixes I spotted while testing:
* Fix: dissolve was applied at different time for low res and high res simulations.
* Fix: full sample setting didn't get copied with domain.

6 years agoMore work on 3d view render:
Ton Roosendaal [Fri, 17 May 2013 16:46:59 +0000 (16:46 +0000)]
More work on 3d view render:

- reverted fix for bug 32537 (error report drawing after thread job didn't show)

  This solves very bad 3d view render updates while using transform, it was
  getting into an eternal feedback loop for dependencies. (jobs sending mousemoves
  causing jobs to end, causing mousemoves, causing etc).

- The render-update code was not going over all windows, but over every screen to
  send signals (also the invisble ones)

6 years agoFix for #35390 fix: sequencer scene start/end still did not display when they are...
Brecht Van Lommel [Fri, 17 May 2013 16:37:47 +0000 (16:37 +0000)]
Fix for #35390 fix: sequencer scene start/end still did not display when they are equal.

6 years agofix for crash with toggle-drag on a popup (when the popup is closed while dragging).
Campbell Barton [Fri, 17 May 2013 13:54:44 +0000 (13:54 +0000)]
fix for crash with toggle-drag on a popup (when the popup is closed while dragging).

6 years agoBug fix, own collection.
Ton Roosendaal [Fri, 17 May 2013 13:15:43 +0000 (13:15 +0000)]
Bug fix, own collection.

Shapekey drivers were executed for every call to derivedmesh, which shouldn't happen.
It now only runs on the object_update() function, once for every depsgraph change.

Error was found while testing preview render in viewport. On each render, the
animsys sent a 'changed data' because of the shapekey drivers being called,
causing eternal re-render loops (without showing anything).

6 years agoFix #35369: Crop node or FileOutput node bug.
Sergey Sharybin [Fri, 17 May 2013 13:02:03 +0000 (13:02 +0000)]
Fix #35369: Crop node or FileOutput node bug.

Issue was caused by file output node actually,

The thing here is, compositor output does have fixed
resolution and we could predict how to map coordinates
for border and cropping in that case.

But viewers and file output nodes are currently totally
depending on an input resolution. Could not see how
border could be applied reliably in this cases.

Disabling border option for file output node, so
now it shall behave the same way as it was before.

Discovered issues when using cropping to render border,
namely there's an offset in viewer nodes and previews,
but this is separate issue i guess (file output seems
to work fine). Will revisit this issue in next days.

6 years agocode cleanup: use BM_elem_flag_test rather then accessing 'ele->head.hflag'
Campbell Barton [Fri, 17 May 2013 12:43:58 +0000 (12:43 +0000)]
code cleanup: use BM_elem_flag_test rather then accessing 'ele->head.hflag'

6 years agoignore hidden edges for bmesh grid-fill.
Campbell Barton [Fri, 17 May 2013 12:26:14 +0000 (12:26 +0000)]
ignore hidden edges for bmesh grid-fill.

6 years agofix for BM_mesh_edgeloops_find(), could give edge loops with one vert. (caused bridge...
Campbell Barton [Fri, 17 May 2013 12:11:34 +0000 (12:11 +0000)]
fix for BM_mesh_edgeloops_find(), could give edge loops with one vert. (caused bridge to crash sometimes)

6 years agofix for error in bridge tool, using freed faces from bmo input.
Campbell Barton [Fri, 17 May 2013 12:05:07 +0000 (12:05 +0000)]
fix for error in bridge tool, using freed faces from bmo input.

6 years ago3D Viewport rendering (Blender Internal)
Ton Roosendaal [Fri, 17 May 2013 11:13:46 +0000 (11:13 +0000)]
3D Viewport rendering (Blender Internal)

Added incremental re-render on view changes. That means all data preprocessing
only needs to be done once on view changes, quite faster that way.

Also fixed a bug in raytracing strands with soft shadows, was wrongly changing
coordinates in a static array.

Note: proper signals for re-renders is still on the todo. Many button options
don't signal a re-render yet. Work around: press G+ESC for quick full renders.

6 years agoFix #35393: Sculpt Shortcuts are bananas.
Sergey Sharybin [Fri, 17 May 2013 11:08:50 +0000 (11:08 +0000)]
Fix #35393: Sculpt Shortcuts are bananas.

Issue was introduced by self in svn rev56815.
Brushes list was simply not fully traversing
due to mistake in termination condition.

6 years agoFix #35390: the verticel lines indicating scene start and end frame in the
Brecht Van Lommel [Fri, 17 May 2013 09:47:05 +0000 (09:47 +0000)]
Fix #35390: the verticel lines indicating scene start and end frame in the
sequencer now draw such that a strip that spans this time is contained just
between these lines.

6 years agobump mathutils callback slot size.
Campbell Barton [Fri, 17 May 2013 07:10:40 +0000 (07:10 +0000)]
bump mathutils callback slot size.

6 years agoThis commit addresses the somewhat weak handling of stackless textures in Blender...
Bastien Montagne [Fri, 17 May 2013 07:10:10 +0000 (07:10 +0000)]
This commit addresses the somewhat weak handling of stackless textures in Blender with default (BI) renderer. To do so, it's defining an "other" texture context, and when in this one, it switches to using the "new shading" texture handling already known with Cycles engine.

So now, in the new "other" tex context, you can (depending on active data) have direct access to modifiers', force's or brushes' textures...

I also refactored a bit how texture contexts are handled (once again, we had some quite similar code in both space_buttons and RNA sources). This should also solve some harmless glitches like "no texture context selected in UI" sometimes when you remove data related to current texture (see e.g. after removing the material from default cube, in startup scene).

This usage of two different systems for textures, and the handling of switches between them, has been a bit tricky to get working right, but it is OK now I think. I also had to add a bool flag to buttons space, SB_TEX_USER_LIMITED (use_limited_texture_context in RNA), which indicates "new shading" texture code whether it has to ignore materials, lamps etc. (BI) or not (Cycles).

Btw, pinned textures from modifiers/force/etc. were also broken (showing nothing), now it should work too.

Thanks to Brecht for reviewing.

6 years agoFix #35398: changing render layer name causes animation to be lost.
Brecht Van Lommel [Fri, 17 May 2013 00:39:37 +0000 (00:39 +0000)]
Fix #35398: changing render layer name causes animation to be lost.

6 years agoFix for Freestyle built-in style module not...
Tamito Kajiyama [Thu, 16 May 2013 23:49:05 +0000 (23:49 +0000)]
Fix for Freestyle built-in style module not working correctly.
Suitable for inclusion in 2.67a.

Logical AND, OR and XOR operations on freestyle.Nature instances gave an error in some cases.
The updated C implementation of these bitwise operations is intended to reproduce the following Python implementation:

class Nature(int):
    def __and__(self, other):
        return Nature(int(self) & int(other))
    def __or__(self, other):
        return Nature(int(self) | int(other))
    def __xor__(self, other):
        return Nature(int(self) ^ int(other))

The problem report was by plasmasolutions on IRC, thanks a lot!

6 years agoCode cleanup / Cycles:
Thomas Dinges [Thu, 16 May 2013 21:53:21 +0000 (21:53 +0000)]
Code cleanup / Cycles:
* Put render resolution x/y into a function.

6 years agopartial revert of commit 54126 - (BGE UI: removing " use_occlusion_culling" from...
Dalai Felinto [Thu, 16 May 2013 21:37:24 +0000 (21:37 +0000)]
partial revert of commit 54126 - (BGE UI: removing " use_occlusion_culling" from the ui)
bug reported by Eloy Felix over email

Apparently there are some files that will perform better with "use_occlusion_culling" off.
For now the UI option can return.

Technically this could make into 2.67a, but the string is not localized (it'll be in English).
Not sure what is more important here:

- consistent UI OR to expose in the UI an option some people need

6 years agoCycles / BSSRDF:
Thomas Dinges [Thu, 16 May 2013 18:39:45 +0000 (18:39 +0000)]
Cycles / BSSRDF:
* Avoid one max() call for the bssrdf radius, the if condition already checks for values < BSSRDF_MIN_RADIUS.

6 years agoworkaround for loopselect-slide (with multicut enabled) changing from vertex-select...
Campbell Barton [Thu, 16 May 2013 18:33:07 +0000 (18:33 +0000)]
workaround for loopselect-slide (with multicut enabled) changing from vertex-select to edge-select.
this is needed to slide, but wasn't so nice for users, now restore the original mode.

6 years agocode cleanup: double promotion warnings.
Campbell Barton [Thu, 16 May 2013 17:20:56 +0000 (17:20 +0000)]
code cleanup: double promotion warnings.

6 years ago* This is embarrassing...
Thomas Dinges [Thu, 16 May 2013 15:59:05 +0000 (15:59 +0000)]
* This is embarrassing...

6 years agoCycles:
Thomas Dinges [Thu, 16 May 2013 15:47:09 +0000 (15:47 +0000)]
* Revert part of r56832, if code gets more complicated, it's better to keep it more logical here.

6 years agofix for crash in grid-fill where it was possible for rail edges to overlap.
Campbell Barton [Thu, 16 May 2013 15:28:57 +0000 (15:28 +0000)]
fix for crash in grid-fill where it was possible for rail edges to overlap.

6 years agoFix #35388, grouped nodes not editable in properties ui.
Lukas Toenne [Thu, 16 May 2013 15:06:18 +0000 (15:06 +0000)]
Fix #35388, grouped nodes not editable in properties ui.

The issue here was that the "active" material node depends on the editor context. Previously (< 2.67) there was only 1 edited node group possible globally throughout Blender, so the active material in the context could be resolved more easily. The solution now involves the active_viewer_key variable (first introduced for compositor viewer nodes in r56271, naming is a bit awkward but hard to change in DNA). This key defines the "last modified" node tree to resolve ambiguity of active context items. For single editors the result is the same as in 2.66, if multiple editors are used with different node groups the last modified tree is used.

6 years agogrid-fill: fix error in detecting face flipping.
Campbell Barton [Thu, 16 May 2013 13:58:21 +0000 (13:58 +0000)]
grid-fill: fix error in detecting face flipping.

6 years agoFix #35384: animation to enable/disable render layers was applied one frame too
Brecht Van Lommel [Thu, 16 May 2013 12:03:21 +0000 (12:03 +0000)]
Fix #35384: animation to enable/disable render layers was applied one frame too
late when rendering animations.

6 years agoCMakeLists.txt changes to use new static Jack libs with VC2012
Jürgen Herrmann [Thu, 16 May 2013 11:24:19 +0000 (11:24 +0000)]
CMakeLists.txt changes to use new static Jack libs with VC2012

6 years agoFix compile error on VS2012.
Jürgen Herrmann [Thu, 16 May 2013 11:04:01 +0000 (11:04 +0000)]
Fix compile error on VS2012.
Unused variables (for debug only) give an error.

6 years agofix [#35385] freestyle rendering crash blender
Campbell Barton [Thu, 16 May 2013 08:04:45 +0000 (08:04 +0000)]
fix [#35385] freestyle rendering crash blender

6 years agobmesh grid fill: interpolate vertex customdata (useful for vertex weights and shapekeys)
Campbell Barton [Thu, 16 May 2013 07:21:34 +0000 (07:21 +0000)]
bmesh grid fill: interpolate vertex customdata (useful for vertex weights and shapekeys)

6 years agoquiet warnings from r56825
Campbell Barton [Thu, 16 May 2013 03:55:47 +0000 (03:55 +0000)]
quiet warnings from r56825
- using vars before checking they are defined
- /* within comment

6 years agoFix for [#35352] Freestyle + Geometry Spatial Noise freezes on render.
Tamito Kajiyama [Thu, 16 May 2013 00:20:57 +0000 (00:20 +0000)]
Fix for [#35352] Freestyle + Geometry Spatial Noise freezes on render.

SpatialNoiseShader, as well as SmoothingShader were not updating stroke length after
geometry modification, causing an infinite loop in Stroke::Resample(int iNPoints) due to
incorrect length-based resampling of stroke vertices.

6 years agoFix #35368:
Brecht Van Lommel [Thu, 16 May 2013 00:07:01 +0000 (00:07 +0000)]
Fix #35368:
* Editing number of segments for particle hair did not update the viewport.
* Hidden particles were confusing, the paths were drawn but without the points.
  Now it draws the path faded to indicate that they are hidden/locked.
* Select tips/roots operators now have options to select/deselect/toggle/invert.

6 years agoFix #35372: sculpting/painting long brush strokes with small brush size would
Brecht Van Lommel [Wed, 15 May 2013 22:55:30 +0000 (22:55 +0000)]
Fix #35372: sculpting/painting long brush strokes with small brush size would
take up a lot of memory.

The operator was recording an array with all stroke points. However this was not
particularly useful, only sculpt mode had exec() implemented to redo the stroke,
but it was not registering the operator anyway so there was no way to access the
data after the operator was done. So no one was using this anyway.

I did now implement exec for the paint modes so you can call the operator with
stroke points from a script.

6 years agoFix #35355: 2D image paint View mapping mode was dependent on zoom, this was
Brecht Van Lommel [Wed, 15 May 2013 21:03:57 +0000 (21:03 +0000)]
Fix #35355: 2D image paint View mapping mode was dependent on zoom, this was
wrong, it should just fit the texture in the brush circle.

6 years agoCode cleanup / Cycles:
Thomas Dinges [Wed, 15 May 2013 20:38:17 +0000 (20:38 +0000)]
Code cleanup / Cycles:
* Some simplification of closure code (Velvet and Toon).

6 years agobmesh, grid fill tool.
Campbell Barton [Wed, 15 May 2013 20:34:40 +0000 (20:34 +0000)]
bmesh, grid fill tool.

This uses 2 edge loops and fills them with a grid, taking into account curvature of surrounding edges.
Access from face menu: Ctrl+F,G

6 years agoFix #35376: node editor throwing python error on some files saved with 2.66 test...
Brecht Van Lommel [Wed, 15 May 2013 19:24:07 +0000 (19:24 +0000)]
Fix #35376: node editor throwing python error on some files saved with 2.66 test builds.

6 years agoFix cycles CUDA error with world multiple importance sampling, after recent OpenCL...
Brecht Van Lommel [Wed, 15 May 2013 19:02:30 +0000 (19:02 +0000)]
Fix cycles CUDA error with world multiple importance sampling, after recent OpenCL fixes.

6 years agoFix action zones not drawing properly while sculpting, due to recent bugfix.
Brecht Van Lommel [Wed, 15 May 2013 17:59:55 +0000 (17:59 +0000)]
Fix action zones not drawing properly while sculpting, due to recent bugfix.

Partial redraw doesn't work so well with these, now I've changed the action
zones to just draw as part of regions instead of as a special overdraw done
at the end, which fits better with partial redraw by avoiding any special

6 years agoFixes for blender internal viewport render:
Brecht Van Lommel [Wed, 15 May 2013 17:09:45 +0000 (17:09 +0000)]
Fixes for blender internal viewport render:

* Particles did not render at viewport resolution like meshes.
* Properties editor preview render of hair was crashing, solution is to have
  two separate flags for this preview render and viewport preview render.

6 years agoFix for missing finalization of memory blocks allocated in the Freestyle module.
Tamito Kajiyama [Wed, 15 May 2013 17:06:56 +0000 (17:06 +0000)]
Fix for missing finalization of memory blocks allocated in the Freestyle module.
Suitable for inclusion in 2.67a.

6 years agoLibmv internal compiler error workaround for VC2012.
Jürgen Herrmann [Wed, 15 May 2013 17:00:53 +0000 (17:00 +0000)]
Libmv internal compiler error workaround for VC2012.
Will be reverted as soon as the x64 compiler is fixed.
For now it shouldn't have an impact on tracking performance. My test have shown no significant speed difference to official VC2008 build of 2.67.

6 years agouse bool arrays rather then char for weight paint lock/select arrays
Campbell Barton [Wed, 15 May 2013 15:52:48 +0000 (15:52 +0000)]
use bool arrays rather then char for weight paint lock/select arrays

6 years agoAttempt to fix #35057 and #35372: slow texture painting performance.
Brecht Van Lommel [Wed, 15 May 2013 14:37:05 +0000 (14:37 +0000)]
Attempt to fix #35057 and #35372: slow texture painting performance.

After the paint refactoring for 2.67, the OpenGL texture was getting updated for
every stroke point, rather than once for every redraw. With a small brush radius
and low spacing the number of stroke points can be quite large, which might have
a big performance impact depending on the graphics card / drivers.

Also for 2D image paint, avoid redrawing the button panels and properties editor
during painting.

There is another possible cause for slowdowns with 3D texture painting which was
not fixed. Projection painting is creating and destroying threads for every stroke
point. Depending on the CPU/OS there might be a lot of overhead in doing that if
the brush size is small.

6 years agoFix another cases where painting long brush strokes with small radius was slowed
Brecht Van Lommel [Wed, 15 May 2013 14:37:01 +0000 (14:37 +0000)]
Fix another cases where painting long brush strokes with small radius was slowed
down, this time by the operator properties getting converted to a string for
display in the info window.

With 1000+ stroke points this can get slow, and takes up too much space anyway,
so now it's (somewhat arbitrarily) limited to printing only 10 points.

6 years agoFix slow resizing of ID property arrays with more than 1619 items, it incorrectly
Brecht Van Lommel [Wed, 15 May 2013 14:36:58 +0000 (14:36 +0000)]
Fix slow resizing of ID property arrays with more than 1619 items, it incorrectly
reverted to sizing with by 1 each time. This was slowing down painting long strokes
with small brush radius.

6 years agoFix #35354: dyntopo - materials and UI display issues
Sergey Sharybin [Wed, 15 May 2013 12:33:28 +0000 (12:33 +0000)]
Fix #35354: dyntopo - materials and UI display issues

Textured dyntopo draw was leaving 2d textures enabled when it shouldn't.

Root of the issue was figured out by Campbell, actual place where
2D textures left enabled found by self.

Also, simplified fix is suggested by Campbell (mine was 2 lines longer! :)

6 years agoThe Area Split/Merge corner widget was drawing 1 pixel too big, the lines overlapped
Ton Roosendaal [Wed, 15 May 2013 12:05:35 +0000 (12:05 +0000)]
The Area Split/Merge corner widget was drawing 1 pixel too big, the lines overlapped
the area divider line.

6 years agoPatch for CMakeLists.txt to build with new OpenAL libs on VS2012.
Jürgen Herrmann [Wed, 15 May 2013 11:26:57 +0000 (11:26 +0000)]
Patch for CMakeLists.txt to build with new OpenAL libs on VS2012.
Because of crashing issue with old Creative Labs OpenAL on Windows 8 x64.

6 years agoFix part of #35372: distorted strokes when painting zoomed out with a small brush
Brecht Van Lommel [Wed, 15 May 2013 11:16:01 +0000 (11:16 +0000)]
Fix part of #35372: distorted strokes when painting zoomed out with a small brush
size. Interpolated mouse coordinates should not get rounded to integers.

6 years agoFix #35364: sculpting - D shortcut inconsistency
Sergey Sharybin [Wed, 15 May 2013 11:10:59 +0000 (11:10 +0000)]
Fix #35364: sculpting - D shortcut inconsistency

Switching to tool will cycle via all brushes with given type
only in case current brush tool matches requested one.

This means, when user requests brush with different type,
first brush of that tool will be activated. But further
toggling to the same tool will cycle via all acceptable

6 years agofix for finding openjpeg on some systems.
Campbell Barton [Wed, 15 May 2013 09:57:17 +0000 (09:57 +0000)]
fix for finding openjpeg on some systems.

6 years agoMove sculptsession functions implementation from object.c to paint.c
Sergey Sharybin [Wed, 15 May 2013 08:54:05 +0000 (08:54 +0000)]
Move sculptsession functions implementation from object.c to paint.c

This functios are declared in BKE_paint.h header and using
SculptSession structure which is also declared there.

Anyway, does not make sense such a splitting of header and
implementation files, better be consistent here.

6 years agoFix #35362: using dyntopo gives wrong render results
Sergey Sharybin [Wed, 15 May 2013 08:25:42 +0000 (08:25 +0000)]
Fix #35362: using dyntopo gives wrong render results

Made it so dynamic topology will flush changes from
SculptSession->bm to Object->me.

Used the same approach as sculptsession_bm_to_me does,
but instead of using DAG_id_tag_update used in-place
DerivedMesh release. Otherwise this lead to some
update issues resulting in missed object after render.

Also fixed multires modifier not being applied for
render when rendering from dyntopo sculpt mode.

P.S. Apparently sculpsession_bm_to_me was declared
     in BKE_paint.h but implemented in object.c.
     Rather confusing and better make it so this
     functions are declared and implemented in
     consistent files. But will solve this in a
     separate commit.

6 years agobmesh edgeloop utility function, calculates an edge loop from 2 verts (start and...
Campbell Barton [Wed, 15 May 2013 06:27:48 +0000 (06:27 +0000)]
bmesh edgeloop utility function, calculates an edge loop from 2 verts (start and endpoint).

6 years agofix for own recent change with normal calculation (with no faces it wasn't freeing...
Campbell Barton [Wed, 15 May 2013 05:56:49 +0000 (05:56 +0000)]
fix for own recent change with normal calculation (with no faces it wasn't freeing 0 byte allocation).

6 years agoMore fix for memory leaks in the Freestyle module.
Tamito Kajiyama [Wed, 15 May 2013 01:30:03 +0000 (01:30 +0000)]
More fix for memory leaks in the Freestyle module.

6 years agoBGE: A little bit of cleanup:
Mitchell Stokes [Tue, 14 May 2013 22:52:10 +0000 (22:52 +0000)]
BGE: A little bit of cleanup:
  * Removing KX_Scene::RemoveAnimatedObject() since KX_Scene::NewRemoveObject() is already handling this.
  * Don't create a new BL_ActionManager when replicating an object. Just set m_actionManager to NULL and let KX_GameObject::GetActionManager() allocate a new BL_ActionManager when one is needed.
  * Use KX_GameObject::GetScene() instead of KX_GetActiveScene() in KX_GameObject::GetActionManager() to make sure we're using the object's scene instead of one where Python might currently be running from. This could avoid potential issues with playing actions for objects in other scenes.

6 years agoFurther fix for memory leaks in Freestyle Python API components:
Tamito Kajiyama [Tue, 14 May 2013 22:51:11 +0000 (22:51 +0000)]
Further fix for memory leaks in Freestyle Python API components:
- StrokeAttribute thickness setter
- BezierCurve (used from within BezierCurveShader)
- Smoother (used from within SmoothingShader)

6 years agoFix for a copy-and-paste bug in a Freestyle Python API helper function.
Tamito Kajiyama [Tue, 14 May 2013 22:16:18 +0000 (22:16 +0000)]
Fix for a copy-and-paste bug in a Freestyle Python API helper function.

6 years agoCycles:
Thomas Dinges [Tue, 14 May 2013 21:18:20 +0000 (21:18 +0000)]
* Code cleanup, remove unused "resolution" variable from the DeviceTask class, was never used.

6 years agoPatch to CMake build system.
Jürgen Herrmann [Tue, 14 May 2013 19:08:45 +0000 (19:08 +0000)]
Patch to CMake build system.
Install needed dlls for libjack.

6 years agoCycles :
Thomas Dinges [Tue, 14 May 2013 18:31:55 +0000 (18:31 +0000)]
Cycles :
* Use is_zero(a) rather than dot(a, a) == 0, saves some calculations.

6 years agoMoved main part of doc out of C code, as suggested by Campell...
Bastien Montagne [Tue, 14 May 2013 18:16:37 +0000 (18:16 +0000)]
Moved main part of doc out of C code, as suggested by Campell, thx.

6 years agoFix #35347: constraints with vertex group targets were not using the vertex group
Brecht Van Lommel [Tue, 14 May 2013 16:22:53 +0000 (16:22 +0000)]
Fix #35347: constraints with vertex group targets were not using the vertex group
weights, it assumed all weights were 1. This gave very different results with the
new bevel modifier due to slightly different vertex group interpolation.

6 years agoCMake build system update
Jürgen Herrmann [Tue, 14 May 2013 16:16:25 +0000 (16:16 +0000)]
CMake build system update
- Extending CMakeLists.txt to support builds with VC2012.
- Fix some typo in CMakeLists.txt
- Introduces experimental WITH_AVX_CPU to build with /arch:AVX (VC11 only)

6 years agoAPI doc for should look better now.
Bastien Montagne [Tue, 14 May 2013 15:33:59 +0000 (15:33 +0000)]
API doc for should look better now.

6 years agoFix a mismatch in help message (check_spelling_osl obviously checks OLS, and check_sp...
Bastien Montagne [Tue, 14 May 2013 14:37:51 +0000 (14:37 +0000)]
Fix a mismatch in help message (check_spelling_osl obviously checks OLS, and check_spelling_c, C code! :P )

6 years ago"Fix" for #35336. Added a warning in the doc string for to point...
Lukas Toenne [Tue, 14 May 2013 11:18:45 +0000 (11:18 +0000)]
"Fix" for #35336. Added a warning in the doc string for to point users at the recent API change from node.type enum identifiers to the generic node.bl_idname strings. Not really nice, but could prevent a few bug reports and make scripters' lifes easier.

6 years agobridge tool: fix for error in recent commit. missed NULL check for example face.
Campbell Barton [Tue, 14 May 2013 10:56:18 +0000 (10:56 +0000)]
bridge tool: fix for error in recent commit. missed NULL check for example face.

6 years agoFix for #35349, multiple viewers nodes crashing during render. The condition for...
Lukas Toenne [Tue, 14 May 2013 10:42:30 +0000 (10:42 +0000)]
Fix for #35349, multiple viewers nodes crashing during render. The condition for activating viewer nodes was completely overridden during renders. Changed this so viewer nodes are active only if both of these are true:

1) the node is tagged for recalc OR compo is in render mode
2) it is the currently active viewer (so only one viewer ever writes to the buffer)

6 years agoCode cleanup: fix confusing line of code with useless ||.
Brecht Van Lommel [Tue, 14 May 2013 10:20:58 +0000 (10:20 +0000)]
Code cleanup: fix confusing line of code with useless ||.

6 years agostyle cleanup
Campbell Barton [Tue, 14 May 2013 06:58:35 +0000 (06:58 +0000)]
style cleanup

6 years agotweak to r56784, no functional change, utility function worked confusingly.
Campbell Barton [Tue, 14 May 2013 06:10:26 +0000 (06:10 +0000)]
tweak to r56784, no functional change, utility function worked confusingly.

6 years agofix for problem where edge loop select would select too many vertices (extend selecti...
Campbell Barton [Tue, 14 May 2013 04:55:21 +0000 (04:55 +0000)]
fix for problem where edge loop select would select too many vertices (extend selection too far),

before & after:

6 years agorefactor bmesh edge loop walker,
Campbell Barton [Tue, 14 May 2013 04:09:02 +0000 (04:09 +0000)]
refactor bmesh edge loop walker,
was getting too complicated handing different cases at once, split out boundary case into its own branch.

6 years agoupdate libmv stub.
Campbell Barton [Tue, 14 May 2013 03:06:58 +0000 (03:06 +0000)]
update libmv stub.

6 years agobmesh api: add 'is_boundary' attribute to verts.
Campbell Barton [Tue, 14 May 2013 02:56:24 +0000 (02:56 +0000)]
bmesh api: add 'is_boundary' attribute to verts.

6 years agoAdded support for WITH_CXX_GUARDEDALLOC build option to the Freestyle module.
Tamito Kajiyama [Mon, 13 May 2013 22:58:27 +0000 (22:58 +0000)]
Added support for WITH_CXX_GUARDEDALLOC build option to the Freestyle module.

6 years agoFix for a memory leak during Freestyle stroke shading.
Tamito Kajiyama [Mon, 13 May 2013 22:50:12 +0000 (22:50 +0000)]
Fix for a memory leak during Freestyle stroke shading.

6 years agoCycles CUDA: in case of cryptic error messages in the console, refer to wiki
Brecht Van Lommel [Mon, 13 May 2013 21:36:48 +0000 (21:36 +0000)]
Cycles CUDA: in case of cryptic error messages in the console, refer to wiki
documentation for possible solutions.

6 years agoFix #35340: 3D manipulator not working right after undoing with cmd+Z on OS X.
Brecht Van Lommel [Mon, 13 May 2013 21:19:30 +0000 (21:19 +0000)]
Fix #35340: 3D manipulator not working right after undoing with cmd+Z on OS X.

Another issue with the recent Ghost changes here. For some reason key up events
are not coming through when the command key is pressed. I can't figure out why,
for now just always handle them, still fixes the original bug.

6 years agoThe usual fix for blenderplayer. I didn't have time to test scons but looks like...
Antony Riakiotakis [Mon, 13 May 2013 20:42:18 +0000 (20:42 +0000)]
The usual fix for blenderplayer. I didn't have time to test scons but looks like the missing library on CMake is already present there.

6 years agoPatch [#35234]:
Jürgen Herrmann [Mon, 13 May 2013 20:27:05 +0000 (20:27 +0000)]
Patch [#35234]:

Fix GetWindowsLon and SetWindowsLong issues with VS2012 and Windows 8.
Remove unneeded #ifdef block for GWL_WNDPROC and GWL_USERDATA

6 years agofix for strange behavior with loop select involving ngons,
Campbell Barton [Mon, 13 May 2013 17:42:27 +0000 (17:42 +0000)]
fix for strange behavior with loop select involving ngons,
when selecting a loop with quads on one side an ngon on another - never select the outer boundary edge of the ngon.

6 years agocode cleanup: remove duplicate calls to 'BMW_current_state'
Campbell Barton [Mon, 13 May 2013 16:35:28 +0000 (16:35 +0000)]
code cleanup: remove duplicate calls to 'BMW_current_state'

6 years agoCycles:
Thomas Dinges [Mon, 13 May 2013 15:31:59 +0000 (15:31 +0000)]
* Fix compile error, when building with __KERNEL_SSE__

6 years agoCleanup and small improvements to libmv
Sergey Sharybin [Mon, 13 May 2013 14:39:06 +0000 (14:39 +0000)]
Cleanup and small improvements to libmv

- Added const modifiers where it makes sense and
  helps keep code safe.
- Reshuffled argument to match <inputs>,<outputs>
  convention on parameters.
- Pass values to ApplyRadialDistortionCameraIntrinsics
  by a constant reference.
  This will save lots of CPU ticks passing relatively
  heavy jet objects to this function when running
  bundle adjustment.

6 years agonew bevel: fix for crash in merge, could result in collapsing faces being invalid...
Campbell Barton [Mon, 13 May 2013 14:31:45 +0000 (14:31 +0000)]
new bevel: fix for crash in merge, could result in collapsing faces being invalid. rather then splice each edge, use weld_verts operator which handles removing degenerate geometry.

6 years agoFix sculpt getting slower as you paint a longer stroke. Partial redraw was
Brecht Van Lommel [Mon, 13 May 2013 14:17:58 +0000 (14:17 +0000)]
Fix sculpt getting slower as you paint a longer stroke. Partial redraw was
redrawing the whole area that was painted on from the start of the stroke,
should only do the last part.

6 years agoFix #35342: multisample antialiasing makes tooltips look blurry.
Brecht Van Lommel [Mon, 13 May 2013 13:45:45 +0000 (13:45 +0000)]
Fix #35342: multisample antialiasing makes tooltips look blurry.