blender.git
5 years agoFix T37869: vertex paint + wireframe draw mode + smoke domain did not draw correct.
Brecht Van Lommel [Thu, 19 Dec 2013 17:52:26 +0000 (18:52 +0100)]
Fix T37869: vertex paint + wireframe draw mode + smoke domain did not draw correct.

5 years agoFix T37003, Fix T37859: smoke modifier taking deforming modifiers into account
Brecht Van Lommel [Thu, 19 Dec 2013 17:25:14 +0000 (18:25 +0100)]
Fix T37003, Fix T37859: smoke modifier taking deforming modifiers into account
in some cases.

The smoke modifier now ignores the modifier evaluation for generated texture
coordinates, which would previously cause the undeformed mesh to be cached for
flow objects. Dynamic paint has a similar exception, and other physics systems
avoid it by not being a constructive modifier.

5 years agoChange recent fix for T37864, now only check if the file is readonly
Campbell Barton [Thu, 19 Dec 2013 15:23:21 +0000 (02:23 +1100)]
Change recent fix for T37864, now only check if the file is readonly

Other error cases are already handled elsewhere

5 years agoFix T37795: Resetting a button to the default value could crash
Campbell Barton [Thu, 19 Dec 2013 14:04:01 +0000 (01:04 +1100)]
Fix T37795: Resetting a button to the default value could crash

Added ui_handle_afterfunc_add_operator so a button can queue an operator
to run without executing it immediately.

5 years agoFix missing F-Curve Generator modifier updates from the Python API.
Peter Staples [Thu, 19 Dec 2013 13:48:57 +0000 (14:48 +0100)]
Fix missing F-Curve Generator modifier updates from the Python API.

The poly_order and mode properties were missing update and range, now they
match the UI code.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D116

5 years agoSculpting:
Antony Riakiotakis [Thu, 19 Dec 2013 12:39:54 +0000 (14:39 +0200)]
Sculpting:

* Support for symmetry in lasso masking
* Optimize away symmetry multiplication of gravity vector if no gravity
active
* Move flip_v3_v3 to paint_utils (used in masking as well)
* Use OpenMP for mask flood fill too.

5 years agoPatch T19235: bmesh comments (with updates)
Campbell Barton [Thu, 19 Dec 2013 11:40:25 +0000 (22:40 +1100)]
Patch T19235: bmesh comments (with updates)

5 years agoCode Cleanup: remove duplicate errorstack
Campbell Barton [Thu, 19 Dec 2013 11:38:01 +0000 (22:38 +1100)]
Code Cleanup: remove duplicate errorstack

5 years agoFollowup for fix T37718: image was not saving with proper settings second time
Sergey Sharybin [Thu, 19 Dec 2013 11:17:40 +0000 (17:17 +0600)]
Followup for fix T37718: image was not saving with proper settings second time

This was actually a regression after color management re-implementation, need
to copy settings from saved image buffer to an original one since they might
be modified during save.

Also noticed image format planes detection didn't work properly from an image
buffer. Made it so save operator works fine now, but also marked a TODO in
BKE_imbuf_to_image_format() which needs to be investigated further.

5 years agoFix for T37864, save/save_as blend now refuses to save and report an error, when...
Thomas Dinges [Thu, 19 Dec 2013 08:54:02 +0000 (09:54 +0100)]
Fix for T37864, save/save_as blend now refuses to save and report an error, when filepath is not writeable.

5 years agoFix T37830: UILists text now right align.
Bastien Montagne [Thu, 19 Dec 2013 08:34:53 +0000 (09:34 +0100)]
Fix T37830: UILists text now right align.

Simply check for non-embossed TEX buttons inside uiList items, and align their text like labels do.

5 years agoFix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far from
Antony Riakiotakis [Thu, 19 Dec 2013 03:09:42 +0000 (05:09 +0200)]
Fix T37387 VIEW3D_OT_view_selected in sculpt mode zooms far from
sculpted object if last sculpt stroke ends outside the mesh.

Code here used the last true location which is invalid in that case,
just reuse the average stroke location instead.

5 years agoSupport for symmetry in gravity.
Antony Riakiotakis [Thu, 19 Dec 2013 00:14:25 +0000 (02:14 +0200)]
Support for symmetry in gravity.

Also fix previous commit original coordinate change for proxy calculation
(broke all non-anchored brushes -facepalm-) and cache the gravity support
result.

5 years agoFix T37812, anchored sculpting on a flat plane created artifacts.
Antony Riakiotakis [Wed, 18 Dec 2013 23:48:30 +0000 (01:48 +0200)]
Fix T37812, anchored sculpting on a flat plane created artifacts.

This must be an ancient bug, almost as old as anchored brushes
themselves. Code did not do sphere node intersection against original
bounding boxes if an anchored brush required it. In practice this was
not easy to see because vertices were displaced inside brush radius most
of the time. However in the provided report file, displacement was far
away from the brush sphere, making the issue apparent.

Also added original check in proxy combination code (might cause issues
with dyntopo but quick test did not show any) and did some style int ->
bool style changes.

5 years agoFix T37807 gravity causes crashes when using shif-smoothing.
Antony Riakiotakis [Wed, 18 Dec 2013 22:48:26 +0000 (00:48 +0200)]
Fix T37807 gravity causes crashes when using shif-smoothing.

Turns out we didn't properly free node proxies that gravity did use and
strokes ended up accessing previous data. Also deactivated gravity when
a smooth brush is used. It is kind of distracting to get the mesh
gravitated while smoothing.

5 years agoFix T37691: Screw modifier created zero length normals
Campbell Barton [Wed, 18 Dec 2013 20:53:20 +0000 (07:53 +1100)]
Fix T37691: Screw modifier created zero length normals

5 years agoFix T37847: some buttons displayed too wide in multi-column menus.
Brecht Van Lommel [Wed, 18 Dec 2013 18:33:54 +0000 (19:33 +0100)]
Fix T37847: some buttons displayed too wide in multi-column menus.

5 years agoRevert svn r55587, fix for T34698 (Disable snap when transform axis is constrained)
Campbell Barton [Wed, 18 Dec 2013 17:54:11 +0000 (04:54 +1100)]
Revert svn r55587, fix for T34698 (Disable snap when transform axis is constrained)

Currently we don't properly support snapping + axis-constraints, but
there are cases where its handy to project-snap for eg, and constraint
to an axis so re-enable this.

5 years agoUI: avoid using AT define for malloc id's
Campbell Barton [Wed, 18 Dec 2013 16:08:48 +0000 (03:08 +1100)]
UI: avoid using AT define for malloc id's

They're very verbose and while useful for debugging leaks - a unique
string is normally enough to track down the problem.

5 years agoVertex/weight paint: remove "Use All Faces" option.
Brecht Van Lommel [Wed, 18 Dec 2013 16:49:01 +0000 (17:49 +0100)]
Vertex/weight paint: remove "Use All Faces" option.

This is now always enabled, when you want to paint on a individual faces you
can use face selection masking instead.

Fixes T37855.

5 years agoComment fix to previous commit
Antony Riakiotakis [Wed, 18 Dec 2013 16:36:07 +0000 (18:36 +0200)]
Comment fix to previous commit

5 years agoFix T37177, sculpting can act on opposite side of mesh in orthographic camera.
Antony Riakiotakis [Wed, 18 Dec 2013 16:34:02 +0000 (18:34 +0200)]
Fix T37177, sculpting can act on opposite side of mesh in orthographic camera.

Summary:
Issue here most probably is that the start point in ray-casting is too
far away from the mesh. As a result the triangle intersection code can
sometimes miss the ray intersection. To solve this, we project the ray
segment to the boundary of the root node.

Reviewers: brecht, sergey, campbellbarton

Reviewed By: brecht

Maniphest Tasks: T37177

Differential Revision: http://developer.blender.org/D115

5 years agoFix T37834: smoke opengl render not delivering correct alpha channel.
Brecht Van Lommel [Wed, 18 Dec 2013 16:24:52 +0000 (17:24 +0100)]
Fix T37834: smoke opengl render not delivering correct alpha channel.

5 years agoView3D: small optimization for smoke drawing
Campbell Barton [Wed, 18 Dec 2013 14:49:20 +0000 (01:49 +1100)]
View3D: small optimization for smoke drawing

5 years agoFix T37675: blender internal viewport render not updating properly with volumes.
Brecht Van Lommel [Wed, 18 Dec 2013 14:41:28 +0000 (15:41 +0100)]
Fix T37675: blender internal viewport render not updating properly with volumes.

5 years agoRevert fix for T37705: it's messing up the panel order in another place.
Brecht Van Lommel [Wed, 18 Dec 2013 14:10:40 +0000 (15:10 +0100)]
Revert fix for T37705: it's messing up the panel order in another place.

5 years agoFix T37705: texture panel order wrong when switching from cycles to blender render.
Brecht Van Lommel [Wed, 18 Dec 2013 12:15:13 +0000 (13:15 +0100)]
Fix T37705: texture panel order wrong when switching from cycles to blender render.

5 years agoFix T37790: OSL not rendering subsurface scattering color correct since upgrade to...
Brecht Van Lommel [Wed, 18 Dec 2013 11:29:11 +0000 (12:29 +0100)]
Fix T37790: OSL not rendering subsurface scattering color correct since upgrade to 1.4.

5 years agoFix T37843: area split widget missing in python console editor.
Brecht Van Lommel [Wed, 18 Dec 2013 11:02:31 +0000 (12:02 +0100)]
Fix T37843: area split widget missing in python console editor.

Python was indirectly causing redraw tags during drawing, which interfered
with the ARegion.drawrct, now ignore these during draw.

5 years agoFix T37837: mirror modifier merge does not place vertices at the center.
Brecht Van Lommel [Wed, 18 Dec 2013 10:14:24 +0000 (11:14 +0100)]
Fix T37837: mirror modifier merge does not place vertices at the center.

This was broken since BMesh.

5 years agoFix T37842: missing 3D view redraw when editing group layers and offset.
Brecht Van Lommel [Wed, 18 Dec 2013 09:52:40 +0000 (10:52 +0100)]
Fix T37842: missing 3D view redraw when editing group layers and offset.

5 years agoColor management: added utility function to apply processor on a pixel
Sergey Sharybin [Wed, 18 Dec 2013 09:51:09 +0000 (15:51 +0600)]
Color management: added utility function to apply processor on a pixel

It applies color management on a pixel in a way, based on number of
channels of this pixel.

Simplifies partial update code a bit.

5 years agoError in recent commit
Campbell Barton [Wed, 18 Dec 2013 09:31:41 +0000 (20:31 +1100)]
Error in recent commit

5 years agoColor management: get rid of original byte buffer partial update
Sergey Sharybin [Wed, 18 Dec 2013 09:20:07 +0000 (15:20 +0600)]
Color management: get rid of original byte buffer partial update

It was only used by opengl render and in fact it needed just to
set DISPLAY_BUFFER_INVALID flag for the image buffer.

In theory it wouldn't make any change to opengl render speed
(because this change just moved rect_from_float from color
management code to image save code). And could not see any speed
changes on my laptop.

5 years agoFix for button selection offset
Campbell Barton [Wed, 18 Dec 2013 08:28:59 +0000 (19:28 +1100)]
Fix for button selection offset

Was using a different font size with selection and drawing,
But scaling both so they mostly matched.

This made selection shift noticeably when done on an interface zoomed in/out.

5 years agoBLF: debug function to print a fonts state
Campbell Barton [Wed, 18 Dec 2013 08:18:55 +0000 (19:18 +1100)]
BLF: debug function to print a fonts state

5 years agoCode Clenaup: use const for button checking functions
Campbell Barton [Wed, 18 Dec 2013 06:47:38 +0000 (17:47 +1100)]
Code Clenaup: use const for button checking functions

5 years agoFix artifact in partial buffer update after recent changes
Sergey Sharybin [Wed, 18 Dec 2013 08:05:06 +0000 (14:05 +0600)]
Fix artifact in partial buffer update after recent changes

The issue wasn't new in fact, just partial buffer update
function was still broken. Not sure how those issues were
not noticed for so long.

Perhaps partial_buffer_update_rect() could be simplified,
but i've got some more upcoming changes here which might
run into conflicts if i'll do simplification now.

5 years agoCode cleanup: Game Engine related panels belong into properties_game.py.
Thomas Dinges [Wed, 18 Dec 2013 06:35:05 +0000 (07:35 +0100)]
Code cleanup: Game Engine related panels belong into properties_game.py.

5 years agoUI: more fixes for text clipping
Campbell Barton [Wed, 18 Dec 2013 06:11:38 +0000 (17:11 +1100)]
UI: more fixes for text clipping

Were still cases where numbers could be clipped incorrectly and icon
size was accounted for twice when left clipping (error in own recent commit).

5 years agoError in last commit
Campbell Barton [Wed, 18 Dec 2013 04:37:55 +0000 (15:37 +1100)]
Error in last commit

5 years agoStyle Cleanup: minor edits in recent changes
Campbell Barton [Wed, 18 Dec 2013 04:35:31 +0000 (15:35 +1100)]
Style Cleanup: minor edits in recent changes

5 years agoStyle Cleanup
Campbell Barton [Wed, 18 Dec 2013 04:34:56 +0000 (15:34 +1100)]
Style Cleanup

5 years agoGame Engine: Level of detail support and tools
Daniel Stokes [Tue, 17 Dec 2013 22:42:47 +0000 (14:42 -0800)]
Game Engine: Level of detail support and tools

Levels of detail can be added and modified in the object panel. The object
panel also contains new tools for generating levels of detail, setting up
levels of detail based on object names (useful for importing), and
clearing an object's level of detail settings. This is meant as a game
engine feature, though the level of details settings can be previewed in
the viewport.

Reviewed By: moguri, nexyon, brecht

Differential Revision: http://developer.blender.org/D109

5 years agoFix compile on MSVC, we don't use "isfinite" anywhere else inside source/blender ;)
Thomas Dinges [Tue, 17 Dec 2013 20:36:27 +0000 (21:36 +0100)]
Fix compile on MSVC, we don't use "isfinite" anywhere else inside source/blender ;)

5 years agoFix issue with right aligned number buttons overlapping the label
Campbell Barton [Tue, 17 Dec 2013 20:15:25 +0000 (07:15 +1100)]
Fix issue with right aligned number buttons overlapping the label

This also simplifies button clipping which was attempting to detect
offsets that were applied afterwards,
Now apply text clipping after adjusting the button rect margins.

5 years agoCode Cleanup: comment unused functions
Campbell Barton [Tue, 17 Dec 2013 18:07:49 +0000 (05:07 +1100)]
Code Cleanup: comment unused functions

5 years agoUI: Theme Colors for Info space
Sv. Lockal [Tue, 17 Dec 2013 18:02:42 +0000 (05:02 +1100)]
UI: Theme Colors for Info space

5 years agoChanges to partial update during rendering
Sergey Sharybin [Tue, 17 Dec 2013 17:42:38 +0000 (23:42 +0600)]
Changes to partial update during rendering

Summary:
Mainly addressed to solve old TODO with color managed fallback
to CPU mode when displaying render result during rendering.

That fallback was caused by the fact that partial image update
was always acquiring image buffer for composite output and was
only modifying display buffer directly.

This was a big issue for Cycles rendering which renders layers
one by one and wanted to display progress of each individual
layer. This lead to situations when display buffer was based on
what Cycles passes via RenderResult and didn't take layer/pass
from image editor header into account.

Now made it so image buffer which partial update is operating
with always corresponds to what is set in image editor header.

To make Cycles displaying progress of all the layers one by one
made it so image_rect_update switches image editor user to
newly rendering render layer. It happens only once when render
engine starts rendering next render layer, so should not be
annoying for navigation during rendering.

Additional change to render engines was done to make it so
they're able to merge composite output to final result
without marking tile as done. This is done via do_merge_result
argument to end_result() callback. This argument is optional
so should not break script compatibility.

Additional changes:

- Partial display update for Blender Internal now happens from
  the same thread as tile rendering. This makes it so display
  conversion (which could be pretty heavy actually) is done in
  separate threads. Also gives better UI feedback when rendering
  easy scene with small tiles.

- Avoid freeing/allocating byte buffer for render result
  if it's owned by the image buffer. Only mark it as invalid
  for color management.

  Saves loads of buffer re-allocations in cases when having
  several image editors opened with render result. This change
  in conjunction with the rest of the patch gave around
  50%-100% speedup of render time when displaying non-combined
  pass during rendering on my laptop.

- Partial display buffer update was wrong for buffers with number
  of channels different from 4.

- Remove unused window from RenderJob.

- Made image_buffer_rect_update static since it's only used
  in single file.

Reviewers: brecht

Reviewed By: brecht

CC: dingto
Differential Revision: http://developer.blender.org/D98

5 years agoAddress notes from Campbell's review
Sergey Sharybin [Tue, 17 Dec 2013 17:10:07 +0000 (23:10 +0600)]
Address notes from Campbell's review

- Cleanup naming in some places.
- Get rid of _ex functions with use_threads argument
  in scene update routines.

  Using Py_BEGIN_ALLOW_THREADS from frame_set and
  update_tagged functions seems made the trick.

- Fix for possible uninitialized members of
  evaluation context when it's allocated in stack.

5 years agoMerge branch 'master' into soc-2013-depsgraph_mt
Sergey Sharybin [Tue, 17 Dec 2013 16:42:15 +0000 (22:42 +0600)]
Merge branch 'master' into soc-2013-depsgraph_mt

5 years agoFix T37718: Texture compression missing
Sergey Sharybin [Tue, 17 Dec 2013 16:16:53 +0000 (22:16 +0600)]
Fix T37718: Texture compression missing

Make sure image will saved as (not over) after changing
it's type to Generated by clearing image's path in signal
handler.

5 years agoCode Cleanup: comment unused define
Campbell Barton [Tue, 17 Dec 2013 13:20:18 +0000 (00:20 +1100)]
Code Cleanup: comment unused define

5 years agoFix compile after last commit, casting to (bArmature *), kudos to JesterKing
Jens Verwiebe [Tue, 17 Dec 2013 13:14:03 +0000 (14:14 +0100)]
Fix compile after last commit, casting to (bArmature *), kudos to JesterKing

5 years ago'Transform' Python Function for armature, curve and lattice.
Campbell Barton [Tue, 17 Dec 2013 11:13:15 +0000 (22:13 +1100)]
'Transform' Python Function for armature, curve and lattice.

patch by Paolo Acampora with some edits.

5 years agoFix bplayer broken in own rB51f5c994e9f0.
Bastien Montagne [Tue, 17 Dec 2013 09:46:21 +0000 (10:46 +0100)]
Fix bplayer broken in own rB51f5c994e9f0.

5 years agoCycles / OpenCL: Fix compile error on OS X
Thomas Dinges [Tue, 17 Dec 2013 08:54:36 +0000 (09:54 +0100)]
Cycles / OpenCL: Fix compile error on OS X

After update to Mac OS X 10.9.1, OpenCL works now on my Intel CPU in the 2013 Macbook Pro (even the entire kernel).
The Intel Iris Pro GPU still segfaults here though, even when all flags are disabled (building "clay like" kernel only).

Maybe we need the -no-missing-prototypes for AMD hardware still, but I couldn't find a way to distuinguish here.

5 years agoFix T37103: Keyframing custom properties issue (FCurve would not reflect Custom props...
Bastien Montagne [Tue, 17 Dec 2013 08:40:52 +0000 (09:40 +0100)]
Fix T37103: Keyframing custom properties issue (FCurve would not reflect Custom props type changes).

Add an helper func to re-compute integer-only fcurve flags, and call it when editing custom props.

Reviewed by aligorith, thanks!

Summary: Proposal fix for "keyframing custom properties issue" (T37103).

Reviewers: aligorith

Maniphest Tasks: T37103

Differential Revision: http://developer.blender.org/D111

5 years agoFix for crash in toolbar tabs with only one tab defined
Campbell Barton [Tue, 17 Dec 2013 08:16:44 +0000 (19:16 +1100)]
Fix for crash in toolbar tabs with only one tab defined

5 years agoPartial fix for T37604: Deadlock when stopping rendered viewport (Blender Internal)
IRIE Shinsuke [Tue, 17 Dec 2013 07:44:56 +0000 (18:44 +1100)]
Partial fix for T37604: Deadlock when stopping rendered viewport (Blender Internal)

- Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS macros cannot be used here, because the Py_BEGIN_ALLOW_THREADS causes a crash when quitting Blender.
- The low level function PyEval_ReleaseLock() is used assuming the Python library was built with multi-threads support.

5 years agoFix crash in freestyle vector parsing (hard to believe nobody noticed)
Campbell Barton [Tue, 17 Dec 2013 07:01:15 +0000 (18:01 +1100)]
Fix crash in freestyle vector parsing (hard to believe nobody noticed)

Vectors were being assigned as an array of classes in Vec2f_ptr_from_PyObject and similar functions,
rather then assigning a number to each axis.

5 years agoFix for obscure freestyle crash when attempting to negate INT_MIN
Campbell Barton [Tue, 17 Dec 2013 06:53:29 +0000 (17:53 +1100)]
Fix for obscure freestyle crash when attempting to negate INT_MIN

This gives undefined behavior - in my case stays the same value and crashes.

Check for finite input resolves the issue.

5 years agoPy API: use direct access to list/tuple size when type is known
Campbell Barton [Tue, 17 Dec 2013 04:41:03 +0000 (15:41 +1100)]
Py API: use direct access to list/tuple size when type is known

5 years agoFix for possible NULL pointer use in brush image sampling
Campbell Barton [Tue, 17 Dec 2013 02:19:54 +0000 (13:19 +1100)]
Fix for possible NULL pointer use in brush image sampling

5 years agoUI: don't attempt to draw with the menu-key when only drawing right aligned
Campbell Barton [Tue, 17 Dec 2013 02:11:31 +0000 (13:11 +1100)]
UI: don't attempt to draw with the menu-key when only drawing right aligned

5 years agoMore slangs and other spellchecking exceptions...
Bastien Montagne [Mon, 16 Dec 2013 20:26:48 +0000 (21:26 +0100)]
More slangs and other spellchecking exceptions...

5 years agoBetter handling of new libnames of OpenEXR 2.1 (same solution as one used in OIIO...
Bastien Montagne [Mon, 16 Dec 2013 20:00:35 +0000 (21:00 +0100)]
Better handling of new libnames of OpenEXR 2.1 (same solution as one used in OIIO/OSL source).

5 years agoFix for out-of-bounds memcpy() when adding a material
Campbell Barton [Mon, 16 Dec 2013 18:47:22 +0000 (05:47 +1100)]
Fix for out-of-bounds memcpy() when adding a material

5 years agoUserDefaults: disable orbit around object center and region-overlap
Campbell Barton [Mon, 16 Dec 2013 17:04:35 +0000 (04:04 +1100)]
UserDefaults: disable orbit around object center and region-overlap

both have bad side-effects with strange behavior and viewport performance

5 years agoUI: Tabs categories for panels (D75)
Campbell Barton [Mon, 16 Dec 2013 16:21:55 +0000 (03:21 +1100)]
UI: Tabs categories for panels (D75)

- works by defining panel categories, currently restricted to the toolbar.
- no panels define bl_categories yet, so no user visible changes since tabs only show when there are multiple.
- panel pinning is available in rmb menu or alt+lmb.

5 years agoBetter fix for previous commit
Sergey Sharybin [Mon, 16 Dec 2013 16:05:27 +0000 (22:05 +0600)]
Better fix for previous commit

Cache iterator might return unused keys as well.
Now unused keys are being removed before cleanup
and iteration.

5 years agoFix possible crash when cleaning cache with some ibufs removed by the memory limit
Sergey Sharybin [Mon, 16 Dec 2013 14:38:53 +0000 (20:38 +0600)]
Fix possible crash when cleaning cache with some ibufs removed by the memory limit

5 years agoColor management: use fallback mode if there're no displays/views
Sergey Sharybin [Mon, 16 Dec 2013 12:35:20 +0000 (18:35 +0600)]
Color management: use fallback mode if there're no displays/views

Before this it was a runtime check for number of displays/views
which is rather really annoying.

This simplifies code a bit and allows to do some more tricks
in other patches.

5 years agoAdd optional 'frame' argument to scene.timeline_markers.new(name)
Dalai Felinto [Fri, 13 Dec 2013 14:36:40 +0000 (12:36 -0200)]
Add optional 'frame' argument to scene.timeline_markers.new(name)

Differential Revision: http://developer.blender.org/D101

5 years agoMotion tracking: use PROP_PIXEL for pixel RNA values
Sergey Sharybin [Mon, 16 Dec 2013 11:53:15 +0000 (17:53 +0600)]
Motion tracking: use PROP_PIXEL for pixel RNA values

5 years agoDisable region overlap in movie clip editor
Sergey Sharybin [Mon, 16 Dec 2013 11:16:05 +0000 (17:16 +0600)]
Disable region overlap in movie clip editor

Before it was giving weird behavior with timeline in MCE
and track preview widgets. But there's also no much benefit
of having transparent toolbox there.

Requested by our motrack guru Sebastian ages ago.

5 years agoUI: use BLF_width_to_strlen for efficient text clipping
Campbell Barton [Mon, 16 Dec 2013 10:59:47 +0000 (21:59 +1100)]
UI: use BLF_width_to_strlen for efficient text clipping

5 years agoBLF API: Add BLF_width_to_strlen,rstrlen gives a byte offset from a string width
Campbell Barton [Mon, 16 Dec 2013 10:47:10 +0000 (21:47 +1100)]
BLF API: Add BLF_width_to_strlen,rstrlen gives a byte offset from a string width

5 years agoFix T37826: Opening a new image in the image editor
Sergey Sharybin [Mon, 16 Dec 2013 10:42:48 +0000 (16:42 +0600)]
Fix T37826: Opening a new image in the image editor

Cast dimensions to size_t before multiplication.
Also made add_ibuf_size survive cases when image
buffer allocation failed.

5 years agoMake compression in IMB_allocImBuf match other places
Sergey Sharybin [Mon, 16 Dec 2013 10:41:15 +0000 (16:41 +0600)]
Make compression in IMB_allocImBuf match other places

5 years agoMissing NULL-pointer check in BKE_image_free_anim_ibufs
Sergey Sharybin [Mon, 16 Dec 2013 10:30:28 +0000 (16:30 +0600)]
Missing NULL-pointer check in BKE_image_free_anim_ibufs

5 years agoFix T37827: cycles XML mesh export utility not longer worked.
Brecht Van Lommel [Mon, 16 Dec 2013 10:07:44 +0000 (11:07 +0100)]
Fix T37827: cycles XML mesh export utility not longer worked.

5 years agoFix typo in previous own commit (thanks to _FrnchFrgg_ for noticing this!).
Bastien Montagne [Sun, 15 Dec 2013 14:52:29 +0000 (15:52 +0100)]
Fix typo in previous own commit (thanks to _FrnchFrgg_ for noticing this!).

5 years agoEditmesh: skip allocating a face array for recalc-normals
Campbell Barton [Sun, 15 Dec 2013 14:26:49 +0000 (01:26 +1100)]
Editmesh: skip allocating a face array for recalc-normals

5 years agoMinor optimization for strlen and memcpy calls for reading blend files
Sv. Lockal [Sun, 15 Dec 2013 14:06:04 +0000 (18:06 +0400)]
Minor optimization for strlen and memcpy calls for reading blend files

Summary:
This commit removes ~10000 strlen calls and ~100000 memcpy calls in blender (profiled with blender --background), ~10000 memcpy calls in makesdna.

There is no need to create null-terminated strings for atoi, because it converts only the initial portion of the string anyway.
Also it was noticed that DNA_elem_array_size and arraysize functions work only with full strings, so there is no point to calculate strlen.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: http://developer.blender.org/D105

5 years agoFix T37816: make cycles panel registration work better with addons.
Peter Staples [Sat, 14 Dec 2013 16:56:47 +0000 (17:56 +0100)]
Fix T37816: make cycles panel registration work better with addons.

This would give an error when an addon removed a panel.

5 years agocorrect error in recent commit
Campbell Barton [Sat, 14 Dec 2013 16:59:51 +0000 (03:59 +1100)]
correct error in recent commit

5 years agoRevert "Hide the 3D cursor in a few cases where it is unneeded (active object is"
Antony Riakiotakis [Sat, 14 Dec 2013 13:23:57 +0000 (15:23 +0200)]
Revert "Hide the 3D cursor in a few cases where it is unneeded (active object is"

This reverts commit 85eaa989807268dda60408f41475216ad45888d1.

Conflicts:
source/blender/editors/space_view3d/view3d_draw.c

5 years agoFix T37810: GLSL dither shader not working on OS X.
Brecht Van Lommel [Sat, 14 Dec 2013 14:24:20 +0000 (15:24 +0100)]
Fix T37810: GLSL dither shader not working on OS X.

The GLSL function textureSize() is not supported here, only when we start using
OpenGL core profile will this work. For now check the supported GLSL version and
use a somewhat slower replacement.

5 years agoMake libyaml-cpp-dev not-breaking case for deb-like distros, and colors for messages!
Bastien Montagne [Sat, 14 Dec 2013 14:50:13 +0000 (15:50 +0100)]
Make libyaml-cpp-dev not-breaking case for deb-like distros, and colors for messages!

5 years agoCurves: Skip 3dtext & 2d-curve filling when fill is set to 'None'
Campbell Barton [Sat, 14 Dec 2013 14:49:12 +0000 (01:49 +1100)]
Curves: Skip 3dtext & 2d-curve filling when fill is set to 'None'

Otherwise was impossible to have unfilled curves unless extrude was set

5 years agoFix for recent regression in curve geometry panel poll
Campbell Barton [Sat, 14 Dec 2013 14:32:36 +0000 (01:32 +1100)]
Fix for recent regression in curve geometry panel poll

5 years agoFix bmesh compiler warning with OS X / clang.
Brecht Van Lommel [Sat, 14 Dec 2013 14:24:53 +0000 (15:24 +0100)]
Fix bmesh compiler warning with OS X / clang.

5 years agoFix T37264: cycles CPU render had limited number of float images, bumped to 1024.
Thomas Dinges [Sat, 14 Dec 2013 14:06:18 +0000 (15:06 +0100)]
Fix T37264: cycles CPU render had limited number of float images, bumped to 1024.

GPU is still limited to 5, but there's no good reason for the CPU to be limited.

5 years agoInterface / 3D View: Add missing "add" menu for armature edit mode, reported in IRC.
Thomas Dinges [Sat, 14 Dec 2013 12:47:18 +0000 (13:47 +0100)]
Interface / 3D View: Add missing "add" menu for armature edit mode, reported in IRC.

Also remove an unused menu for surface/curves.

5 years agoModeling: add optional angle limit for beauty fill
Campbell Barton [Sat, 14 Dec 2013 12:22:35 +0000 (23:22 +1100)]
Modeling: add optional angle limit for beauty fill

Makes this tool more useful on an entire mesh by only applying
beautify to planar surfaces.

5 years agoBMesh API: optionally pass fallback to BM_edge_calc_face_angle functions
Campbell Barton [Sat, 14 Dec 2013 12:18:23 +0000 (23:18 +1100)]
BMesh API: optionally pass fallback to BM_edge_calc_face_angle functions

5 years agoCode cleanup / Cycles: Remove some unused hair code.
Thomas Dinges [Sat, 14 Dec 2013 12:11:44 +0000 (13:11 +0100)]
Code cleanup / Cycles: Remove some unused hair code.

5 years agoCode cleanup: Remove "TexFace to Material Convert", from the file menu. This was...
Thomas Dinges [Sat, 14 Dec 2013 09:48:12 +0000 (10:48 +0100)]
Code cleanup: Remove "TexFace to Material Convert", from the file menu. This was used for conversion from older 2.5x files. The do_version() code is still there and functioning though.

5 years agoInterface / Modifiers: Use a toggle/icon button for vertex group invert (was already...
Thomas Dinges [Sat, 14 Dec 2013 09:14:24 +0000 (10:14 +0100)]
Interface / Modifiers: Use a toggle/icon button for vertex group invert (was already used in particle system).

This way we save a few lines of space, while keeping the functionality clear. Also some minor layout reshuffling and cleanup.