Campbell Barton
91d4fb5d6c
speedup for DM_to_bmesh_ex(), no need to check vertex order when converting faces since the loops are already in order, will speedup modifiers that use bmesh.
2013-01-10 18:34:09 +00:00
Campbell Barton
de6fe1294c
minor speedup for DM_to_bmesh_ex(), only duplicate the edge array when the derivedMesh type isn't a CDDM.
2013-01-10 18:31:14 +00:00
Ton Roosendaal
70a59a3262
Depsgraph hack feature - experimental
...
Many depsgraph failures are because some data in the graph is being
recalculated too early (or not at all).
Since we better support animators with working renders, here's a hack to
allow manual additional updates on frame changes.
In Property Editor, Object, Panel "Relations Extra" you now have two
buttons:
- Extra Object Update
- Extra Data Update
This will do an extra update of object and/or its data ONLY on frame changes.
Update happens as last.
Tested on files collected in Wiki todo, several cases now work OK, especially
the lags on updates.
2013-01-10 18:20:29 +00:00
Sergey Sharybin
c92be1a9a5
Correction to do_versions() in 53676
...
Affect on curve radius only if offset/extrude was used,
otherwise radius could have been used for other things
(like controlling hair) which will likely break
compatibility.
Reported by Tube project guys.
2013-01-10 18:11:56 +00:00
Brecht Van Lommel
b3802d0041
Fix build error on Mac, bool needs an #include.
2013-01-10 17:46:23 +00:00
Brecht Van Lommel
b39090bb5a
Fix #33752 : UV Orco coordinates were wrong for Cycles (and other external
...
render engines). Replaced generating orco_index by filling the UV loop data
directly which is easier and all that needed to be done anyway.
2013-01-10 17:37:17 +00:00
Campbell Barton
18536e201f
add a segfault handler that writes out the info log into a crash file alongside the blend file.
2013-01-10 16:37:48 +00:00
Sergey Sharybin
f6f33515ac
Fix #33822 : Compositor gets stuck if a sequencer window is also visible
...
Issue was caused by a fix for rendered sequencer preview mode, which
will likely conflict with compositor job. Made it so compositor job
will be killed when sequencer uses rendered preview.
2013-01-10 16:11:12 +00:00
Campbell Barton
1c99e6aa0b
pyapi internal api code: check for == -1 rather then < 0, for known error returns.
2013-01-10 15:22:19 +00:00
Campbell Barton
e56844e98b
simple speedup for view3d numeric panel - dont loop on verts or edges if none are selected.
2013-01-10 14:38:30 +00:00
Lukas Toenne
127b5423d6
Another fix for bpy.props getters/setters: PyC_AsArray does a refcount decrement internally on errors, need to skip Py_DECREF in that case to avoid negative refcounts.
2013-01-10 14:36:08 +00:00
Campbell Barton
983e5fe5f1
fix for own mistake in recent changes to scanfill, bmo_triangle_fill_exec() (alt+f), was missing BLI_SCANFILL_CALC_HOLES argument.
...
reported as [#33819 ]
2013-01-10 14:28:06 +00:00
Campbell Barton
1df1f9fdd3
adding vertex color layer in mesh editmode would overwrite UV's, strange nobody reported this since its been there since 2.63.
2013-01-10 13:59:52 +00:00
Lukas Toenne
273cf512dd
Fix for bpy.props getter/setter callbacks. These were missing a valid GIL state when being called outside the UI context.
2013-01-10 12:32:09 +00:00
Campbell Barton
c3c3df3aec
editmesh texface drawing, reuse customdata offset rather then looking up each UV and vertex color, gives overall ~9.5% drawing speedup in my tests.
...
was also doing NULL checks on UV's which are never NULL in this case.
2013-01-10 12:07:01 +00:00
Ton Roosendaal
bed3618780
Bug fix 33732
...
Modal operators with hardcoded (in C) event handling now don't get
double clicks anymore. For modal keymaps things work OK.
This fixes number input typing for CTRL+B bevel, for example.
2013-01-10 11:08:38 +00:00
Campbell Barton
7c64109bce
bmesh todo: uv stretch area draw mode wasn't calculating ngon area - added area_poly_v2().
2013-01-10 08:16:19 +00:00
Campbell Barton
ce4116c35c
don't call BKE_mesh_tessface_ensure() from DM_to_mesh(), caller must do this instead.
2013-01-10 05:50:21 +00:00
Campbell Barton
0ce1be552e
transforming verts was getting the bevel weight for each vertex even if bevel-weight wasnt being transformed.
2013-01-10 05:35:10 +00:00
Campbell Barton
7083350913
fix for editmesh calculating normals twice when using the number-buttons.
2013-01-10 04:46:51 +00:00
Campbell Barton
ceb9701507
don't store bevel weights or edge crease customdata layers in editmode unless they are needed.
...
configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.
2013-01-10 04:43:31 +00:00
Campbell Barton
97d1abfe95
speedup for editmesh getVert and getEdge, were doing 2x customdata layer lookups for crease and bevel weight, also make use of the existing meshdata array for lookups.
2013-01-09 18:20:11 +00:00
Lukas Toenne
e5113c51a7
Small fix for r53685: Allow setting NULL/None as parent, i.e. detach a node from a frame.
2013-01-09 16:15:06 +00:00
Lukas Toenne
b29f703881
Make the node.parent property editable in RNA, so frame hierarchy can be changed by scripts without resorting to operator hacks.
...
Performs sanity checks internally to make sure that
a) Only frames are used as parents. In future other nodes may be used for parenting, that will require more sophisticated poll functions.
b) Avoid infinite recursion. If the supposed parent is already attached to a frame node the parent assignment will be ignored.
2013-01-09 16:07:42 +00:00
Ton Roosendaal
9a4a5fa2b4
Usability fix:
...
Blender's data link button (typically with menu and searching options)
now has a X icon to clear its contents.
Before you had to click, delete text, enter.
For example:
- Object Parent
- Modifier objects or vertexgroups
This fix saves each user 100 clicks per day, with 100k users
that's 3 billion clicks per year!
2013-01-09 15:58:34 +00:00
Brecht Van Lommel
b02dd1e719
Fix #33815 : blender internal crash rendering material pass with strands.
...
Patch from Sergey with modifications.
2013-01-09 15:39:26 +00:00
Campbell Barton
f9c87b86fc
partial fix for [ #32581 ] Mesh properties API does not allow for zeros in byte array
...
bmesh access allows zero bytes, support still needs adding via RNA.
2013-01-09 13:25:46 +00:00
Campbell Barton
2d526c23dd
remove uiPanelClearType(), instead redraw all windows when registering/unregistering.
2013-01-09 13:15:23 +00:00
Campbell Barton
cf2eeabf6d
fix [ #33808 ] custom property write RNA_pointer_get: xxx.xxxx not found in the console
...
message was harmless but annoying.
2013-01-09 12:26:36 +00:00
Campbell Barton
a2e17ff5ec
reduce the alpha of console selection (text was too hard to read)
2013-01-09 10:18:05 +00:00
Sergey Sharybin
5fe82bc091
Fix #33796 : Curve radius makes affect only in full fill mode
2013-01-09 10:15:12 +00:00
Campbell Barton
9b5a2084bc
avoid having dangling panel pointers in the interface, unregistering addons could leave the interface pointing to freed memory.
2013-01-09 06:00:33 +00:00
Campbell Barton
cecbb3498b
add RNA_def_struct_ptr(...) to use for runtime struct registration, saves over 2000 string lookups on startup and gives overall ~10% speedup for starting blender on my system.
2013-01-09 05:32:15 +00:00
Campbell Barton
02f6645bef
fix [ #33806 ] weight paint crash and computer freeze when painting
...
clear weight paint runtime data on file-load.
2013-01-09 04:17:53 +00:00
Campbell Barton
e24443b79a
style cleanup
2013-01-09 03:30:15 +00:00
Campbell Barton
73ead0b207
drawing texture icon was multiplying the red channel by alpha, this is almost certainly a typo/accident.
2013-01-09 03:26:39 +00:00
Sergey Sharybin
f5317b5f0c
Style cleanup in OCIO area
...
Also fixed typo in function name.
2013-01-08 20:55:07 +00:00
Sergey Sharybin
bb0319022d
Fix #33809 : Wrong exposure affect after alpha premul changes
...
Exposure shouldn't affect on alpha channel, only RGB shall be
affected by exposure.
Was a regression since recent alpha premul pipeline changes.
2013-01-08 20:50:26 +00:00
Campbell Barton
67a6d4dd56
fix for select flushing in face mode for mesh 'Select More'
2013-01-08 17:40:36 +00:00
Campbell Barton
36f79eab20
fix [ #33784 ] Select Linked All + Seams fails to select seam bounded area
...
was incorrectly flushing vertex selection.
2013-01-08 17:30:06 +00:00
Ton Roosendaal
4737e08cb9
Added trackpad (and magic mouse) support to control speed in Fly Mode in 3d.
2013-01-08 16:54:26 +00:00
Campbell Barton
b0c084c6cc
fix [ #33797 ] decimate modifier bug on uv-coordinates when mesh uses vertex color
...
if vertex colors had no seams - it would interpolate the UV's too, now interpolate per-layer.
2013-01-08 16:39:36 +00:00
Sergey Sharybin
0c1d1e6c30
Alpha-over images on a black background when in RGB display mode
...
This is actually a bit arbitrary decision and mainly it preserves
compatibility with how images were displaying in previous releases.
In fact, we actually would need to think about configurable backdrop
color and blending mode to be used for display in RGB mode.
2013-01-08 15:34:33 +00:00
Ton Roosendaal
472595f1d3
Bugfix #33803
...
(2.65a and older)
Case: ALT+CTRL+U (user prefs) made mousewheel change button values in inactive
window.
On opening 2nd window, or de-activating a window, the modifier
state was kept for that window. That meant that mouse-over in a window was using
the old modifier - for example for scrollwheel it would change values
in buttons.
2013-01-08 14:40:15 +00:00
Campbell Barton
e62bc29a9b
fix [ #33792 ] Accessing a bmesh object created by from_object crashes blender
...
Issue was customdata wasnt being initialized for layers in the destination BMesh but not in the source data.
2013-01-08 14:25:17 +00:00
Campbell Barton
5042a0a8ef
use guarded malloc for blf texture
2013-01-08 14:04:01 +00:00
Sergey Sharybin
c69f571478
Remove unused IMB function which wasn't ported to new color management
...
Also marked some TODOs as actually solved.
2013-01-08 13:32:48 +00:00
Sergey Sharybin
1dd8851244
Fix #33804 : Blender crash unlinking multilayer exr image in image node
2013-01-08 08:39:28 +00:00
Jens Verwiebe
7dfcdbedb4
OSX: remove a unneccessary condition, QTKit can do 32bit too
2013-01-08 06:08:08 +00:00
Alex Fraser
59ef68cd9a
Fix for [ #33788 ] Particles - Fluid "exploding" behavior
...
Particle mass was being used incorrectly by DDR solver (my fault).
2013-01-08 04:28:44 +00:00