Bastien Montagne
db795b66fa
Fix bplayer broken in own rB51f5c994e9f0.
2013-12-17 10:47:32 +01:00
Thomas Dinges
011ae78857
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.
2013-12-17 09:59:18 +01:00
Bastien Montagne
51f5c994e9
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
2013-12-17 09:51:27 +01:00
Campbell Barton
e68144aed7
Fix for crash in toolbar tabs with only one tab defined
2013-12-17 19:16:44 +11:00
IRIE Shinsuke
5036ac6903
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.
2013-12-17 18:44:56 +11:00
Campbell Barton
f1a989f9c3
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.
2013-12-17 18:01:15 +11:00
Campbell Barton
61fb34a622
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.
2013-12-17 18:00:22 +11:00
Campbell Barton
b3ea4ec90c
Py API: use direct access to list/tuple size when type is known
2013-12-17 16:40:06 +11:00
Campbell Barton
cda89813df
Fix for possible NULL pointer use in brush image sampling
2013-12-17 13:19:54 +11:00
Campbell Barton
305fc82541
UI: don't attempt to draw with the menu-key when only drawing right aligned
2013-12-17 13:11:31 +11:00
Bastien Montagne
d9634122f6
More slangs and other spellchecking exceptions...
2013-12-16 21:26:48 +01:00
Bastien Montagne
163df7ff43
Better handling of new libnames of OpenEXR 2.1 (same solution as one used in OIIO/OSL source).
2013-12-16 21:16:02 +01:00
Campbell Barton
b78b3f2ac8
Fix for out-of-bounds memcpy() when adding a material
2013-12-17 05:47:22 +11:00
Campbell Barton
9a623daf9c
UserDefaults: disable orbit around object center and region-overlap
...
both have bad side-effects with strange behavior and viewport performance
2013-12-17 04:04:35 +11:00
Campbell Barton
a621d1e488
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.
2013-12-17 03:55:45 +11:00
Sergey Sharybin
2231b565f0
Better fix for previous commit
...
Cache iterator might return unused keys as well.
Now unused keys are being removed before cleanup
and iteration.
2013-12-16 22:05:27 +06:00
Sergey Sharybin
28d873f038
Fix possible crash when cleaning cache with some ibufs removed by the memory limit
2013-12-16 20:38:53 +06:00
Sergey Sharybin
3f0bae965b
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.
2013-12-16 18:38:13 +06:00
Dalai Felinto
63eb863d8d
Add optional 'frame' argument to scene.timeline_markers.new(name)
...
Differential Revision: http://developer.blender.org/D101
2013-12-16 10:13:59 -02:00
Sergey Sharybin
0f934ee3b7
Motion tracking: use PROP_PIXEL for pixel RNA values
2013-12-16 17:53:15 +06:00
Sergey Sharybin
cacd7c725b
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.
2013-12-16 17:17:59 +06:00
Campbell Barton
09b4954d2d
UI: use BLF_width_to_strlen for efficient text clipping
2013-12-16 22:00:30 +11:00
Campbell Barton
ce3f42e16a
BLF API: Add BLF_width_to_strlen,rstrlen gives a byte offset from a string width
2013-12-16 22:00:30 +11:00
Sergey Sharybin
c193dbe30b
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.
2013-12-16 16:51:27 +06:00
Sergey Sharybin
a2543ee43d
Make compression in IMB_allocImBuf match other places
2013-12-16 16:41:15 +06:00
Sergey Sharybin
17604cded9
Missing NULL-pointer check in BKE_image_free_anim_ibufs
2013-12-16 16:30:28 +06:00
Brecht Van Lommel
c05209ec01
Fix T37827: cycles XML mesh export utility not longer worked.
2013-12-16 11:08:41 +01:00
Bastien Montagne
740c7e677b
Fix typo in previous own commit (thanks to _FrnchFrgg_ for noticing this!).
2013-12-15 15:53:50 +01:00
Campbell Barton
6ea13cf217
Editmesh: skip allocating a face array for recalc-normals
2013-12-16 01:28:07 +11:00
Sv. Lockal
2b0ba65c51
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
2013-12-15 18:06:04 +04:00
Peter Staples
4a141022c3
Fix T37816: make cycles panel registration work better with addons.
...
This would give an error when an addon removed a panel.
2013-12-14 18:00:25 +01:00
Campbell Barton
d833aab887
correct error in recent commit
2013-12-15 03:59:51 +11:00
Antony Riakiotakis
df2537d09d
Revert "Hide the 3D cursor in a few cases where it is unneeded (active object is"
...
This reverts commit 85eaa98980
.
Conflicts:
source/blender/editors/space_view3d/view3d_draw.c
2013-12-14 15:23:57 +02:00
Brecht Van Lommel
cccd06ea44
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.
2013-12-14 16:01:48 +01:00
Bastien Montagne
05fe9a435a
Make libyaml-cpp-dev not-breaking case for deb-like distros, and colors for messages!
2013-12-14 15:52:15 +01:00
Campbell Barton
37720364d5
Curves: Skip 3dtext & 2d-curve filling when fill is set to 'None'
...
Otherwise was impossible to have unfilled curves unless extrude was set
2013-12-15 01:49:12 +11:00
Campbell Barton
7947b3d21d
Fix for recent regression in curve geometry panel poll
2013-12-15 01:33:10 +11:00
Brecht Van Lommel
f00728c19b
Fix bmesh compiler warning with OS X / clang.
2013-12-14 15:24:53 +01:00
Thomas Dinges
1bebdc9ad0
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.
2013-12-14 15:07:46 +01:00
Thomas Dinges
5fdfa6d475
Interface / 3D View: Add missing "add" menu for armature edit mode, reported in IRC.
...
Also remove an unused menu for surface/curves.
2013-12-14 13:47:30 +01:00
Campbell Barton
60a6b2422d
Modeling: add optional angle limit for beauty fill
...
Makes this tool more useful on an entire mesh by only applying
beautify to planar surfaces.
2013-12-14 23:25:29 +11:00
Campbell Barton
ab9fabdfc6
BMesh API: optionally pass fallback to BM_edge_calc_face_angle functions
2013-12-14 23:25:28 +11:00
Thomas Dinges
b43ce8a140
Code cleanup / Cycles: Remove some unused hair code.
2013-12-14 13:11:44 +01:00
Thomas Dinges
01fc7a687a
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.
2013-12-14 10:48:12 +01:00
Thomas Dinges
dda37dbc5c
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.
2013-12-14 10:14:24 +01:00
Thomas Dinges
3517cde0fb
Code cleanup: Remove Blender 2.4x animation player preset, since we have the internal one.
2013-12-14 09:24:22 +01:00
Thomas Dinges
92afb52ebd
Interface: Remove Play button from the Render panel, only keep in the "Render" menu.
2013-12-14 09:14:33 +01:00
Joshua Leung
ff6bf133ad
Fix T37811: Delete key shortcut missing for deleting markers
...
The keymap here used WM_keymap_verify_item(), which only allows for a
single hotkey to be bound to an operator. In most cases, this really
isn't justified.
2013-12-14 13:42:42 +13:00
Thomas Dinges
f372758257
Interface / Modifiers: Don't show cage placeholder in modifier header, if the current modifier does not support it or the cage is disabled (like Subsurf 0).
...
This way we save some space but still avoid the jumping around while changing settings in the header itself.
Thanks to Brecht for help on this. :)
2013-12-13 20:57:54 +01:00
Brecht Van Lommel
1e045a2417
Cycles: CUDA runtime kernel compilation can now find CUDA 6.0.
2013-12-13 19:12:07 +01:00