Campbell Barton
45c453c9b1
replace inline with BLI_INLINE define.
2013-01-12 10:39:09 +00:00
Mitchell Stokes
03df7e9a56
BGE: Fix for [ #33839 ] "a logic.joysticks Crashes BGE" reported by Josiah Lane (solarlune).
...
On a scene change the SCA_JoystickManager gets destroyed which in turn means all of it's joystick instances are released. Since SCA_PythonJoystick was just using a borrowed reference, this allowed the joystick to be freed. Now the joystick's refcount is incremented so that the SCA_PythonJoystick's joystick reference will survive across scene changes.
2013-01-12 05:44:08 +00:00
Ton Roosendaal
2f4cc3530d
Bug fix #33826
...
Post 2.65a issue
Now scrollbars appear/disappear correctly, a bug in checking if mouse clicks
where on panel headers popped up. That disabled using scrollers next to a
panel header.
2013-01-11 15:19:47 +00:00
Howard Trickey
d1d3384750
Fix knife angle constraint bug #33813 by changing knife mvals to floats.
...
The problem was that by snapping the integer mouse values to
lines through the previous point, the angle was slightly off.
2013-01-11 14:13:22 +00:00
Campbell Barton
f68e9db583
add padding for node view-all, view-home operators.
2013-01-11 04:34:15 +00:00
Campbell Barton
a4d5ef8c7d
fix for bpy.props string get-length callback, PyUnicode_GetLength() isn't a measure of the buffer size.
2013-01-11 04:09:54 +00:00
Campbell Barton
d0569dd68e
win32 has no kill, force crash for now, perhaps windows devs can do this more correctly.
2013-01-11 03:26:49 +00:00
Campbell Barton
4d7583b66f
code cleanup: warnings, also add check in crash handler that a wmWindowManager is present.
2013-01-11 03:21:24 +00:00
Campbell Barton
65497a25ba
fix for error in gradient theme rgba_char_args_set() use, was setting char's to float values.
2013-01-11 03:19:52 +00:00
Alex Fraser
17c428d4df
Changing units of stiffness parameter in classical (new) SPH solver: used to be speed of sound squared; now just speed of sound.
...
The classical SPH solver was not in 2.65, so this change is unlikely to affect many users. But beta users who have been trying it out will need to change the stiffness parameter to sqrt(old value).
2013-01-11 03:06:10 +00:00
Alex Fraser
61833ddd5a
Fix own mistake in SPH solver selection. Thanks Campbell for pointing it out.
2013-01-11 02:03:22 +00:00
Campbell Barton
0c3e570868
remove CustomData_get_active_offset(), use CustomData_get_offset to return the active layer, matching CustomData_get()
2013-01-11 01:41:27 +00:00
Campbell Barton
3fc0d2691d
include a stacktrace in the crashlog text written by the segfault handler.
2013-01-11 01:30:44 +00:00
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